Page 1 of 1

Form mailer with attachments.

Posted: Mon Jul 10, 2006 1:05 pm
by cupaball
I would think that this is fairly simple; however I cannot find a solution.

I already have a form that sends the contents to my email and adds to a database.

Can someone point me in the right direction as to how to add an attachment feature?

Posted: Mon Jul 10, 2006 1:45 pm
by Roja
PHP Mailer or Swiftmailer are both libraries that will allow you to do so.

Re: Form mailer with attachments.

Posted: Mon Jul 10, 2006 2:13 pm
by Christopher
cupaball wrote:Can someone point me in the right direction as to how to add an attachment feature?
I'm not sure you want to go that direction. Producing compliant MIME emails is what might be considered non-trivial -- and certainly non-fun. Those excellent packages mentioned are the result of many, many bug reports and tedious coding.

Re: Form mailer with attachments.

Posted: Mon Jul 10, 2006 2:37 pm
by Chris Corbyn
arborint wrote:Those excellent packages mentioned are the result of many, many bug reports and tedious coding.
Indeed... it's like HTML and web browsers; If all email clients and servers followed standards it would be straightforward. Initially there were quite a few (relatively minor) bugs to iron out but everything has hit a stable point now...

That said, I'll kid nobody, MIME as a basic concept is extremely simple once you've looked at a few examples.