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 01:02 PM
can not send mail from unix server to company/yahoo mail b5fnpct UNIX for Dummies Questions & Answers 5 11-22-2002 05:24 PM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
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 (permalink)  
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 UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:53 AM.


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