Getting the mail body as plain text (without headers)
See original GitHub issueHi!
I don’t manage to get only the body of an email! I am doing like this http://pastebin.com/eYs5w7M8
and when looking at what I got in body, I have also the headers :
------Nodemailer-0.4.4-?=_1-1379435408278<CR><LF>
Content-Type: text/plain; charset=utf-8<CR><LF>
Content-Transfer-Encoding: quoted-printable<CR><LF>
<CR><LF>
I am testing
...
So is there a way to get only the “I am testing” bit?
Thanks!!!
Issue Analytics
- State:
- Created 10 years ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
How to print email body only without header and username in ...
1. Select the email you will print without header, and click Home > Reply. · 2. Now the Reply Message window is opening....
Read more >Change the message format to HTML, Rich Text Format, or ...
On the File tab, choose Options > Mail. Under Compose messages, in the Compose messages in this format list, click HTML, Plain Text,...
Read more >Python: Retrieving only POP3 message text, no headers
This keys off the first empty line in the list of all lines as the end of the header info. Then just list...
Read more >Emails come through with headers only, no body even though ...
Emails come through with headers only, no body even though the body exists on the server. Other times, the message comes through as...
Read more >Learn Why Plain Text Emails Still Work and How to Use Them
Included is a plain text email template to get you started. ... with content from the HTML part of the message, without spending...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For multipart messages, instead of ‘TEXT’, prepend the part number (you can get this from
partID
if you fetched the structure). So to fetch the first part use ‘1.TEXT’.