mobileComposeHTMLMail
Klaus major-k
klaus at major-k.de
Sat Nov 28 09:38:18 EST 2015
Hi Randy,
> Am 28.11.2015 um 15:27 schrieb Randy Hengst <iowahengst at mac.com>:
>
> Hi All,
>
> I’m messing with mobileComposeHTMLMail iOS for the first time. I’ve read the dictionary entry and reviewed mail archives and have been able to get everything working except including an attachment.
> ...
> --- create the attachment screen shot
> set the defaultFolder to specialFolderPath("Documents")
> export snapshot from rect (the rect of button "playingSurfaceBUTTON" of card "gameCard") to file "SENDdemo.jpg" as JPEG
>
> ## put defaultFolder into tAttachments[1]["file“]
## FILE, not folder, so this should do the trick:
put specialfolderpath("documents“) & "/SENDdemo.jpg“ into tAttachments[1]["file“]
> put "application/jpg" into tAttachments[1]["type"]
> put "SENDdemo.jpg" into tAttachments[1]["name"]
>
> mobileComposeHTMLMail tSubject, tToAddress, tCC, tBCC, tBodyAsHTML, tAttachments
> end mouseUp
>
> be well,
> randy
>
> Randy Hengst
> www.classroomFocusedSoftware.com <http://www.classroomfocusedsoftware.com/>
Best
Klaus
--
Klaus Major
http://www.major-k.de
klaus at major-k.de
More information about the use-livecode
mailing list