• 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: Axel Luttgens <email@hidden>
  • Date: Mon, 12 Apr 2004 16:15:01 +0200

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...)?

HTH,
Axel
_______________________________________________
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.


  • Follow-Ups:
    • Re: "do shell script" mail
      • From: "John W. Baxter" <email@hidden>
References: 
 >"do shell script" mail (From: Mark Butler <email@hidden>)

  • Prev by Date: Re: (2 of 2) Application Scripting Question - Theoretical? (was Re: Technote 2106 is da Bomb)
  • Next by Date: Re: 'choose from list' question
  • Previous by thread: "do shell script" mail
  • Next by thread: Re: "do shell script" mail
  • Index(es):
    • Date
    • Thread