coltrane Posted August 27, 2009 Share Posted August 27, 2009 I have email campaign script almost working except for one thing. When the email arrives, it says: "From ABC@CGI13 My simple code is: $Emailfrom = "ABC"; Mail( blah blah 'From:' . $Emailfrom); I don't want @CGI13 tacked onto the end. Also , anyway to keep email from ending up in everyones spam folder? Thanks Link to comment https://forums.phpfreaks.com/topic/172147-email-campaign-error/ Share on other sites More sharing options...
lemmin Posted August 27, 2009 Share Posted August 27, 2009 I think you can set "sendmail_from" in php.ini to the full string. I don't know if that will work though. I think most email clients put the domain at the end if the address isn't in the user's address book. Otherwise, you could use fsockopen() to send the raw data to the mail server. Doing that you can spoof it to whatever you want. Link to comment https://forums.phpfreaks.com/topic/172147-email-campaign-error/#findComment-907783 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.