• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "do shell script" mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: "do shell script" mail (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Moving to Panther
  • Next by Date: Re: Just submitted this to BugReporter as feature request - comments...
  • Previous by thread: Re: "do shell script" mail
  • Next by thread: Frontmost App and
  • Index(es):
    • Date
    • Thread