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
sending reply to the mail arthi UNIX for Dummies Questions & Answers 1 06-04-2008 04:04 AM
Change sender e-mail address cchiang12 AIX 3 11-18-2006 12:18 PM
Mail Sender rkapfer UNIX for Advanced & Expert Users 0 07-26-2005 02:16 PM
no-reply@unix.com does not work Peterh Post Here to Contact Site Administrators and Moderators 1 04-23-2004 05:14 PM
mail without sender's id! sskb UNIX for Dummies Questions & Answers 3 09-12-2001 09:18 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-14-2000
Registered User
 

Join Date: Nov 2000
Location: Mainland USA/Philippines
Posts: 8
Question

Im currently working on modifying a unix script called email maker which basically creates emails on a regular basis using the unix Mail.
Question: Is there a way to changed the value of the reply to and sender fields? Can I hard code values on these fields? How?
Thanks in advance.
Forum Sponsor
  #2  
Old 11-14-2000
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,493
Yes, maybe. Most UNIX-based mail utilites have ways to change this. What is the exact name of the mail utility you are using or planning to use and the platform? Some are more flexible than others. I know you can do this with both sendmail() and elm(). Not sure about mail.

Here is part of the man page for mailx on linux (mail):

Quote:
MAIL(1) System Reference Manual MAIL(1)

NAME
mail - send and receive mail

SYNOPSIS
mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr...
mail [-iInNv] -f [name]
mail [-iInNv] [-u user]
  #3  
Old 11-15-2000
Registered User
 

Join Date: Nov 2000
Location: Mainland USA/Philippines
Posts: 8
platform is Unix Sun

mail function in /usr/ucb/Mail
  #4  
Old 11-15-2000
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,493
Is there any particular reason you are using that version of mail() and non another command line mail utility?

OBTW: The way I do what you are trying to do is to use the fact that most mailers (elm, mail, sendmail, etc.) will read header syntax in the body of the message and extract that information. I have done this many times in the past. Unfortunately I don't have examples in front of me today.

The basic idea is that these mailers will scan the message for "RFC 822 header keywords" like the ones you are wanting to use and that becomes part of the outgoing message header. Works great! I just don't have the information in front of me to give the exact syntax. I have seen this in the documentation, but can't remember (off hand) what exact document to point you to.

[Edited by Neo on 11-15-2000 at 07:49 PM]
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:41 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