Closed paulshapiro closed 13 years ago
Hey Paul,
Does it work to pass in a Content-Type header to .message()
? For
example:
mail.message({
from: 'sender@example.net',
to: ['recipient@somewhere.org'],
subject: 'Hello from Node.JS',
'Content-Type': 'text/html'
})
// ... more methods here ...
Best wishes,
-Ben
Yes this works though the value must be a string. For example, the following will work fine: 'Mime-Version': '1.0'
This, however, will not: 'Mime-Version': 1.0
Cheers J
Thanks for reporting this, I'm going to close it since there's a way to give node-mail the headers it needs. Mime support will be added in an upcoming release. Thanks!
Hi guys,
Wasn't sure where to post this.
I made a simple modification to lib/mail/message.js like this to allow for HTML to be sent via node-mail. Node-mail was the only solution that I could get working for some reason.
Hope this helps or is accepted into the code.
Regards