Page 1 of 1

PHP mail Multiple Attachments

Posted: Fri Feb 02, 2007 5:04 am
by mikeeeeeeey
Morning all.

Just wondering, is there any relatively straight forward way of sending multiple attachments from a PHP script?
I managed to beable to send one, but as we all know, one is not enough! hahaha.

I know it's all to do with the MIME type of the email send in the headers, and encoding stuff etc etc, but I can't find any tutorials of sending more than one attachment.

Also, PHPMailer and Swiftmailer are cool, but I'd rather do it myself if anyone knows of any tutorials/articles out there, but after reading it's quite difficult to build a mailer which will work 100%, I may have to resort back.

So if anyone knows anything about this, it would be much appreciated :D

Thanks in advance you guysssss.

Posted: Fri Feb 02, 2007 12:57 pm
by marionconsulting
I would suggest using PHPMailer that you mentioned. Use the resources that are available to you and work smarter not harder. Then you can spend your time writing custom code that doesn't already exist in a pre-packaged form. If you still want to do it yourself, then download the code for PHPMailer and other similar applications that already handle multiple attachments and read the code and understand it. Once you do, then you have your solution. Best of luck!

Posted: Fri Feb 02, 2007 9:39 pm
by dibyendrah

Posted: Tue Feb 06, 2007 3:59 am
by mikeeeeeeey
Thanks guys, I'll take a look :D