Don't worry the e-mail I'm setting up is not for spamming purposes. It's to help an owner of an organization communicate to his members.
My error is that when I send the e-mail it works for me but meaning the message contains a to:, from:, subject: and a body:. However, some people don't receive a from: address and sometimes the to: area with all the e-mail gets split up and some of it gets put in the subject field.
Here's my code:
$MailFrom = "webmaster@testEmail.org";
$MailTo = "$emails";
$MailSubj = "$subject";
$MailBody = $a;
mail($MailTo,$MailSubj,$MailBody,"From: $MailFrom");
The client's host suggested adding something to the end of the submission, but I need a second opinion before I proceed. Their code is below:
$MailFrom = "webmaster@testEmail.org";
$MailTo = "$emails";
$MailSubj = "$subject";
$MailBody = $a;
mail($MailTo,$MailSubj,$MailBody,"From: $MailFrom","-fwebmaster@testEmail.org");
What should I do? Any suggestions?
Thanks in advance