As I recall, the other thing that tripped me up a bit was the actual call to 
mobileComposeMail… making sure I had the correct number of commas for 
parameters to skip… here’s the code I used.

 set the defaultFolder to specialFolderPath("Documents")
   export snapshot from rect (the rect of button "playingSurfaceBUTTON" of card 
"gameCard") to file "SENDdemo.jpg" as JPEG
   answer "Include screen shot?" with "No" or "YES" titled "Screen Shot"
   
   if it is "YES" then
      put specialfolderpath("documents") & "/SENDdemo.jpg" into 
tTheAttachments[1]["file"]
      put "application/jpg" into tTheAttachments[1]["type"]
      put "SENDdemo.jpg" into tTheAttachments[1]["name"]
   else
      put empty into tTheAttachments
   end if

   switch the environment
      case "mobile"
      case "simulator"
         mobileComposeMail tTheSubject,tTheAddress,,,tTheMessage,tTheAttachments
         break
      case "MacOS"
      case "development"
         revMail tTheAddress,,tTheSubject,tTheMessage
         break
   end switch

be well,
randy


> On Jul 14, 2016, at 11:16 AM, Todd Fabacher <[email protected]> wrote:
> 
> Sorry, we fixed that right after I posted it, But it is still NOT working.
> 
> Thanks,
> 
> Todd
> 
> From: Randy Hengst <iowahengst@...
> <http://gmane.org/get-address.php?address=iowahengst%2dee4meeAH724%40public.gmane.org>
>> 
> Subject: Re: 911 - We are having problems attaching an image on
> mobileComposeHtmlMail
> <http://news.gmane.org/find-root.php?message_id=8BFF7968%2dD969%2d4C3E%2dB338%2dCE807A2D08CE%40mac.com>
> Newsgroups: gmane.comp.ide.revolution.user
> <http://news.gmane.org/gmane.comp.ide.revolution.user>
> Date: 2016-07-14 13:07:39 GMT (3 hours and 6 minutes ago)
> 
> I hesitate to comment, since I’ve only used mobileComposeMail…. but,
> based on that experience it
> looks like you have one too many [ in these lines. Shouldn’t there
> only be one before “type”?
> 
> put "image/png" into tAttachment[1][["type"]
> put "myimagecid.png" into tAttachment[1][["name"]
> put "myimagecid" into tAttachment[1][["cid"]
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to