linux - How to send html to Outlook 14 and have it display correctly? -
how should format html code displays correctly in outlook 14? want insert table , see onenin e-mail. no matter tried, got text of html (even if copied source of existing e-mail , sent myself!)
i'm doing sending using linux's /bin/mail utility.
$ cat file.html | /bin/mail -s "test" me@myemail.com
this done on company's intranet. sending text version works.
it not outlook-dependent. default, mails interpreted text. if want send html mail, should inform mail reader handle html. can done content-type: text/html smtp header, in http.
an example mail header should work:
from: <adam@example.org> to: <eva@example.org> subject: test content-type: text/plain; charset=iso-8859-15 content-transfer-encoding: 8bit <html><b>test</b></html> your mail program part of mailing system, work if simple gave header beginning of mail body. so:
you$ mail -s eva@example.com content-type: text/html <html><b>test</b></html> if not, mail softwares contain tool named sendmail, capable that.
there various libraries / modules in every scripting language common in linux, can create more complex mails (attached files, inline images, dual textonly , html content, etc).
Comments
Post a Comment