![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help request for sending email from unix to internet | sbabuts | BSD | 1 | 09-14-2005 01:48 PM |
| sending email from KSH unix script. | rosh0623 | Shell Programming and Scripting | 3 | 07-26-2005 12:36 AM |
| sending email | vasikaran | UNIX for Dummies Questions & Answers | 1 | 07-05-2005 02:50 AM |
| unix - c program sending error from DB to email | chino_52284 | Shell Programming and Scripting | 2 | 04-28-2005 05:12 PM |
| Sending email | bcheaib | UNIX for Dummies Questions & Answers | 7 | 02-22-2005 05:03 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
sending email in unix. need help!
how can I send an email in UNIX, attach a file and cc a receipient?
i use the command below to attach a file (this works): uuencode path/filename filename | mailx -s "subject" addr@host.com here is how i cc a receipient (this also works): i have a file named cc.lis and contains: Hello ~c rec_addr@host.com I then execute: mailx -s "Subject" addr@host.com < cc.lis im having an error when i try to do this: uuencode path/filename filename | mailx -s "subject" addr@host.com < cc.lis is there another way to attach a file and copy (cc) a receipient then send the email in UNIX??? please help. thanks in advance. |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
1. create a body.txt that contains: Attached is your file. ~c cc_addr@host.com 2. create the attachment and append it to body.txt uuencode path/filename filename >> body.txt 3. send the email mailx -s "Subject" < body.txt |
|
|||
|
What about using the -c flag to mailx?
% mailx -s "Subject" -c otherguy@example.com thisguy@example.com < body.txt |
|||
| Google The UNIX and Linux Forums |
| Tags |
| mailx, mailx attachment |
| Thread Tools | |
| Display Modes | |
|
|