The UNIX and Linux Forums  

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


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to configure mailx command?? kumarsaravana_s Shell Programming and Scripting 9 03-29-2007 05:18 AM
mailx command with headers rgremill SUN Solaris 5 02-09-2006 02:23 PM
mailx command sveera Shell Programming and Scripting 5 04-28-2005 07:18 PM
mailx command (Sun Solaris 8) cczerwin Shell Programming and Scripting 2 07-16-2004 01:08 AM
trouble using mailx command ldrojasm Shell Programming and Scripting 2 04-03-2002 02:52 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-15-2007
Registered User
 

Join Date: Jul 2005
Posts: 24
Mailx Command

Hi,

mailx -s "hi" -r "abc@yahoo.com" aaa@yahoo.com<<EOF
Hi,

~<!uuencode a.txt a.txt
EOF

the above code is sending mails, but attachment is not going instead i just get like below

~<!uuencode a.txt a.txt

Thanks.
Reply With Quote
Forum Sponsor
  #2  
Old 11-15-2007
Registered User
 

Join Date: Oct 2007
Location: Wellington, New Zealand
Posts: 30
what about if you put:

Code:
mailx -s "hi" -~ -r "abc@yahoo.com" aaa@yahoo.com<<EOF
on your command line and force tilde expansion?
Reply With Quote
  #3  
Old 11-15-2007
Read Only
 

Join Date: Nov 2007
Posts: 165
Try:

uuencode a.txt a.txt | mailx -s "hi" -r "abc@yahoo.com"
Reply With Quote
  #4  
Old 11-15-2007
Registered User
 

Join Date: Jul 2005
Posts: 24
mailx -s "hi" -~ -r "abc@yahoo.com" aaa@yahoo.com<<EOF

is still not attaching.....when i remove -r "abc@yahoo.com" then it is working fine...

uuencode a.txt a.txt | mailx -s "hi" -r "abc@yahoo.com" aaa@yahoo.com

this is working fine, but i need to insert this attachment between two paragraph...
how do i do that?

Thanks.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
mailx, mailx attachment

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0