![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help on sending mail in ksh | ting123 | UNIX for Dummies Questions & Answers | 2 | 04-05-2006 04:35 PM |
| mail: html content | RishiPahuja | Shell Programming and Scripting | 2 | 10-30-2005 08:43 PM |
| Sending mail from Unix - For html output | frustrated1 | Shell Programming and Scripting | 2 | 05-04-2005 01:07 PM |
| sending mail | mskarica | UNIX for Advanced & Expert Users | 3 | 04-12-2005 05:59 AM |
| sending a mail to a mail client | solaris73 | UNIX for Dummies Questions & Answers | 5 | 11-18-2002 09:58 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
sending mail with html content
hi,
I am new to unix. I need send html content as a mail from my sun-solaris2.6 work station. When I tried that the recipient gets it as html code with all the tags. any solutions? thanx in advance |
| Forum Sponsor | ||
|
|
|
|||
|
This is what works for me
I have used this sometime, which was taken from some tutorial example, and it works great for me.
( echo "From: me@my_company.com" echo "To: you@your_company.com" echo "MIME-Version: 1.0" echo "Content-Type: multipart/mixed;" echo ' boundary="PAA08673.1018277622/server.domain.com"' echo "Subject: Test Message" echo "" echo "This is a MIME-encapsulated message" echo "" echo "--PAA08673.1018277622/server.domain.com" echo "Content-Type: text/html" echo "" echo "<HTML> <BODY bgcolor=blue> <blockquote><font color=red>Test</font> <font color=white>Message</font> <font color=blue>Body</font></blockquote> </body> </html>" echo "--PAA08673.1018277622/server.domain.com" ) | sendmail -t |