So, I would like to use mail()
to send registration emails for my website, however I'd like to make it look nice while falling back to good old plaintext when necessary; a mixed message email.
However I would like it to be sent from John Doe who's email is johndoe@example.com to recipient@example.com.
The HTML code should be <html><head><title>HTML email!</title></head><body><p>This is HTML!</p></body</html>
and the plaintext message should be This is plaintext.
What would be the arguments to mail()
to accomplish this? I know a lot of it deals with changing the header in some crazy way.
Thanks so much!