Make sure all your tags are closed, you’ve closed them in the right order, and so on. Even without a fully-structured document, markup errors can still prevent your message from being displayed.Gmail can send & store smaller emails by omitting the document structure. I think such an email is technically invalid 3, but every mail client renders it anyway. But Gmail sends formatting only, with no document structure. Microsoft Outlook sends full HTML documents, as does Yahoo Mail, Hotmail, and Apple’s Mail.app. I expected a complete HTML document would be required - one with, , and tags rather than just formatting. The capitalisation matters, and the value should be multipart/alternative. In particular, make sure you send a valid Content-Type header.Both of these declared my message to be invalid, but didn’t point out the ordering error above. Swapping those sections fixed the problem. I’d placed my plaintext version after the HTML version. Your mail client will display the final part it understands. I found my answer buried on page 35 of an RFC 1 2. My code sent valid multipart emails – emails with both HTML and plaintext parts – but Gmail and Mail.app showed the plaintext. While building Electric Handshakes, a tool that connects job-hunters to employers via email, I spent days debugging an email problem.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |