from address using maill command

Colin van Niekerk Colin.vanNiekerk at mimecast.co.za
Thu May 7 13:13:47 UTC 2009


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/64bf70f5/attachment.htm>


More information about the redhat-sysadmin-list mailing list