[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Script to send email with attachments
- Subject: [ale] Script to send email with attachments
- From: mylists at alexandertech.biz (spoof)
- Date: Mon Sep 24 13:19:23 2007
- In-reply-to: <[email protected]>
- References: <[email protected]>
A shell script using mutt as the client should work for you.
Example of sending using mutt: $ echo "Message content ...." | mutt -s
<subject> -a </file/to/attach> <recipient email addy>
Wrap that with a loop and you should be able to accomplish what you want.
Thompson Freeman wrote:
>
> I went and stuck my foot in "it" again, and volunteered to be computer
> geeky so I can learn something new. Which would be fine except I'm not
> quite finding the clues (yet) in a web search.
>
> The task is to send a number (close to 80) jpg pictures to a yahoo
> mail account by email. My usual email clients are pine & balsa running
> on an older Fedora Core install. Sending onesy twosy attachments with
> either client is a nobrain task, but I would rather script a task with
> fourty times the attachments. Obviously, I'm not aware of a way to
> script either client.
>
> I've got notes hiding somewhere in my mess which should give a python
> solution, but at the moment I'd rather something in bash.
>
> Any ideas? Help?
>
> Thanks in advance
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale