sungpeng Posted April 9, 2009 Share Posted April 9, 2009 <?php mail("sung@hotmail.com", "$emailsubject", "Dear $fname $lname, Thank you for registering. Below you will find your username and password that will let you log in and begin to enter rental listings. Username: $email Password: $newpass ", "FROM:sgfair.com"); ?> Hi the above script will sent an e-mail to the sung@hotmail.com. When it sent over an e-mail to another person, it's FROM "sgfair.com" (sgfair@yourhostingnet.com). Can the FROM just show "sgfair.com" without the sgfair@yourhostingnet.com? Quote Link to comment Share on other sites More sharing options...
ratcateme Posted April 9, 2009 Share Posted April 9, 2009 try adding some headers $headers = 'From: sgfair.com <sgfair@yourhostingnet.com>' . "\r\n"; mail("sung@hotmail.com", "$emailsubject", "Dear $fname $lname, Thank you for registering. Below you will find your username and password that will let you log in and begin to enter rental listings. Username: $email Password: $newpass ", $headers); Scott. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.