Giddy Rob Posted June 29, 2007 Share Posted June 29, 2007 Hi, I am having problems with emailing as I want to set an email in the from field but it just uses the server the sites on. I can set up the prefix to the @ but after that its not what I want. How do I specify whatever full email address I want? e.g. I don't want [email protected], I want [email protected] Please Help Cheers Rob Link to comment https://forums.phpfreaks.com/topic/57684-php-mail-from-function/ Share on other sites More sharing options...
phpknight Posted June 29, 2007 Share Posted June 29, 2007 Try something like this. $headers="From:Your Display Name<your email [email protected]>\n"; $headers.="Content-Type:text/html;CHARSET=iso-8859-1\n"; //you can probably try it without this line just for a text message $subject="subject here"; $msg="message here"; mail($address,$subject,$msg, $headers); //put the delivery email in $address Link to comment https://forums.phpfreaks.com/topic/57684-php-mail-from-function/#findComment-285594 Share on other sites More sharing options...
Giddy Rob Posted June 29, 2007 Author Share Posted June 29, 2007 top banana, thanks for your help Rob Link to comment https://forums.phpfreaks.com/topic/57684-php-mail-from-function/#findComment-285604 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.