If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > unix mail..

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-07-04, 14:58
sushant sushant is offline
Registered User
 
Join Date: Jan 2004
Posts: 49
unix mail..

Is it possible to attach file to the email sent using mail command?

or is there any alternative command?

Thanks
Reply With Quote
  #2 (permalink)  
Old 07-08-04, 02:14
srsjc srsjc is offline
Registered User
 
Join Date: Jun 2004
Posts: 20
U can use pine utility.

pine -attach <filename> <address>
Reply With Quote
  #3 (permalink)  
Old 07-08-04, 06:27
Damian Ibbotson Damian Ibbotson is offline
Padawan
 
Join Date: Jun 2002
Location: UK
Posts: 525
You can use uuencode.

Code:
{ echo "The mail body"; uuencode aFileToAttach theAttachmentName; } | mail -s "theSubject" "someone@somewhere.com"
If your file to attach is a text file, you might want to 'flip -mb' it into DOS format first.

HTH
Reply With Quote
  #4 (permalink)  
Old 07-08-04, 08:55
sushant sushant is offline
Registered User
 
Join Date: Jan 2004
Posts: 49
Thank you for your suggestions..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On