The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers > Answers to Frequently Asked Questions > How do I send email?
Google UNIX.COM


How do I send email? How do I send an mail attachment from the command line?

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
mailx mike509123 Linux 4 07-08-2008 11:02 AM
mailx Paul Byrne UNIX for Advanced & Expert Users 6 06-23-2008 01:28 AM
mailX anumkoshy Shell Programming and Scripting 4 08-25-2007 09:08 AM
mailx error message : mailx: NUL changed to @ BG_JrAdmin UNIX for Dummies Questions & Answers 2 12-01-2005 06:27 AM
mailx to to Dl sm321 Shell Programming and Scripting 1 07-16-2004 05:21 PM

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-13-2000
Guest
 

Posts: n/a
I am trying to send mail from Unix (HP9000) to Exchange mail system. I need to send the file as an attachment. I am using uuencode to encode file as ASCII, but can't seem to get to over to Exchange as an attachment. I have tried both elm and mailx. I know I've done this before, but can't remember how??? Need some help....
Forum Sponsor
  #2 (permalink)  
Old 12-13-2000
PxT's Avatar
PxT PxT is offline
Registered User
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 905
What, specifically, is the problem? In other words, what happens when you try it using elm? Using mailx? Error messages, mail bounces?
  #3 (permalink)  
Old 12-13-2000
Guest
 

Posts: n/a
Mailx/Elm

When sending the file via mailx, I receive NO errors. It's just the file is NOT received as an attachment. Instead, the uuencode file is part of the body of the email. The synatx I'm using is mailx -s "Subject" email@xxx.com < uuencode_file.
  #4 (permalink)  
Old 12-13-2000
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,191
The syntax:

Code:
mailx -s "Subject" email@xxx.com < uuencode_file
has no flags to tell the mailer to send the file as an attachment and sends the file as message text. This is the normal behavior of both elm and mailx. Sending attachments is a MIME function, so you must set the MIME-type in the message header to make this work.
  #5 (permalink)  
Old 12-13-2000
Registered User
 

Join Date: Dec 2000
Location: Freeport IL
Posts: 4
You can try the following command -
mpack -s 'subject' file emailaddress
This sends a text file as an attachment.
Google UNIX.COM
 

Tags
mailx, mailx attachment

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:13 PM.


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

Content Relevant URLs by vBSEO 3.2.0