Creating emails with attachments in PHP
Yesterday I was trying to create form that would upload a file to the server. PHP script would then accept it and send it as an attachment to an email address. In order to attach a file I had to add multipart/mixed type headers. Upload worked just fine, but making multipart email to work was a bit of a trouble. Email would be successfuly sent and received but no content or attachment would appear in an email client (I use Opera’s inbuilt client). I looked at headers and everything was there: message, base64 encoded data but still nothing was showing in the email body. Read the rest of this entry »