santos Posted October 22, 2007 Share Posted October 22, 2007 i need to send a mail to one mailing list address. when i sent to this the from address comes as [email protected]; on behalf of; ABC[[email protected]] where [email protected] is the mailing list id [email protected] is the moderator id when i change the to address to any other email address other than this mailing list, the from field works fine. i have given the mailing list, in the Bcc header. pls help!!! Link to comment https://forums.phpfreaks.com/topic/74294-php-sending-mails-to-mailing-list-show-strange-headers/ Share on other sites More sharing options...
MadTechie Posted October 22, 2007 Share Posted October 22, 2007 your need to change the account your sending from.. thats the behalf of..account auth_username=emailusername auth_password=emailuserpassword ;And/or pop3_username=emailusername pop3_password=emailuserpassword ini_set Link to comment https://forums.phpfreaks.com/topic/74294-php-sending-mails-to-mailing-list-show-strange-headers/#findComment-375393 Share on other sites More sharing options...
santos Posted October 23, 2007 Author Share Posted October 23, 2007 can u explain more please, how can i set that? Link to comment https://forums.phpfreaks.com/topic/74294-php-sending-mails-to-mailing-list-show-strange-headers/#findComment-376080 Share on other sites More sharing options...
MadTechie Posted October 23, 2007 Share Posted October 23, 2007 can u explain more please, how can i set that? Either Update the PHP.INI file, or if you don't have direct access to the server ini_set what part do you not understand ? Link to comment https://forums.phpfreaks.com/topic/74294-php-sending-mails-to-mailing-list-show-strange-headers/#findComment-376086 Share on other sites More sharing options...
otuatail Posted October 23, 2007 Share Posted October 23, 2007 You can't do mailing lists with php mail function. it is attempting to send it to the address in your From. I beleive there is a better email app but can't remember the name. Desmond. Link to comment https://forums.phpfreaks.com/topic/74294-php-sending-mails-to-mailing-list-show-strange-headers/#findComment-376092 Share on other sites More sharing options...
santos Posted October 23, 2007 Author Share Posted October 23, 2007 thanks a lot MadTechie, u owe a choclate from me...it worked... no i can do mailing list from php mail function. otuatail Link to comment https://forums.phpfreaks.com/topic/74294-php-sending-mails-to-mailing-list-show-strange-headers/#findComment-376104 Share on other sites More sharing options...
santos Posted October 23, 2007 Author Share Posted October 23, 2007 no it didnt work sorry.. here is what i gave ini_set("sendmail_from", $newsletterfrom); ini_set("auth_username",$newsletterfrom); ini_set("auth_password","aucune"); ini_set("SMTP",$server); ini_set("smtp_port","25"); $mail_sent = @mail( $newslettertoFake, $newssubject, $newsmessage, $newsheaders)or die(mysql_error()); still it shows [email protected]; on behalf of; ABC[[email protected]] please please help!! ??? Link to comment https://forums.phpfreaks.com/topic/74294-php-sending-mails-to-mailing-list-show-strange-headers/#findComment-376556 Share on other sites More sharing options...
MadTechie Posted October 23, 2007 Share Posted October 23, 2007 are you sending from the same domain the php server is on ? or do you have a Sender Policy Framework (SPF)? if so add an SPF record in your DNS zone file to allow the sending from the php severs IP. Link to comment https://forums.phpfreaks.com/topic/74294-php-sending-mails-to-mailing-list-show-strange-headers/#findComment-376585 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.