display HTML text in body using unix mailX ???? | Unix Linux Forums | UNIX for Advanced & Expert Users

  Go Back    


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.

display HTML text in body using unix mailX ????

UNIX for Advanced & Expert Users


Tags
mailx, mailx attachment, sendmail

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 04-30-2007
sparan_peddu sparan_peddu is offline
Registered User
 
Join Date: Apr 2007
Last Activity: 16 January 2009, 11:05 AM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question display HTML text in body using unix mailX ????

display HTML text in body using unix mailX ????Hello,

could any one tell me how to display text in html layout by sending a file using mailx command in unix.

i know to use mailx :

mailx -s "SUBJECT" user.name@domail.com < file_name.txt

instead of txt file i want to send html page and that page should display in html format.

Please help me with this.

Thanks,

SparanBlue
Sponsored Links
    #2  
Old 04-30-2007
porter porter is offline Forum Advisor  
Registered User
 
Join Date: Jan 2007
Last Activity: 8 January 2008, 6:50 PM EST
Posts: 2,965
Thanks: 0
Thanked 5 Times in 5 Posts
I imagine you would want to uuencode or MIME encode it.
Sponsored Links
    #3  
Old 04-30-2007
Ygor's Avatar
Ygor Ygor is offline Forum Advisor  
Advisor
 
Join Date: Oct 2003
Last Activity: 21 November 2013, 8:38 AM EST
Location: 54.23, -4.53
Posts: 1,801
Thanks: 1
Thanked 110 Times in 98 Posts
unable to sent mail in html format by mailx command.
    #4  
Old 05-01-2007
sparan_peddu sparan_peddu is offline
Registered User
 
Join Date: Apr 2007
Last Activity: 16 January 2009, 11:05 AM EST
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Bug

Thanks a lot.
Sponsored Links
    #5  
Old 05-22-2008
sharadpisal sharadpisal is offline
Registered User
 
Join Date: May 2008
Last Activity: 6 December 2011, 11:03 AM EST
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Hi

I read the thread, i am also facing the same problem, but issues is that I cant use sendmail here, i am supposed to use mailx only as sendmail is not available on the system on which i work. I'll be damn happy if anybody can help me out,
Thanx a lot
Sponsored Links
    #6  
Old 05-23-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
 
Join Date: Mar 2008
Last Activity: 28 March 2011, 6:41 AM EDT
Location: /there/is/only/bin/sh
Posts: 3,653
Thanks: 0
Thanked 10 Times in 8 Posts
mailx does not have MIME facilities (at least in the general case). Do you have mutt or pine then?

Like it says in that thread, mailx uses something like sendmail behind the scenes to send off the mail, so maybe you have it after all. Look in /usr/sbin/sendmail and /usr/lib/sendmail as well; or if you have locate, try locate sendmail
Sponsored Links
    #7  
Old 05-23-2008
varungupta varungupta is offline
Registered User
 
Join Date: Feb 2007
Last Activity: 15 July 2010, 5:53 AM EDT
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 206
Thanks: 0
Thanked 1 Time in 1 Post
Quote:
Originally Posted by porter View Post
I imagine you would want to uuencode or MIME encode it.
uuencode file2 file2 >> tempfile

mailx -s "ATTACHMENT with TEXT" vg517@chrysler.com < tempfile

Try using the above example. hope this'll workout for you.

Thanks
Varun.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Send HTML body and HTML attachment using MUTT command vickramshetty Red Hat 2 05-11-2010 10:33 AM
mailx requirement - email body header in bold and data content in normal text sureshg_sampat Shell Programming and Scripting 5 04-08-2010 07:07 AM
Referring to attached images in html email body through mailx biswasbaishali Shell Programming and Scripting 5 03-15-2010 01:13 PM
mailx and html body messages gbagagli UNIX for Dummies Questions & Answers 2 11-06-2008 07:36 AM
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



All times are GMT -4. The time now is 05:12 PM.