- Sent mail with SES.
- Sent mail with "sendmail". I don't have sendmail actually configured to an upstream MTA so I'm not 100% sure this worked, but the sendmail binary didn't complain and almost all of the code is shared with SES, so I'm reasonably confident this actually works.
I definitely reviewed almost this exact same code, but I have completely lost it in the stack of email-related changes recently. If I recall, I complained about the unused variable, checking for truthiness instead of using strlen for all the fields that PHPMailer wants, and the base64 attachment encoding thing. The truthiness checks make sense now that all those properties are objects instead of bare strings.
Still an unused variable.
Oh, and I believe this ("..does NOT support..") wasn't right, the way to do it is just a little tricky (->AltBody).
Or maybe this was true when written, then we updated PHPMailerLite, then it became untrue?
In either case, we build HTML + Text mail now.