Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I test a plain text email that has an HTML body?

If an email contains HTML, Gmail, for example, renders the body as HTML. How can I check that the plain text version also works?

like image 849
Ian Warburton Avatar asked Dec 04 '25 10:12

Ian Warburton


1 Answers

When you get an email on Gmail click on the small button on the right of reply and choose 'show original'.

show original

If it is a multi-part message it will show you what was sent to the Gmail server. Do a quick search for:

----=_---NextPart--=_

You should be able to find the multi part messages which consists of text/plain or text/html, similar to below:

Content-Type: text/plain; charset=utf-8
Content-transfer-encoding: quoted-printable


Content-Type: text/html; charset=utf-8
Content-transfer-encoding: quoted-printable

If your platform allows to send the multi-part individually then you can send them separate and you will get both the emails separate in your inbox.

Hope that helps.

like image 158
Syfer Avatar answered Dec 07 '25 11:12

Syfer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!