![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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:
|
|
#3
|
|||
|
|||
|
platform is Unix Sun
mail function in /usr/ucb/Mail |
|
#4
|
||||
|
||||
|
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 |