May 4, 200619 yr 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)
May 4, 200619 yr 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
Create an account or sign in to comment