Forum Moderators: coopster
<?
$message = "Emailed variables here";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers = $headers . "Content-type: text/html; charset=iso-8859-1" . "\r\n";
$headers = $headers . "From: email@example.com";
mail( "email@example.com, "Form Data", $message, $headers );
header( "Location: [webmasterworld.com"...] );
?>
I thought I could just add in a 2nd email to this file like below but it didn't work...
<?
$message = "Thank You."
$headers = "MIME-Version: 1.0" . "\r\n";
$headers = $headers . "Content-type: text/html; charset=iso-8859-1" . "\r\n";
$headers = $headers . "From: email@example.com";
mail( " . $_SESSION['email'] . ", "Form Data", $message, $headers );
header( "Location: [webmasterworld.com"...] );
?>
Any help would be greatly appreciated!
You aren`t too far away. You just need to remove the one header function and adjust the message var.
<?
$message = "Emailed variables here";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers = $headers . "Content-type: text/html; charset=iso-8859-1" . "\r\n";
$headers = $headers . "From: email@example.com";mail( "email@example.com, "Form Data", $message, $headers );
$message2 = "Thank You."
$headers = "MIME-Version: 1.0" . "\r\n";
$headers = $headers . "Content-type: text/html; charset=iso-8859-1" . "\r\n";
$headers = $headers . "From: email@example.com";mail( " . $_SESSION['email'] . ", "Form Data", $message2, $headers );
header( "Location: [webmasterworld.com"...] );
?>
dc