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 newsletter-request@abc.com; on behalf of; ABC[abc@abc.com] where newsletter@abc.com is the mailing list id abc@abc.com 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!!! Quote 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 Quote 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? Quote 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 ? Quote 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. Quote 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 Quote 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 newsletter-request@abc.com; on behalf of; ABC[abc@abc.com] please please help!! ??? Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.