Re: HELP, shell script & mail results 2 home
Re: HELP, shell script & mail results 2 home
- Subject: Re: HELP, shell script & mail results 2 home
- From: Andrew Oliver <email@hidden>
- Date: Sun, 25 Jul 2004 15:23:36 -0700
To set a message body, pipe something into the mail command:
do shell script "echo \"This is a test.\" | mail -s \"Message subject\"
email@hidden"
Of course, the body can be an applescript variable:
do shell script "echo " & quoted form of myVar & "| mail -s \"Message
subject\" email@hidden"
This all requires that sendmail/postfix be running on the target machine, of
course.
Andrew
:)
On 7/25/04 2:55 PM, "Sam Hargis" <email@hidden> wrote:
>
I am trying to use "mail" now and am getting closer but
>
can't get the message body syntax correct. I think that's
>
all I need to do?
>
>
If I use mail, the command from terminal, not the app, will
>
there be any problem to configure the machine, or will it
>
send a message without configuring anything?
>
>
do shell script "mail -s 'this test' email@hidden"
>
>
-- RETURNS -> "Null message body; hope that's ok"
>
HOW TO FORMAT THE MESSAGE HERE??
>
>
>
do shell script "mail email@hidden message here -s test"
>
>
-- RETURNS -> "No message, no subject; hope that's ok"
>
THIS SYNTAX I FOUND DOESN'T EVEN PASS SUBJECT OR MESSAGE.
>
_______________________________________________
>
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.
_______________________________________________
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.