![Picture of Carlos Rosão Picture of Carlos Rosão](/graphics/unknown.gif)
Carlos Rosão - 2010-02-20 19:41:07 -
In reply to message 3 from sefgsdfg
Well, I'm using this class for sending html emails with attachments for several months and it works perfectly.
I'll show you some snippets of my code so you can compare/reproduce:
<?
$email_message=new smtp_message_class;
//(...) all smtp parameter configuration
//set all message headers like this one, for instance
$email_message->SetEncodedEmailHeader("From",$from_address,$from_name);
//simple text part of the email
$email_message->AddQuotedPrintableTextPart($email_message->WrapText($text_message));
//html message part
$email_message->AddQuotedPrintableHTMLPart($html_message);
//file in attachment
$email_message->AddFilePart($attachment);
//send message
$error=$email_message->Send();
?>
This is just a simple guide for you to use.
I use like this, and it works like a charm...