Re: Xmail Problems
Re: Xmail Problems
- Subject: Re: Xmail Problems
- From: Bruce Robertson <email@hidden>
- Date: Thu, 10 Feb 2005 10:27:11 -0800
> The "to" parameter requires "a list of string", both for "send mail" and
> "send raw mail".
>
> The "send raw mail" command was born to deliver customized email messages
> (that is, multipart messages basically). So, you must provide all info to
> "send raw mail" except for the message itself ("raw source" parameter),
> which can define subject, body (multipart or whatever, where you can include
> html, attachments, etc.) and all extra-tags: reply-to, organization,
> priority, etc. But "to", "from", "cc", "bcc" and server info (smtp location,
> login info, etc.) must be passed directly to "send raw mail" as described in
> its dictionary.
>
> It is explained in the "Raw emails samples" dir within "Contributions", and
> also commented in the included "Sample Scripts".
Actually the problem is in a detail of the example script that I did not
notice. You create the TO variable in one place in the script, but later on
it is used and the example script assumes a single TO and uses angle
brackets around it. Drop the angle brackets and you're in business.
--> Now, compose the source and send the email...
set rawSource to "Date: " & (do shell script "date '+%a, %e %b %Y %H:%M:%S
%z'") & return & ¬
"To: "<" & |TO| & ">" & return & ¬
"From: <" & |From| & ">" & return & ¬
"Subject: " & theSubject & return & ¬
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden