Open mtbvang opened 3 years ago
I use search(from, 'from')
and get the same
I found library https://nodemailer.com/extras/mailparser/
for example
let emails = await mailhog.search(from, 'from');
let parsedEmail = await simpleParser(emails.items[0].Raw.Data);
//parsedEmail.html
//parsedEmail.attachments[0].filename
Unfortunately I could not reproduce this yet. A reproducible test case or a pull request would be welcome!
When a message is retrieved with latestTo that contains attachments the text and html properties are undefined. Removing the attachments from the messages results in the properties being set and retrievable.