LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-18-2005, 07:31 AM   #1
crazy_girl
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
Option to specify Sender's Address in Mail command


Hi,

Earlier i was using the mailx command on Sun Solaris server and corresponding option was -r using which i gave the sender's address.
mailx -s "subject" -r sender@abc.com recipient@abc.com

I am unable to find a corresponding option for the mail command on linux.
mail -s "subject" ?? sender@abc.com recipient@abc.com


Please help.

Thanks.

PS : to add to the above, i am invoking the mail command from a script

Last edited by crazy_girl; 10-18-2005 at 08:14 AM.
 
Old 10-18-2005, 06:49 PM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
nail (http://nail.sourceforge.net/) is a replacement for mailx (which provides the mail command) that allows you to do this, among other new features. See if your distro has a package for it or get it from their sourceforge site.
 
Old 08-20-2007, 10:36 AM   #3
narendramind
LQ Newbie
 
Registered: Sep 2006
Posts: 1

Rep: Reputation: 1
To avil -r option in mail command on all platforms

Use the following:
mail -s "subject" mail1@server.com -- -r "from@fromserver.com" -f </path/to/file>

Quote:
Originally Posted by crazy_girl View Post
Hi,


Earlier i was using the mailx command on Sun Solaris server and corresponding option was -r using which i gave the sender's address.
mailx -s "subject" -r sender@abc.com recipient@abc.com

I am unable to find a corresponding option for the mail command on linux.
mail -s "subject" ?? sender@abc.com recipient@abc.com


Please help.

Thanks.

PS : to add to the above, i am invoking the mail command from a script
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shel script mail send ("/" in mail address) problem anaid Linux - Networking 3 08-23-2005 07:41 AM
Configure sender's mail id. bharaniks Linux - Software 0 07-27-2005 05:35 AM
need a mail relay that rewrite the sender's domain linuxboy123 Linux - Networking 3 04-20-2005 03:42 PM
Verifying sender's address in Postfix sagif Linux - Networking 0 03-02-2004 02:17 PM
how can I use sendmail to e-mail with an existing e-mail address? vofkid Linux - Newbie 0 03-14-2002 08:45 PM


All times are GMT -5. The time now is 08:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration