![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mailx : can we have the body to be a binary file ? | CKIRCH | UNIX for Dummies Questions & Answers | 5 | 01-01-2008 07:33 PM |
| mailx: concatenating strings for message body (KSH) | rockysfr | Shell Programming and Scripting | 1 | 07-29-2007 08:12 AM |
| AIX send mail with HTML message body and a binary attachment | G-Man | UNIX for Dummies Questions & Answers | 4 | 03-22-2007 02:15 PM |
| MAILX Body containing SQL results | dstinsman | UNIX for Dummies Questions & Answers | 2 | 10-05-2006 11:12 PM |
| How can I write a HTML file in UNIX and sent it as a body of a mail | diwa81 | Shell Programming and Scripting | 0 | 10-13-2004 09:07 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
It is actually possible, and easy to send email in html format.
Here is an example perl script to do just that. Quote:
![]() |
|
||||
|
You don't really need Perl for that, either. And you should make sure there is an empty line between the headers and the body.
Code:
( cat <<HERE; cat /path/to/file.html) | sendmail -oi -t From: sender@example.com To: recipients@example.net Subject: We hate you, so we send HTML instead of plain text Mime-Version: 1.0 Content-type: text/html Content-transfer-encoding: 8bit HERE If your cat can combine standard input with a regular file, more power to you. Code:
cat - /path/to/file.html <<HERE | sendmail -oi -t ... |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| mailx, mailx attachment, sendmail |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|