The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-09-2005
RishiPahuja's Avatar
RishiPahuja RishiPahuja is offline
Registered User
  
 

Join Date: Apr 2005
Location: Bangalore, India
Posts: 203
Talking mail: html content

hi guys,

am required to prepare a report and mail it, to make it more appealing i wish to have content of mail in rich text format i.e html type

with mailx how to specify the content type of mail body as html?

Thanks in advance!!!

rishi
  #2 (permalink)  
Old 10-29-2005
lidoiwo's Avatar
lidoiwo lidoiwo is offline
Registered User
  
 

Join Date: Oct 2005
Location: Grove City, PA.
Posts: 2
Have you ever recceived a reply on this message - I would like to do the same thing.
  #3 (permalink)  
Old 10-31-2005
Ygor's Avatar
Ygor Ygor is offline Forum Staff  
Moderator
  
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,409
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0