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

XMail and FMPro


  • Subject: XMail and FMPro
  • From: Ted <email@hidden>
  • Date: Mon, 3 Apr 2006 11:31:49 -0700

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: XMail and FMPro
      • From: jj <email@hidden>
    • Re: XMail and FMPro
      • From: Eric Geoffroy <email@hidden>
  • Prev by Date: Re: Variable Tendencies
  • Next by Date: Re: XMail and FMPro
  • Previous by thread: Re: iWeb scripting, add a photo album via AS
  • Next by thread: Re: XMail and FMPro
  • Index(es):
    • Date
    • Thread