how do I change the email sender if I donot have the -r option?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting how do I change the email sender if I donot have the -r option?
# 1  
Old 08-13-2010
how do I change the email sender if I donot have the -r option?

Hey,

after I check the man page for mail and mailx, I did not find the -r option. But, I have to change the email sender, how can I do it?
Code:
   Send Mode
              mailx [-s subject] address...

   Receive Mode
              mailx -e

              mailx [-HiNn][-F][-u user]

              mailx -f[-HiNn][-F][file]


Code:
     mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr...
     mail [-iInNv] -f [name]
     mail [-iInNv] [-u user]



---------- Post updated at 11:30 AM ---------- Previous update was at 10:24 AM ----------

anyone can help? thanks, dudes

---------- Post updated at 11:55 AM ---------- Previous update was at 11:30 AM ----------

Oh My God, I found it.
Code:
mail -s "subject" mail1@server.com -- -r "from@fromserver.com"

Working amazingly!!!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Mail -s help ,change the sender to correct one

Hi expert I use mail -s "hello" bruce@sohu.com <kernel-img.conf send mail, it display the sender is lyang001@lyang001-OptiPlex-9010.corp.ad..com How can I change the sender to yanglei.fage@gmail.com to default ? (1 Reply)
Discussion started by: yanglei_fage
1 Replies

2. Shell Programming and Scripting

How to change the sender's name or E-mail address in mutt command

Can any one help me in this ??? How to change sender's name or email address in Mutt command??? (4 Replies)
Discussion started by: sarathi
4 Replies

3. UNIX for Dummies Questions & Answers

Script to print email from defined sender.

Hello all! I'm looking to setup some sort of script so that when a an email comes in from a specific address the message and/or attachments are automatically printed. Any ideas on where to start? Thanks for the help. (9 Replies)
Discussion started by: Mr. Biggz
9 Replies

4. UNIX for Dummies Questions & Answers

fake email sender

Hi, I am using the below command to send the email. mailx -s "test from `hostname`" email@gmail.com < attachment.txt id uid=870(wlsuser) gid=641(wlsgrp) I recieve the email as "From: wlsuser@hostname Can I somehow have any string instead of wlsuser, if that grows too complex to... (4 Replies)
Discussion started by: shifahim
4 Replies

5. Shell Programming and Scripting

Email with cc and bcc option

Hi, I am able to send email from AIX using the following command. cat email.txt | mail -s "Mail Subject" venkat@gmail.com Our requirement is send email with cc and bcc option. We are getting email with from email address as our UNIX server user. We would like to change that, please let us know... (2 Replies)
Discussion started by: vfrg
2 Replies

6. Red Hat

How to change sender email address in mail -s command

Just having trouble trying to figure out what the option is. When I do mail -s "Subject" someuser@example.com I can't seem to specify "from" or "sender" option as I need it for my task. I tried using --f or -f though it didn't work. Can someone please tell me what other option... (0 Replies)
Discussion started by: rockf1bull
0 Replies

7. Shell Programming and Scripting

Changing the sender Email address to Alias

Hi All, I want to change the email address of the sender to some alias for eg: FROM:noreplyecommerce@test.com needs to be changes to TEST Please help me. (3 Replies)
Discussion started by: sithara
3 Replies

8. Shell Programming and Scripting

change mail sender in unix aix

Hi All, I have a ksh script, in which it sends mail successfully but from root id(root@system.com). I want it to be sent as customid@system.com. I verified man pages of mail, and found '-u userid' option. But it is failing. code snippet below: mail -s "subject" -u $customid... (7 Replies)
Discussion started by: Arunprasad
7 Replies

9. Shell Programming and Scripting

Sender email address has to changes

I am sending email with attachment using mail and uuencode command. Ex: (echo "$EMAIL_BODY"; uuencode $FILE ATTACH.TXT) || mail "$EMAIL_ID" -s "$EMAIL_SUB" I am getting email from "applmgr@rigelapp01.us.dell.com". I want to change this email address into... (1 Reply)
Discussion started by: balajiora
1 Replies

10. AIX

Change sender e-mail address

When sending emails to the outside world, aix present itself as d_prod@production1.pdc.itercom.org. This is causing some issue with our e-mail server. So we need to change the name to d_prod@itercom.org... Does any one know how this can be accomplished? Thank you (3 Replies)
Discussion started by: cchiang12
3 Replies
Login or Register to Ask a Question