Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6778 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi

I have exported records from FM to a XML document using a style sheet, and now need to email it. Is there a way that I can embed the xml file in the email so that it will view in the email like it does if I was to open it in a web browser.

At the moment it just shows a attachment icon in the email.

(Mail 2.0.7)

Posted

If "if I was to open it in a web browser" means "view it as text", then perhaps you could use AppleScript and Mail to send the message. Or use the XMail Scripting Addition to send it (I can't use them on this iMac Intel right now). In any case, this basic AppleScript will create a new message with such a file's content as string.

set theFile to choose file

set theContents to read theFile as string

tell application "Mail"

set theMess to make outgoing message

set visible of theMess to true

-- only needed to see what it looks like

set the content of theMess to the theContents

end tell

This topic is 6778 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.