2012/05/17

PHP, mail, attachment

I've only had a handful of occasions where attaching files to an email was required, or even warranted.  Inevitably I would turn to Google, spend an hour or two wading through various dark arts involving base64, mime-types, mail headers and virgin sacrifices at the altar of SMTP.  Today ended up being no different.