PDA

View Full Version : Email - Reply to address?



Tim Mousel
Fri 12th May '00, 4:48pm
Hi,

When using the following code to send an email, the return address is that of the server. How do I set it to show my email address?

<?

mail("$email", "$lostsubject", "$lostmessage"); //The $lostsubject and $lostmessage are defined in prepend.inc.

?>

Thanks,

Tim

Tim Mousel
Fri 12th May '00, 5:08pm
Hi,

I got it to work. Here is what I used:

mail("$email", "$lostsubject", $lostmessage, "From: webmaster@worldslargestmall.cc\nReply-To: webmaster@worldslargestmall.cc\nX-Mailer: PHP/" . phpversion());

Tim