manyuanrong / deno-smtp

SMTP implements for deno
MIT License
78 stars 26 forks source link

Content is empty due to missing blank line #20

Open fuglede opened 4 years ago

fuglede commented 4 years ago

If I use the example provided in the README to send an email to an Exchange server, the recipient receives an email with no contents. From a quick look at smtp.ts, this happens because there's no blank line before the content. Indeed, if I prefix config.content with an additional \r\n, the content comes through as expected.