Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] What is the most appropriate scripting language
- Date: Mon, 15 Jan 2007 18:15:23 +0900
- From: "Keith Bawden" <keith@example.com>
- Subject: Re: [tlug] What is the most appropriate scripting language
- References: <45AAFDA9.90504@example.com> <45AB4287.3070203@example.com>
On 1/15/07, Walter Hansen <gandalf@example.com> wrote:I'd say shell script would be the simplest although I didn't know an easy method for sending mime email existed until this discussion started.
Here is how I do this (for what it is worth). You must have metasend installed for this to work:
#!/bin/bash
from="test@example.com" subject="Test email with attachment" to="whoever@example.com" cc="" mime="application/x-gzip; name=\"$1\"" encoding="base64" filesize=`du -k $1 | cut -f 1`
if [ $filesize -lt 8192 ] then metasend -b -c "$cc" -F "$from" -s "$subject" -t "$to" -m "$mime" -e "$encoding" -f "$1" else echo "Sorry the attachment is too big to send - $filesize K" fi
# End
Regards, Keith
- References:
- [tlug] What is the most appropriate scripting language
- From: Dave M G
- Re: [tlug] What is the most appropriate scripting language
- From: Walter Hansen
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] What is the most appropriate scripting language
- Next by Date: Bourne Shell is the most appropriate scripting language (was Re: [tlug] What is the most appropriate scripting language)
- Previous by thread: Re: [tlug] What is the most appropriate scripting language
- Next by thread: Re: [tlug] What is the most appropriate scripting language
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links