![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Connection refused | Dudu1984 | IP Networking | 1 | 06-04-2008 06:04 PM |
| How to send Mail with Attachement | chgopi | Shell Programming and Scripting | 6 | 02-03-2006 05:46 AM |
| Connection refused from pop server | bluehell | IP Networking | 2 | 06-20-2003 10:03 AM |
| Send a mail with an attachement of a file | gaddeg | UNIX for Dummies Questions & Answers | 2 | 07-23-2002 02:01 PM |
| Send a mail with a subject and an attachement | josecollantes | UNIX for Dummies Questions & Answers | 1 | 08-27-2001 11:55 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi all,
I am a newbie to unix. I need to send an email with an attachment in unix to some id like abc@some_company.com Code i have used is ------------Code--------------------------- #!/bin/ksh set -x #set -n #cript: unix_mail_withattachments.ksh # Aurthor: Ravin Maharaj # Purpose: Use sendmail to e-mail messages from Unix with # file attachements # -------------------------------------------------------------------- SUBJ="Send mail from Unix with file attachments" TO=a@some-company.com CC=b@some-company.com ( cat << ! To : ${TO} Subject : ${SUBJ} Cc : ${CC} ! cat << ! HOPE THIS WORKS This sample E-mail message demonstrates how one can attach files when sending messages with the Unix sendmail utility. ! uuencode ${file_1} ${file_1} ) | sendmail -v ${TO} ${CC} ------------Code--------------------------- After which I run "mutt command I get message like "Connection refused by say some_company.com". What needs to be done? Any help will be great. Last edited by samuelc; 02-08-2008 at 02:38 AM.. |
|
|||||
|
uuencode file.txt file.txt | mailx -s "subject" samuel@company.com
|
| Sponsored Links | ||
|
|