![]() |
|
|
|
|
|||||||
| 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 |
| ksh : using mailx and attachments | madmat | Shell Programming and Scripting | 2 | 08-01-2005 08:06 PM |
| Email Attachments | fabbas | UNIX for Dummies Questions & Answers | 1 | 10-18-2004 07:36 AM |
| multiple attachments | edog | FAQ Submission Queue | 5 | 01-06-2003 11:09 AM |
| multiple attachments | edog | How do I send email? | 5 | 01-06-2003 11:09 AM |
| mail attachments | Multithreaded | UNIX for Dummies Questions & Answers | 1 | 03-20-2001 04:12 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
sendmail attachments
Dear all,
I've been working with AIX for, um, 15 years now and I have read all I can about the above, but I am stuck. Everything seems to point to using sendmail on the command line to embed a uuencoded attatchment will not work. Using something like "(cat plain.txt;uuencode attach.file targ.type) | mail addr@server" works fine, but I need to use the features of sendmail that allow the sender's identity to be changed. We currently use the latter function in a unix password reset script to e-mail the generated password to the user's MS Outlook account, but we hide the sender and replace it with the helpdesk so if they reply, the mail ends up in a sensible place as there is no route to direct mail back tot he unix host. Is there anything in the mail command that would allow the function? I am aware that this could be used for devious reasons, so if anyone would prefer to respond directly rather than posting, I would hope that could be arranged. Thanks, in advance, Robin |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
I don't know about AIX, but .on Solaris' "mailx" one can specify a '-r ReturnAddress' and have all replies to the original email go to the 'ReturnAddress' instead of what's been specified in the 'To:'.
|
|
#3
|
||||
|
||||
|
#4
|
|||
|
|||
|
Code:
"(cat plain.txt;uuencode attach.file targ.type) | /usr/lib/sendmail -oi addr@server" HTH, -c p.s. not sure where the sendmail binary is in AIX, assuming /usr/lib as per solaris, but i just don't have an AIX machine available at this minute to double check! |
|||
| Google The UNIX and Linux Forums |