The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Using mailx to send in the future? Also change "from" address? paqman Shell Programming and Scripting 3 1 Week Ago 02:46 PM
change from address in mailx koti_rama Shell Programming and Scripting 1 09-26-2007 01:26 AM
Send email where # is in the email address - Using Unix jingi1234 UNIX for Dummies Questions & Answers 1 05-23-2005 08:23 AM
Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win) Vetrivela UNIX for Advanced & Expert Users 2 02-15-2005 07:43 AM
mailx sender address customisation vasan_srini UNIX for Dummies Questions & Answers 1 09-10-2001 05:40 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 09-20-2005
Registered User
 

Join Date: Apr 2005
Posts: 51
mailx- can we change the from address in the email that is sent out.

Hello,

Is there anyway to change the from address in the email sent using mailx command?

I have the following command:
mailx -s $subject xxx@xxxx.com < $mail_mesg

This defaults to the following format "acctname@usserver.companyname.com" as the from address in the email. Problem is this is not a valid one and the recieving server is bouncing the email since it's not a valid address. And we need to change the from address to be a valid one.

Any suggestions are appreciated.
Thankyou,
Radhika.
Reply With Quote
Forum Sponsor
  #2  
Old 09-20-2005
Registered User
 

Join Date: Apr 2005
Posts: 51
I am not finding much on this, any pointers are appreciated.

ThankYou,
Radhika.
Reply With Quote
  #3  
Old 09-20-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,613
Please read our rules:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly.
Reply With Quote
  #4  
Old 09-20-2005
Registered User
 

Join Date: Apr 2005
Posts: 51
I am sorry didn't mean to offend anybody. Just am desperate as it is a production issue. I figured some body must have gone through the same issue and was hoping for some help, that's all.

Thankyou,
Radhika.
Reply With Quote
  #5  
Old 09-20-2005
Ygor's Avatar
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,248
Try reading the manual pages for mailx.
Reply With Quote
  #6  
Old 09-21-2005
Registered User
 

Join Date: Apr 2005
Posts: 51
I figured it - it's -r option.

ex: mailx -r $returnaddress -s $subject toaddress@xxx.com < $mail_mesgfile
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0