Re: XMail and FMPro
Re: XMail and FMPro
- Subject: Re: XMail and FMPro
- From: Eric Geoffroy <email@hidden>
- Date: Mon, 03 Apr 2006 11:44:04 -0700
Might work if you send the attachment as MIME or appledouble instead
of base64.
- Eric
On Apr 3, 2006, at 11:31 AM, Ted wrote:
Hello,
I just downloaded XMail to use with FMPro 8, since we had so many
problems with Mail quitting on us when we sent pdf's as
attachments. However, I'm having a problem with XMail attachments
sent to a PC. I hope this is the right place to ask.
If I send a pdf to myself, it shows up fine in Mail. However,
when I send the same pdf to a vendor, they can't open it on their
PC. Here's the AS code I'm using (variables are set in FMPro:
--------------------------------------
set oldTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to ","
set encodedAttachment to (do shell script "openssl base64 < " &
quoted form of POSIX path of theAttachment)
--> 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: <" & theAddress & ">" & return & ¬
"From: <" & theSender & ">" & return & ¬
"Subject: " & theSubject & return & ¬
"Mime-Version: 1.0
X-Mailer: XMail
Content-Type: multipart/alternative; boundary=\"mime-part-separator\"
--mime-part-separator
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
" & theBody & "
--mime-part-separator
Content-Transfer-Encoding: base64
Content-Type: application/pdf;
Content-Disposition: attachment
" & encodedAttachment
try
send raw mail to theAddress from theSender raw source rawSource
SMTP server smtpServer username |username| password |password|
authentication |authentication|
on error number -2753
send raw mail to theAddress from theSender raw source rawSource
SMTP server smtpServer
end try
set AppleScript's text item delimiters to oldTID
--------------------------------------
I'm not compressing the pdf, since it worked uncompressed when I
used Mail. Do I need to encode the attachment differently for a PC?
Thank you,
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:
email@hidden
This email sent to email@hidden
***********************************************************************
This email may contain confidential material.
If you were not an intended recipient,
please notify the sender and delete all copies.
We may monitor email to and from our network.
***********************************************************************
_______________________________________________
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