I'd like to be able to send an email as HTML or as an attachment based on condition. So:
Content-Type: text/html
versus
Content-Type: text/html; name="form.htm"
Content-Disposition: attachment; filename="form.htm"
Currently I have 2 different functions because i can't figure out how do it conditionally. I can't stick an if statement within the body. It doesn't like that.