Setting subject: in email
Closed this issue · 1 comments
mikerr commented
Using smtp.send was coming up with a blank subject field
Perhaps obvious, but I found to add it you add Subject:
followed by two return characters before the content of the email,
i.e.
smtp.send("Subject: status update \n\n" + content)
Hope that helps !
shawwwn commented
Thanks.
Also for embedding images in email, take a look at MIME extension (https://en.wikipedia.org/wiki/MIME#MIME_header_fields).