General discussion

Locked

mail html document

By ghislain.levesque ·
How can I send and html document by email. Not as an attachment, within the body...?

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by cpfeiffe In reply to mail html document

Try

`cat filename.html |mailx -s "html file" user@domain`

Collapse -

by ghislain.levesque In reply to

No, that send a plain text, but I have found how to do it...

echo "From: $LOGNAME\nTo: $USER_MAIL\nSubject: TESTING123\n\
Mime-Version: 1.0\nContent-Type: text/html\n" > /tmp/file
cat YOUR-HTML-FILE >> /tmp/file
/usr/lib/sendmail -t -oi < /tmp/file
rm /tmp/file

Collapse -

by ghislain.levesque In reply to mail html document

This question was closed by the author

Back to Linux Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums