Hi,
I have a function that allows a sender to send mass email to other memebers of a website. It pulls valid emails from a mysql database and formats and sends the message.
Problem is if the sender has no valid email address of his own. The output shows the "From" portion of the additional headers parameter as:
"From: Member name@anonymous.blah.blah.com".
Here is basic script:
if ( !empty($sender_email) ){
$header="From: $sender_name <$sender_email>";
}else{
$header="From: $sender_name";
}
How can I format the "From" section to not include the anonymous@blah.blah.com for those people without email addresses?