luckyblackcat
Programmer
Hi,
I need a script to send an email.
I can send ok if I keep it simple ....
mail($to, $subject, $message);
as soon as I try to add $from or $headers the mail never arrives.
I need to have at least .. FROM on the email as it doesn't look good having my host servers _root in that field!
I did have a list of headers to help bypass junk mail filters. They don't seem to work. I'll include them just in case a 'real' expert is reading this. (lol)
==========================================================
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: \"".$myname."\" <".$myemail.">\n";
===========================================================
As I said help with from would be great anything else a real bonus.
Thanks for reading this.
I need a script to send an email.
I can send ok if I keep it simple ....
mail($to, $subject, $message);
as soon as I try to add $from or $headers the mail never arrives.
I need to have at least .. FROM on the email as it doesn't look good having my host servers _root in that field!
I did have a list of headers to help bypass junk mail filters. They don't seem to work. I'll include them just in case a 'real' expert is reading this. (lol)
==========================================================
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: \"".$myname."\" <".$myemail.">\n";
===========================================================
As I said help with from would be great anything else a real bonus.
Thanks for reading this.