• 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
Re: Launching Default Mail Client Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launching Default Mail Client Questions


  • Subject: Re: Launching Default Mail Client Questions
  • From: Barry Wainwright <email@hidden>
  • Date: Fri, 12 Sep 2008 12:12:51 +0100

Including attachemnts is theoretically possible by using a construct like:
mailto:email@hiddenid?subject=this is the subject&body=here is the body Please see attached file&attachment=\\host\myfolder \myfile.txt


Assuming the user has access to the referenced file, that should work, but I am not sure of the syntax for referencing a file on a mac system (the posix path shown in my example is unlikely to work). I also don't know how well the various mail clients that you may encounter will handle this construct which is part of the mailto url spec, but may be handled differently by each client.

have a play with it and see how you do - I'd be interested to here how it goes!

--
Barry



On 11 Sep 2008, at 22:15, J. Todd Slack wrote:

Hi Barry,

What about including an attachment?

-Jason

On Sep 11, 2008, at 2:02 PM, Barry Wainwright wrote:


On 11 Sep 2008, at 21:41, J. Todd Slack wrote:

Hi All,

I am looking for a way to launch the users default e-mail client and populate an e-mail message for them to send.

Would I look at Mail.plist to find what their default is? Is there a better way?

Would Mail and ENtourage use the same commands to create a new mail message, specify a recipient, attach a file, etc?

Thoughts would be appreciated.

-Jason


no need to look at anything - just say:

open location "mailto:email@hiddenid";

This will use the default mail app. for the client.

--
Barry





_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Launching Default Mail Client Questions
      • From: Philip Aker <email@hidden>
References: 
 >Launching Default Mail Client Questions (From: "J. Todd Slack" <email@hidden>)
 >Re: Launching Default Mail Client Questions (From: Barry Wainwright <email@hidden>)

  • Prev by Date: Re: If Statements
  • Next by Date: Re: Launching Default Mail Client Questions
  • Previous by thread: Re: Launching Default Mail Client Questions
  • Next by thread: Re: Launching Default Mail Client Questions
  • Index(es):
    • Date
    • Thread