• 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: XMail and FMPro
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: XMail and FMPro (From: Ted <email@hidden>)

  • Prev by Date: Re: XMail and FMPro
  • Next by Date: Re: Variable Tendencies
  • Previous by thread: Re: XMail and FMPro
  • Next by thread: Converting Date-Time
  • Index(es):
    • Date
    • Thread