Closed butschster closed 10 months ago
In some cases an email might be non html like in the event below:
{ "uuid":"a68e1262-39d4-4ecc-bdc1-ef5298f312a7", "type":"smtp", "payload":{ "id":"a0216af771ec6d1f670f9098d52ea6a9@local.host", "from":[ { "email":"sendit@local.host", "name":"Site" } ], "reply_to":[ ], "subject":"Reset YourPassword", "to":[ { "name":"", "email":"pm@site.com" } ], "cc":[ ], "bcc":[ ], "text":"<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n <style>\r\n body {\r\n font-family: Arial, sans-serif;\r\n padding: 20px;\r\n background-color: #f6f6f6;\r\n color: #333;\r\n }\r\n\r\n .container {\r\n max-width: 600px;\r\n margin: auto;\r\n background-color: #ffffff;\r\n padding: 20px;\r\n border-radius: 5px;\r\n box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);\r\n }\r\n\r\n .btn {\r\n display: inline-block;\r\n padding: 12px 24px;\r\n font-size: 16px;\r\n font-weight: bold;\r\n color: #fff;\r\n background-color: #3498db;\r\n border: none;\r\n border-radius: 5px;\r\n text-decoration: none;\r\n text-align: center;\r\n }\r\n </style>\r\n</head>\r\n<body>\r\n<div class=\"container\">\r\n <p>Hello Flavie Welch,</p>\r\n <p>To complete the password reset process, visit the following link:</p>\r\n <a href=\"http://localhost//password/reset?email=pm%site.com&expires=1700228845&signature=be270e0cca28cfe90ce7e11afa9dcece116610fdc64a1ece4d0cf2a79726189e\" class=\"btn\">Reset Password</a>\r\n <p>If you didn’t request this, please ignore this email.</p>\r\n\r\n <ul>\r\n <li>Email: pm@site.com</li>\r\n </ul>\r\n <p>Best Regards,</p>\r\n <p>Site Team</p>\r\n</div>\r\n</body>\r\n</html>\r\n\r\n.\r\n", "html":"", "raw":"To: pm@site.com\r\nSubject: Reset Your Password\r\nFrom: Site <sendit@local.host>\r\nMessage-ID: <a0216af771ec6d1f670f9098d52ea6a9@local.host>\r\nMIME-Version: 1.0\r\nDate: Thu, 16 Nov 2023 13:47:25 +0000\r\nContent-Type: text/plain; charset=utf-8\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n<!DOCTYPE html>\r\n<html lang=3D\"en\">\r\n<head>\r\n <style>\r\n body {\r\n font-family: Arial, sans-serif;\r\n padding: 20px;\r\n background-color: #f6f6f6;\r\n color: #333;\r\n }\r\n\r\n .container {\r\n max-width: 600px;\r\n margin: auto;\r\n background-color: #ffffff;\r\n padding: 20px;\r\n border-radius: 5px;\r\n box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);\r\n }\r\n\r\n .btn {\r\n display: inline-block;\r\n padding: 12px 24px;\r\n font-size: 16px;\r\n font-weight: bold;\r\n color: #fff;\r\n background-color: #3498db;\r\n border: none;\r\n border-radius: 5px;\r\n text-decoration: none;\r\n text-align: center;\r\n }\r\n </style>\r\n</head>\r\n<body>\r\n<div class=3D\"container\">\r\n <p>Hello Flavie Welch,</p>\r\n <p>To complete the password reset process, visit the following link:</p=\r\n>\r\n <a href=3D\"http://localhost//password/reset?email=3Dpm%site.com=\r\nm&expires=3D1700228845&signature=3Dbe270e0cca28cfe90ce7e11afa9dcece116610fd=\r\nc64a1ece4d0cf2a79726189e\" class=3D\"btn\">Reset Password</a>\r\n <p>If you didn=E2=80=99t request this, please ignore this email.</p>\r\n\r\n <ul>\r\n <li>Email: pm@site.com</li>\r\n </ul>\r\n <p>Best Regards,</p>\r\n <p>Site Team</p>\r\n</div>\r\n</body>\r\n</html>\r\n\r\n.\r\n", "attachments":[ ] }, "timestamp":1700142445, "project_id":null }
And we don't see any content in HTML tab
In some cases an email might be non html like in the event below:
And we don't see any content in HTML tab