reggie Posted November 30, 2007 Share Posted November 30, 2007 When i send an email message using php my mail box displays the whole address of my hosting company. How can i just display the name and not the whole address....any ideas... Link to comment Share on other sites More sharing options...
real_illusions Posted November 30, 2007 Share Posted November 30, 2007 you need to buy a domain name and host it somewhere, and then setup email accounts so you haveyourname@yourdomain.com:) Link to comment Share on other sites More sharing options...
Synook Posted December 1, 2007 Share Posted December 1, 2007 Well, using PHP you can edit the From header (which goes into the fourth argument of the mail() function). So say you wanted your address to look like short@address.com you could do mail($to, $subject, $message, "From: short@address.com\r\n"); However, some mail providers and spam filters will block e-mails with modified From headers (Hotmail does this particularly viciously). Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.