Jump to content

Embedded xml attachment


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

Recommended Posts

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)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 6559 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.