Hi Rahul,
Here is a simple shell script that sends a Image attachment using the
mail command.
i=1
while [ $i -le 2 ]
do
uuencode goa.jpg goa.jpg | mail -s $i [EMAIL PROTECTED]
i=`expr $i + 1`
done
Regards,
Jayant.
----- Original Message -----
From: "Rahul Kumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 07, 2003 10:36 AM
Subject: [LIH]Sending mail(attachment) from shell script
> I need to send a mail with attachment from inside a shell script. From
> whatever i have tried:
> 1) "mail" does not allow attachment
> 2) pine allows, but opens the user-interface. Cant find a way of
> stopping it.
> 3) same for mutt
> 4) send - couldnt figure this one out. keeps asking for alias file and
> giving errors.
>
> Help appreciated. Am on RH 7.x, using bash (not that this should
> matter!).
> --
> rahul.
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> linux-india-help mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/linux-india-help
>
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help