Re: XMail and FMPro
Re: XMail and FMPro
- Subject: Re: XMail and FMPro
- From: Le Stang Jean-Baptiste <email@hidden>
- Date: Mon, 3 Apr 2006 22:24:41 +0200
Be very careful, when using 'send raw mail', you are entirely
responsible for formating the mail according to the various RFC about
mail attachments/encodings (blah, blah, blah,…,everything related to
mails).
'send raw mail' is not doing anything on the content of the mail, it
only send the mail 'as this' !
If the problem was caused by using the 'send mail' command, then yes
this would be my fault (being the author of XMail), but not in your
case I'm sorry. I know that this sample comes from the scripts that
are shipped with XMail, I'll have a look to them and see what is
going on.
For your information here is what your script should produce : (or
something very similar to this) :
<mail raw source>
From: email@hidden
To: email@hidden
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="bounds=798e57ac218b311ae3ad912be"
Date: 03 Apr 06 20:57:18 +0200
X-Mailer: XMail 3.6
Subject: ok
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="bounds=798e57ac218b311ae3ad912be"
Date: 03 Apr 06 20:57:18 +0200
X-Mailer: XMail 3.6
Subject: ok
This is a MIME encapsulated message
--bounds=798e57ac218b311ae3ad912be
Content-type: text/plain; charset=utf-8
Content-transfer-encoding: quoted-printable
ok
--bounds=798e57ac218b311ae3ad912be
Content-Type:application/pdf; name="mypdffile.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="mypdffile.pdf"
JVBERi0xLjMKJcTl8uXrp/
Og0MTGCjIgMCBvYmoKPDwgL0xlbmd0aCA0IDAgUiAvRmlsdGVyIC9GbGF0ZURlY29kZSA
+PgpzdHJlYW0KeNorVAhUKARjfbdcQwWXfIVAADG0BO0KZW5kc3RyZWFtCmVuZG9iago0IDA
gb2JqCjIzCmVuZG9iagoxIDAgb2JqCjw8IC9UeXBlIC9QYWdlIC9QYXJlbnQgNyAwIFIgL1J
lc291cmNlcyAzIDAgUiAvQ29udGVudHMgMiAwIFIgL01lZGlhQm94ClswIDAgNTk1IDg0Ml0
gPj4KZW5kb2JqCjMgMCBvYmoKPDw
</mail raw source>
'send raw mail' is really for people who have a 'deep-knowledge' of
how mails are being formated, in your case, it seems like what you're
looking for is something like 'send mail' :
send mail to "theDest" from "theSource" subject "ok" body "ok" SMTP
server "smtp.myisp.com" username "theusername" password
"nothisisnotmypassword" attachments {file1,file2,file3,…}
--
Jean-Baptiste LE STANG
On Apr 3, 2006, at 10:06 PM, Ted wrote:
Hi Eric,
Might work if you send the attachment as MIME or appledouble instead
of base64.
Thanks for the input. I'll try your suggestion, but I'm curious
as to why base64 works fine when using Apple Mail but not for XMail?
Is this all I'll need to do to change the format:
Content-Transfer-Encoding: MIME
or
Content-Transfer-Encoding: appledouble
Or is there more to it than that?
Thanks again,
Ted
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40lestang.org
This email sent to email@hidden
_______________________________________________
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