Re: [ot] best way to send an e-mail with Applescript
Re: [ot] best way to send an e-mail with Applescript
- Subject: Re: [ot] best way to send an e-mail with Applescript
- From: Michelle Steiner <email@hidden>
- Date: Wed, 18 Apr 2001 17:13:52 -0700
On 4/18/01 12:43 PM, Jacob Roebuck <email@hidden> wrote:
>
I am trying to get applescript to send an e-mail with Outlook Express, with
>
no luck.
You can use the mail OSAX, and avoid having to use any email software at
all for this. In addition to the info below, it also supports CC, BCC
and reply-to fields. There are limitations, though; it does not support
enclosures, nor text greater than 32K.
--Michelle
>
Mail OSAX version 1.0.4 (PowerPC version)
>
)Copyright 1999 Vampire Software
>
>
Mail OSAX is a scripting addition that adds the ability to send e-mail
>
messages to AppleScript.
>
With this scripting addition you will be able to send e-mail messages (or
>
to automate their dispatch) writing your own script or using every
>
application that support AppleScript.
>
>
To send an e-mail simply write a script like:
>
>
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
>
>
In this package there is also a folder action that show you how to build
>
an efficient SMTP server with few lines of code.
>
>
Error codes:
>
0: no error
>
99: OpenTransport not installed
>
100: OpenDriver error
>
101: OpenStraem error
>
102: Lost connection
>
103: Domain Name Resolver error (for example incorrect email address or
>
smtp server name)
>
104: Network truncated error
>
105: Init OpenTransport error
>
120: SMTP server error
>
>
You can register Mail OSAX directly with Kagi at
>
http://order.kagi.com/?KG. For more information about the registration
>
process, please visit http://www.vampiresoft.com/ .
>
>
Contact information
>
Marco Bambini
>
Via Piave n.21
>
46015 Cicognara (MN)
>
ITALY
>
email@hidden
>
>
Visit http://www.vampiresoft.com/ for the latest Mail OSAX info.
>
>
Portions ) Northwestern University.
>
>
Copyright
>
All this material is copyright 1999-2000 by Marco Bambini - Vampire Software.
>
Mail OSAX may be freely distributed, so long as it is not sold for profit,
>
and registration passwords are not distributed.
>
Express permission is granted to online services and other
>
shareware/public domain distribution avenues to carry Mail OSAX.
>
Express permission is further granted to include Mail OSAX on CD-ROMs or
>
floppy disks accompanying books, or on shareware collections, provided
>
that no more than a nominal compilation and/or media fee is charged for
>
these collections.
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------