The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
fetchmail: forward mail changing subject chebarbudo UNIX for Dummies Questions & Answers 0 02-10-2009 06:53 AM
how to forward mail in /var/mail/username to external mail unitipon SUN Solaris 2 05-27-2008 01:20 AM
mail function problem jwholey Shell Programming and Scripting 4 05-01-2008 12:21 PM
How to configure mail function on Solaris raman1605 SUN Solaris 2 03-20-2008 04:58 AM
Changing userID and Changing group and GID deal732 Shell Programming and Scripting 2 04-18-2007 11:09 AM

Reply
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 08-21-2009
ABE2202 ABE2202 is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 31
Changing Dispatcher's name in Mail-function

Hi,

currently I am using following command to send a mail:


Code:
 
mail -s"Query result" $TO $CC < input_file

It works, but I want to change the dispatcher's name / sender's name.
I tried to find something in "man mail", but I didn't find anything.

can someone help me?

THX

---------- Post updated at 09:01 AM ---------- Previous update was at 06:36 AM ----------

I tried the option -r and by this it send the mail with new mail address:

Code:
mail -r 'NewDispatcher' -s"Overview result" $TO $CC < mail_tmp.$$

sends a mail with

Code:
NewDispatcher@somedomain.com

But how can I show an alias for that new dispatcher? Do I need to change a file containing the aliases?
  #2 (permalink)  
Old 08-22-2009
KenJackson KenJackson is offline
Registered User
  
 

Join Date: May 2008
Location: Maryland, USA
Posts: 111
Alias? Do you mean the comment portion of the email address?

Maybe this is what you want. I just tried it and it worked.

Code:
echo Test | mail -r "Ken Jackson <ken@host1.com>" -s Test ken@host2.com

  #3 (permalink)  
Old 08-24-2009
ABE2202 ABE2202 is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 31
yes thats exact what I meant, but unfortunately it does not work
Reply

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 05:58 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