Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users


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.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 04-30-2007
Registered User
 
Join Date: Apr 2007
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
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 Staff  
Moderator
 
Join Date: Oct 2003
Location: 54.23, -4.53
Posts: 1,792
Thanks: 1
Thanked 101 Times in 91 Posts
http://www.unix.com/unix-advanced-expert-users/14177-unable-sent-mail-html-format-mailx-command.html
    #4  
Old 05-01-2007
Registered User
 
Join Date: Apr 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Bug

Thanks a lot.
Sponsored Links
    #5  
Old 05-22-2008
Registered User
 
Join Date: May 2008
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
Location: /there/is/only/bin/sh
Posts: 3,653
Thanks: 0
Thanked 8 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
Registered User
 
Join Date: Feb 2007
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

Tags
mailx, mailx attachment, sendmail

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 07:07 AM.