Jump to content

from in mailform


Guest Denbian

Recommended Posts

Guest Denbian

NO-REPLY@php.wswww05.livemail.nl , is what i get in my received mail when i send an e-mail using my mail form trough the internet.Is it possible to receive this mail but than in the From in the mail get something like Denbian?Hope you guys can help me...Dennis

Link to comment
Share on other sites

Do something like this

<?$to = "you@youremailaddress.com";$subject = "Mail From Website";$msg = "Whatever you want in the body of the mail";$mailheaders = "From: My Web Site <genericaddress@yourdomain.com>\n";// This line is where it will appear to come from for your reply function$mailheaders .= "Reply-To: Sender's Email"\n";mail($to, $subject, $msg, $mailheaders);?>

If that doesn't work, try looking through the settings on your SMTP server, because there might be some sort of field that allows you to specify where it should appear to come from.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...