The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



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.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mailx : can we have the body to be a binary file ? CKIRCH UNIX for Dummies Questions & Answers 5 01-01-2008 07:33 PM
mailx: concatenating strings for message body (KSH) rockysfr Shell Programming and Scripting 1 07-29-2007 08:12 AM
AIX send mail with HTML message body and a binary attachment G-Man UNIX for Dummies Questions & Answers 4 03-22-2007 02:15 PM
MAILX Body containing SQL results dstinsman UNIX for Dummies Questions & Answers 2 10-05-2006 11:12 PM
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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-30-2007
sparan_peddu sparan_peddu is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 4
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
  #2 (permalink)  
Old 04-30-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
I imagine you would want to uuencode or MIME encode it.
  #3 (permalink)  
Old 04-30-2007
Ygor's Avatar
Ygor Ygor is offline Forum Staff  
Moderator
  
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,407
unable to sent mail in html format by mailx command.
  #4 (permalink)  
Old 05-01-2007
sparan_peddu sparan_peddu is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 4
Smile

Thanks a lot.
  #5 (permalink)  
Old 05-22-2008
sharadpisal sharadpisal is offline
Registered User
  
 

Join Date: May 2008
Posts: 28
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
  #6 (permalink)  
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,652
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
  #7 (permalink)  
Old 05-23-2008
varungupta varungupta is offline
Registered User
  
 

Join Date: Feb 2007
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 206
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

Bookmarks

Tags
mailx, mailx attachment, sendmail

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 06:00 AM.


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