Page 1 of 1

php email attachment

Posted: Tue Oct 16, 2007 11:28 am
by Citizen
I've searched the forums and the php.net stuff and can't find anything solid to help...

I already have a working script that I wrote that sends emails to a list of addresses from my database. How do you attach a file to the emails as well?

-Cit

Posted: Tue Oct 16, 2007 11:42 am
by RobertGonzalez
My suggestion is to download Swiftmailer and use it. At the very least, look at Chris' implementation of file attachment handling.