I've tried and understanded the examples of the files test_smtp_mail.php and test_attachment_message.php
Now I need to use both solutions: I want to be able to send an HTML message with attachments using the smtp_message class
My problem is that the test_attachment_message.php uses the send() function (no parameters needed); while the test_smtp_mail.php the example uses the smtp_mail() function (wich requires parameters).
I understand that the send() function is a wrapper that after the use of serveral function calls (AddQuotedPrintableTextPart(), SetEncodedHeader(), AddFilePart(), etc.) sets the equivalent to the variable $additional_headers variable in the smtp_message_class
My question is:
How can I combine both examples in order to send messages with attachments using smtp_message_class?
How do i:
1) (manually?) attach files to the message
2) set the $additional_headers variable
in order to use the smtp_mail funtion?