Re: "do shell script" mail
Re: "do shell script" mail
- Subject: Re: "do shell script" mail
- From: "John W. Baxter" <email@hidden>
- Date: Mon, 12 Apr 2004 13:25:00 -0700
On 4/12/2004 7:15, "Axel Luttgens" <email@hidden> wrote:
>
Mark Butler wrote:
>
>
> Hi I am new to this list.
>
>
>
> Can anyone help me with a shell script command for mail
>
>
>
> I can get it to send mail but cant add a subject or message. I dont
>
> want to script "mail" the application as it may not be set up on their
>
> machine.
>
>
>
> what form do I need to use to add this?
>
>
>
> do shell script "mail email@hidden /-s test"
>
>
>
>
According to the man page mail(1), the -s option allows to specify a
>
subject for the message.
>
So, "mail -s test email@hidden" should do the job with regard to the
>
message's subject.
>
Why did you put a slash before the -s (you must have been thinking about
>
something, but I can't figure what exactly...)?
Note well that multi-word subjects need to be quoted:
Mail -s this is a test email@hidden
would try to send a message with subject test to local users is, a, and
test, and to email@hidden.
Once in a while you get unlucky and on of the spurious addressees exists.
--John (been there, done that)
_______________________________________________
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.