Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to set up user from which the mailx command will send an email

Status
Not open for further replies.

GuzaPasha

Technical User
Joined
May 15, 2003
Messages
311
Location
FR
Hi all,

I need the following:

I want to use the script that will send an email using mailx command.

Is there any way to set up from which user it will be sent.
(is there a mailx syntax that can be used fot this?)

Thanks in advance,
Marko
 
man mailx

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
I know there is sth like

mailx -s "test" -r someones@mail.com receimail@mailcom.

But, i still receive it from the user that is currently logged in, eg root.(root@mail.com)

I am running it on UnixWare 7.0

Do you have other suggestions?

Thanx
Marko
 
If installed, you can take a look at sendmail.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Hi PH,

can I use the same syntax as with mailx or there is another syntax for sendmail.

Thank you, will try it inform soon

Marko
 
Have you tried this : man sendmail ?
Take a look at the -f and -F options.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Unfortunately, there is no man for sendmail as well as for mailx.

Thank you,
Marko
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top