guileen / node-sendmail

send mail without setting up a SMTP server
http://guileen.github.com/node-sendmail
MIT License
559 stars 110 forks source link

Plaintext content is truncated after the first ".\r\n" #41

Open MatthieuHPP opened 7 years ago

MatthieuHPP commented 7 years ago

hello,

I am using node-sendmail with debian 8, node 6.11, sendmail latest. Everything is incredibly simple and working well (spf, dkim...).

The only problem i am meeting, is mail content are truncated at the first dot followed by \r\n.

Is their a way to overcome this trend ? Many thanks.

Matthieu

GreenPioneer commented 6 years ago

@Geex-Renzo thoughts?

ShynRou commented 6 years ago

\r\n is specified as a seperator in SMTP. Best to avoid it's usage. Maybe use HTML instead of plain text and replace \r\n with <br>

@GreenPioneer Maybe replacement of \r\n in the message by default would work.

GreenPioneer commented 6 years ago

Im gonna try that out this week - are any of you still using sendmail and could validate if it works for you ? @ShynRou @MatthieuHPP @Geex-Renzo