cancel
Showing results for 
Search instead for 
Did you mean: 

sendmail usage

SOLVED
Go to solution
vthiru
Advisor

sendmail usage

Hello Admins,

If I want to send a mail from a different mailid other than the logged in user using mailx, what option I have to use to insert the from mail id.

Thanks in advance.

vthiru
5 REPLIES
Patrick Wallek
Honored Contributor
Solution

Re: sendmail usage

Have you tried the '-r
' option to mailx? The man page for mailx has details on it.

# echo "some text for testing" | mailx -r fromid@somedomain.com -s testing destid@somedomain.com


The above will cause the FROM to be fromid@somedomain.com.
Andres_13
Respected Contributor

Re: sendmail usage

Try man mailx.

rgds!
Sajjad Sahir
Honored Contributor

Re: sendmail usage

Dear

u can use
mailx -r
r for a particular address

vthiru
Advisor

Re: sendmail usage

Thanks Patrick, it worked perfect.

vthiru
vthiru
Advisor

Re: sendmail usage

The problem solved.