• 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: Sending Email from AppleScript Without Garbling It
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending Email from AppleScript Without Garbling It


  • Subject: Re: Sending Email from AppleScript Without Garbling It
  • From: bryan <email@hidden>
  • Date: Tue, 04 Jun 2002 12:33:16 -0400

In post-X
There's the UNIX command sendmail from the terminal. That's
probably your best bet.
I have to defer on it's usage to those who have a better handle on that, though.


In pre-X
As an old time AS user, I would use an OSAX

There are 2 that I am aware of:
1.
"Mail OSAX" is shareware from
Vampire Software FTP site
http://www.vampiresoft.com/Products/Internet/SendMail.html

set SMTP_field to "smtp.mydomain.com"
set To_field to "email@hidden"
set From_field to "email@hidden"
set Subject_field to "This is my subject"
set Body_field to "This is my body"

sendmail using SMTP_field to To_field from From_field with subject Subject_field
with body Body_field

2.
The other is Freeware; "Sendmail OSAX"
Lilback.Com: Software http://www.lilback.com/software/
It was designed to mimic the usage of sendmail -t on UNIX.
I used it in a workflow process for several years and it worked fine.

send email Subject_field & Body_field to To_field from From_field via SMTP_field


Bryan Kaufman

"Simon Kornblith (Mailing Lists)" wrote:

> Is there any way to send a completely formed email message (all headers,
> MIME encoded) with AppleScript? The script is supposed to be an Entourage
> add-on, so I don't want to launch another client, but making a new message
> and sending it out mangles the message (which is PGP/MIME encoded, and can't
> have any types screwed up) beyond all recognition. Is there any way to send
> this through a shell command? I got Perl to work, but unfortunately
> launching the Perl interpreter as part of "do shell script" seems to crash
> Entourage (so does "osascript") even with SR1.
>
> IIRC Curl has a telnet, any idea on how to use it to pipe stdin to a host?
> Telnet won't take pipes or redirection.
>
> If possible, I'd like to do this all with as little additional payload as
> possible (small or no additional apps).
>
> This time I'll post from the right account so it doesn't look like I
> double-posted.
>
> Thanks in advance,
> Simon
>
> --
> They that can give up essential liberty to obtain a little temporary safety
> deserve neither liberty nor safety.
> -- Benjamin Franklin, Letter to Josiah Quincy, Sept. 11, 1773.
>
> Those who desire to give up freedom in order to gain security will not have,
> nor do they deserve, either one.
> -- President Thomas Jefferson
>
> To those who scare peace-loving people with phantoms of lost liberty, my
> message is this: your tactics only aid terrorists.
> -- John Ashcroft
> _______________________________________________
> 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.

[demime 0.98b removed an attachment of type text/x-vcard which had a name of bryan.vcf]
_______________________________________________
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: Sending Email from AppleScript Without Garbling It
      • From: "Simon Kornblith (Mailing Lists)" <email@hidden>
References: 
 >Sending Email from AppleScript Without Garbling It (From: "Simon Kornblith (Mailing Lists)" <email@hidden>)

  • Prev by Date: Re: Files and Aliases under OS 9.2 & AS 1.7
  • Next by Date: Re: Sending Email from AppleScript Without Garbling It
  • Previous by thread: Re: Sending Email from AppleScript Without Garbling It
  • Next by thread: Re: Sending Email from AppleScript Without Garbling It
  • Index(es):
    • Date
    • Thread