Hey all,
I tried to send out a newsletter and it keeps saying its coming from Unknown Sender. Theres nowhere in the admin section to edit newsletter option.
Here is what the code looks like.
Any advice on what I can edit to change this?Code:function send($send){ if(!$send[subject]){ $mes=" (You must enter a subject)"; newsletter($mes); exit; } if(!$send[body]){ $mes=" (You must enter an email)"; newsletter($mes); exit; } 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['aname']} <{$config['sitemail']}>\nReply-To: {$name} <{$config['sitemail']}>\nContent-type: text/plain\nX-Mailer: PHP/" . phpversion()); $sent.="Sending To $name..........Sent<br />"; } } } $adminlog[admin]="{$_SESSION['aname']}"; $adminlog[details]="[Sent Newsletter] Subject: $send[subject]"; adminlog($adminlog);




Bookmarks