send email by php class
| From: | afan at afan dot net | Date: | Mon, 08 Jan 2007 14:24:34 +0000 |
| Subject: | send email by php class | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-246755@lists.php.net to get a copy of this message | ||
Hi,
To send email confirmation (after registration or to administrator after
Contact us form is submitted) I use the "standard" way:
function send_confirmation($to, $subject, $message)
{
$header = "Content-type: text/plain; charset=iso-8859-1\n";
$header .= "From: Vernon Company <webmaster@vernoncompany.biz>\n";
$header .= "Reply-To: Order Processing Dept.
<webmaster@vernoncompany.biz>\n";
mail($to, $subject, $message, $header);
}
send_confirmation($SalesEmail, $Subject, $Message);
It works fine, though, few times email was blocked and finished in
Junk/Bulk/Spam folder.
Now, I have to start sending emails as html. Not big deal.
But, it's so easy to get blacklisted if you make a mistake and I wanted to
grab and use good email class to do this. OUr web server is php5 based.
Was looking on phpclasses.net for the class but there are tons of them.
Can somebody recomend any class? Something simple.
Thanks for any help.
-afan