from address using maill command

nitin.gizare at wipro.com nitin.gizare at wipro.com
Thu May 7 17:00:06 UTC 2009


HI
 
Thanks allot I will try options.
 
Rgds
nitin

________________________________

From: redhat-sysadmin-list-bounces at redhat.com on behalf of Colin van Niekerk
Sent: Thu 5/7/2009 6:43 PM
To: redhat-sysadmin-list at redhat.com
Subject: RE: from address using maill command



Hi there,

 

You can use sendmail options when using the mail command by adding a '--' after the normal mail command options and then adding the sendmail options you need, as follows:

 

echo "body of the mail" | mail -s "subject" destination at address.com -- -f source at address.com -F "Sender's Full Name"

 

Cheers

Colin

 

From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of nitin.gizare at wipro.com
Sent: 07 May 2009 02:42 PM
To: redhat-sysadmin-list at redhat.com
Subject: from address using maill command

 

HI

 

We have requirement of sending automated warning mail with from address option using  "mail " command 

By default it comes with user at hostname.

Can some body help? .

 

Rgds

Nitin

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/redhat-sysadmin-list/attachments/20090507/521472d2/attachment.htm>


More information about the redhat-sysadmin-list mailing list