The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mail command in UNIX Shilpi UNIX for Dummies Questions & Answers 0 05-15-2008 03:02 AM
Mail command FeNiCrC_Neil UNIX for Dummies Questions & Answers 2 08-31-2007 10:12 AM
I am not able to send mail form unix to other mail accounts. chinnigd UNIX for Dummies Questions & Answers 1 04-06-2006 05:31 AM
E-Mail from command line for UNIX and Perl?? jy2728 Shell Programming and Scripting 4 11-26-2002 02:02 PM
can not send mail from unix server to company/yahoo mail b5fnpct UNIX for Dummies Questions & Answers 5 11-22-2002 06:24 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-20-2003
Registered User
 

Join Date: Dec 2003
Posts: 17
UNIX mail command

hi,

Im trying to send a e-mail to two people e.g X & Y . I run a shell script that uses the mail command to send an email to both these people . The email that i am sending contains two attatchments that i 'add' to a .mail file.

mail <recipients> < filename.mail

The problem that im getting is that when i send the email both X & Y recieve the email in the MS Outlook Inboxes but in the "To: " field it does not show their names.

e.g
To:

Im trying to change this so that it does show

e.g
To: X, Y

It works if i have no attatchments and only 1 attatchment then i use the following command.

uuencode <filename> <attatch_file_name> | mailx -s <subject> <recipients>

does anyone know how i can use the mail command so the recipient names come up when they open their email.

much appreciated
Forum Sponsor
  #2  
Old 12-20-2003
kduffin's Avatar
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
Add -t to the command line:

mail -t <recipients> < filename.mail

Cheers,

Keith
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:02 PM.


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