Re: sendmail
Re: sendmail
- Subject: Re: sendmail
- From: Andrew Oliver <email@hidden>
- Date: Sun, 02 Feb 2003 15:35:18 -0800
Assuming you just want to send plain text and not attachments (which gets
into all kinds of issues with MIME encoding, etc.), the following will work,
assuming sendmail (or another MTA) is running on your machine.
It pipes the contents of a file to the named recipient. I couldn't find a
way of passing the message contents in the command line, but it's a simple
matter to write the message to disk, mail it, then delete the temp file.
do shell script "mail -s \"subject goes here\" email@hidden <
/path/to/message"
Andrew
:)
On 2/2/03 2:53 PM, "Michael Grant" <email@hidden> wrote:
>
Say, does anyone have a ready-made AppleScript to send an e-mail using "do
>
shell script" and sendmail? I'd like to be able to generate mail messages
>
without launching a GUI mail app.
>
>
Thanks,
>
Michael
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >sendmail (From: Michael Grant <email@hidden>) |