ok, i have the following code for my mail() function, it all works but emails come through from 'nobody'.
How can i put a 'From' Address on there?
$mailto = "$ar_email_recipient";
$subject = "A New Artwork Request has been Created.";
$message .= "An Artwork Request has just been added to the System.\n\nHere are some details\n\nLogon to the System to see more details\n$site_url\n\n";
foreach($arcreated as $title => $value) {
$message .= $title . ': ' . $value;
$message .= "\n"; //Note the double quotes
}
if (@mail($mailto, $subject, $message)) {
} else {
echo('<p>Mail could not be sent. Please use your back button to try again.</p>');
}
IVe seen scripts with the following appended to the end, but i cant figure out the proper syntax for the way i am creating my mail.
"From: SYSTEM <me@me.com>\n" .
"X-Mailer: PHP 4.x"