• 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: sendmail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sendmail


  • Subject: Re: sendmail
  • From: Michael Grant <email@hidden>
  • Date: Mon, 03 Feb 2003 07:45:38 -0600

On 2/2/03 5:35 PM, "Andrew Oliver" <email@hidden> wrote:

> 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"

That looks like a good start. Now, UNIX is not supposed to care whether
input is from a file or from the keyboard, so it should be possible to
provide it via AppleScript as well....

Michael

--
"Today, with one sad, solitary exception, every nation in our hemisphere has
an elected government."

- George W. Bush at the Council of the Americas, May 7, 2001
_______________________________________________
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: sendmail
      • From: Andrew Oliver <email@hidden>
References: 
 >Re: sendmail (From: Andrew Oliver <email@hidden>)

  • Prev by Date: RE: Basic one
  • Next by Date: Re: Bypassing Print Dialog box
  • Previous by thread: Re: sendmail
  • Next by thread: Re: sendmail
  • Index(es):
    • Date
    • Thread