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 Dummies Questions & Answers > Answers to Frequently Asked Questions > How do I send email?
.
google unix.com



How do I send email? Learn how to send a UNIX or Linux email attachment from the command line.

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

 
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 12-13-2000
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
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....
  #2 (permalink)  
Old 12-13-2000
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
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
Bits: 0 [Banking]
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 Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,661
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
Deepali Potnis Deepali Potnis is offline
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.
 

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 Off
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:39 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