celeron895
Programmer
I am sending an email using the following:
-----------------------------
$headline = $HTTP_POST_VARS['Headline'];
$text = $HTTP_POST_VARS['Text'];
$email_to = "contact@mysite.com";
$email_subject = "Press Release";
$email_message ="The following was submitted as a press release.\n"
."Headline: $headline\n\n"
."Text: $text";
$email_header = "MIME-Version: 1.0\n"
."Content-Type: multipart/mixed;\n"
." boundary=\"{$mime_boundary}\"";
$ok = @mail($email_to, $email_subject, $email_message, $email_header);
header("Location: pressreleasethankyou.shtml"
;
--------------------------------
How can I change the "from" part of the email? Currently it shows as 'Nobody'.
-----------------------------
$headline = $HTTP_POST_VARS['Headline'];
$text = $HTTP_POST_VARS['Text'];
$email_to = "contact@mysite.com";
$email_subject = "Press Release";
$email_message ="The following was submitted as a press release.\n"
."Headline: $headline\n\n"
."Text: $text";
$email_header = "MIME-Version: 1.0\n"
."Content-Type: multipart/mixed;\n"
." boundary=\"{$mime_boundary}\"";
$ok = @mail($email_to, $email_subject, $email_message, $email_header);
header("Location: pressreleasethankyou.shtml"
--------------------------------
How can I change the "from" part of the email? Currently it shows as 'Nobody'.