![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| 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 06:46 PM |
| sending mail with html content | gmchoudary | UNIX for Dummies Questions & Answers | 2 | 11-28-2005 05:26 AM |
| Sending mail from Unix - For html output | frustrated1 | Shell Programming and Scripting | 2 | 05-04-2005 01:07 PM |
| How do I tell mail (or pine, or whatever) that the piped in file is html? | Boots | High Level Programming | 1 | 07-15-2002 11:40 PM |
| Using mail to send HTML emails | dmennis | UNIX for Dummies Questions & Answers | 2 | 06-29-2001 08:42 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
hi guys,
am required to prepare a report and mail it, to make it more appealing with mailx how to specify the content type of mail body as html? Thanks in advance!!! rishi |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Have you ever recceived a reply on this message - I would like to do the same thing.
|
|
#3
|
||||
|
||||
|
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 |
||||
| Google The UNIX and Linux Forums |