For sending attachments you need to encode the attachment file (either 
uuencode or MIME enocoding). Mime encoding is best as it is 
understood/decoded by most email clients.

You can go through the following article -- 
http://oase-shareware.org/shell/articles/mailattachments.html for details 
about how to send mails using mime encoding.


Deepak Singhal

>From: Lokesh Bhog <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>CC: [EMAIL PROTECTED]
>Subject: [ilugd]: Sending mail with attachment
>Date: Mon, 14 Jan 2002 21:41:27 -0800 (PST)
>
>Dear All,
>
>I am looking for a shell script or command that can be
>used to send mail along with attachment.
>I know
>mail user1 < filename
>but the contents of file are put in mail and not
>attached. Cannot find the option with mail command
>that would send the file as an attachment.
>pine has an option -attach but pine does not end when
>i give
>pine user1 -attach filename
>
>Please help
>Lokesh
>
>__________________________________________________
>Do You Yahoo!?
>Send FREE video emails in Yahoo! Mail!
>http://promo.yahoo.com/videomail/
>
>           ================================================
>To un/subscribe, send email to [EMAIL PROTECTED] with 'un/subscribe' 
>in subject header
>Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org
>           =================================================
>




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

          ================================================
To un/subscribe, send email to [EMAIL PROTECTED] with 'un/subscribe' in subject 
header
Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org
          =================================================

Reply via email to