For Changing the Default sender name (the default address like root) in mailx, use the following syntax
Syntax:-mailx -s "Subject" To Mail Address -- -r From Mail Address -F “Sender Name”
Eg:- mailx -s 'Disk Space Alert' itteam@gmail.com -- -r ictops@aerl.in -F "ICTOPS"
Where
-s is the subject
-r is the reply address
-F is the Full name of the sender
Output :-
from: ICTOPS
to: jaganponnus@gmail.com,
aneeshktramrita@gmail.com
date: Mon, Nov 3, 2014 at 12:38 PM
subject: Disk Space Alert
This comment has been removed by the author.
ReplyDelete