Re: send email by php class
| From: | Jochem Maas | Date: | Mon, 08 Jan 2007 14:31:55 +0000 |
| Subject: | Re: send email by php class | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246756@lists.php.net to get a copy of this message | ||
afan@afan.net wrote:
> 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.
phpmailer.sourceforge.net
>
> Thanks for any help.
>
> -afan
>