![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Send an attachment and html text both in the same mail | stefan.yu | Shell Programming and Scripting | 4 | 10-26-2006 10:46 PM |
| sending mail with html content | gmchoudary | UNIX for Dummies Questions & Answers | 2 | 11-28-2005 08:26 AM |
| Sending mail from Unix - For html output | frustrated1 | Shell Programming and Scripting | 2 | 05-04-2005 05:07 PM |
| How do I tell mail (or pine, or whatever) that the piped in file is html? | Boots | High Level Programming | 1 | 07-16-2002 03:40 AM |
| Using mail to send HTML emails | dmennis | UNIX for Dummies Questions & Answers | 2 | 06-29-2001 12:42 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Can't use mailx to send html, use sendmail instead....
Code:
#!/usr/bin/ksh export MAILTO="recipient@mail.com" export CONTENT="/tmp/example.html" export SUBJECT="Example Report" ( echo "Subject: $SUBJECT" echo "MIME-Version: 1.0" echo "Content-Type: text/html" echo "Content-Disposition: inline" cat $CONTENT ) | /usr/sbin/sendmail $MAILTO |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|