laflair13 Posted July 23, 2009 Share Posted July 23, 2009 When I try and send a newsletter to my subscribers,. It is showing up as Unknown Sender. Here is part of the code. if ($emailq = mysql_query("SELECT name,email FROM members")) { if (mysql_num_rows($emailq)) { while(list($name,$email)=mysql_fetch_row($emailq)){ mail("$name <{$email}>",$send['subject'],$send['body'], "From: {$_SESSION['sitename']} <{$config['sitemail']}>\nReply-To: {$name} <{$config['sitemail']}>\nContent-type: text/plain\nX-Mailer: PHP/" . phpversion()); $sent.="Sending To $name..........Sent<br />"; I have been at this for hrs now and just cannot seem to get it. Any help would be greatly appreciated. Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/167090-having-some-mail-issues-unknown-sender/ Share on other sites More sharing options...
ignace Posted July 23, 2009 Share Posted July 23, 2009 From: {$_SESSION['sitename']} <{$config['sitemail']}> does $_SESSION['sitename'] contain any value? and shouldn't it be: $config['sitename']? Reply-To: {$name} <{$config['sitemail']}> Reply to himself? Quote Link to comment https://forums.phpfreaks.com/topic/167090-having-some-mail-issues-unknown-sender/#findComment-881052 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.