• 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: Andrew Oliver <email@hidden>
  • Date: Sun, 02 Feb 2003 15:35:18 -0800

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"

Andrew
:)

On 2/2/03 2:53 PM, "Michael Grant" <email@hidden> wrote:

> Say, does anyone have a ready-made AppleScript to send an e-mail using "do
> shell script" and sendmail? I'd like to be able to generate mail messages
> without launching a GUI mail app.
>
> Thanks,
> Michael
_______________________________________________
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: Michael Grant <email@hidden>
References: 
 >sendmail (From: Michael Grant <email@hidden>)

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