![]() |
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 Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mail with attachment | param786 | Shell Programming and Scripting | 1 | 07-15-2007 12:20 PM |
| How To Add Attachment to Mail | lesstjm | Shell Programming and Scripting | 3 | 12-06-2005 11:24 AM |
| mail or mailx attachment | brettmartin99 | UNIX for Dummies Questions & Answers | 3 | 03-07-2005 11:27 AM |
| mail attachment | sushrut | UNIX for Dummies Questions & Answers | 3 | 08-28-2001 03:14 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
mailx commannd - Mail and Attachment in same mail
Hi ,
I am using mailx command for sending the mails. Rightnow I am sending the attachment (by using uuencode $filename) as a seperate mail.I wanna send the attachment also with the same mail. |
|
||||
|
Quote:
Thanks man, this is great help !! It solved my purpose too to send a mail with an attachment and text as an option. If I want to attach more then one file to the same mail then what would be the syntax ??? Thanks. Varun |
|
|||||
|
Quote:
uuencode file1.ext file1.ext >> tempfile uuencode file2.ext file2.ext >> tempfile uuencode file3.ext file3.ext >> tempfile . . . mail -s "Subject" user@domain.com < tempfile FYI: In case you didn't already know it, the first file named in the uuencode command is the source file. Include the path if necessary. The second file is the name that will be used when the recipient extracts it from their email. |
|
||||
|
Quote:
Thanks for the reply. One more question regarding the same topic. How to send a mail which contains the text as well as the attachment file ? Note :The text to the mail could be hardcoded or could be taken from a file. Please suggest !! Appreciate your help !! Varun |
|
||||
|
Quote:
Hey Guys, Thanks, I got the answer !! Thanks for visiting !! Varun. |
![]() |
| Bookmarks |
| Tags |
| mailx, mailx attachment, sendmail |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|