[ale] Script to send email with attachments

spoof mylists at alexandertech.biz
Mon Sep 24 13:19:23 EDT 2007


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




More information about the Ale mailing list