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 > 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
Sending email with text & attachment using mailx haryadoon Shell Programming and Scripting 3 07-27-2006 01:49 AM
Sending attachment thru a mail Rohini Vijay UNIX for Dummies Questions & Answers 1 05-12-2006 01:13 PM
Problem with mailx command when sending attachment. miltony Shell Programming and Scripting 2 12-02-2005 12:43 PM
mailx error message : mailx: NUL changed to @ BG_JrAdmin UNIX for Dummies Questions & Answers 2 12-01-2005 10:27 AM
email attachment, with a message using mailx edog UNIX for Advanced & Expert Users 4 09-28-2001 01:03 AM

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 08-09-2007
nihar.dutta nihar.dutta is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 2
Unhappy Problem while sending message and attachment with mailx

Hi All,

I am trying to send a mail with an attachment and message. Following command I am using.

(cat <messagefile> ; uuencode <attachmentfile> <attachmentfile>)|mailx -s"Subject" dave@email.com

In the received mail, message body is appearing fine. But attachment is not coming. Rather content of attachment is appearing in the body of the mail in encoded format.

Please advise.

Thanks
Nihar
  #2 (permalink)  
Old 08-09-2007
Cbish68 Cbish68 is offline
Registered User
  
 

Join Date: Mar 2006
Location: Woodstock, GA
Posts: 17
Quote:
Originally Posted by nihar.dutta View Post
Hi All,



(cat <messagefile> ; uuencode <attachmentfile> <attachmentfile>)|mailx -s"Subject" dave@email.com

Nihar
It is very close to being correct.

I would try:

( echo `cat <messagefile>` ; uuencode <attachmentfile> <attachmentfile>)|mailx -s"Subject" dave@email.com
  #3 (permalink)  
Old 08-09-2007
nihar.dutta nihar.dutta is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 2
Wow....it works.

Thanks a lot.
Closed Thread

Bookmarks

Tags
mailx, mailx attachment

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 03:47 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