The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 11-10-2008 05:46 PM
change from address in mailx koti_rama Shell Programming and Scripting 1 09-26-2007 04:26 AM
Send email where # is in the email address - Using Unix jingi1234 UNIX for Dummies Questions & Answers 1 05-23-2005 11: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 10:43 AM
mailx sender address customisation vasan_srini UNIX for Dummies Questions & Answers 1 09-10-2001 08:40 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-20-2005
radhika radhika is offline
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.
  #2 (permalink)  
Old 09-20-2005
radhika radhika is offline
Registered User
  
 

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

ThankYou,
Radhika.
  #3 (permalink)  
Old 09-20-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
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.
  #4 (permalink)  
Old 09-20-2005
radhika radhika is offline
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.
  #5 (permalink)  
Old 09-20-2005
Ygor's Avatar
Ygor Ygor is offline Forum Staff  
Moderator
  
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,407
Try reading the manual pages for mailx.
  #6 (permalink)  
Old 09-21-2005
radhika radhika is offline
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:21 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0