Page 1 of 1

No Email Attachment wih default email app

Posted: Fri May 09, 2014 10:13 am
by viro
Hi guys, today i ran into a problem where the defaultandroid email client cant attach my exported image...
I tried it with png and jpeg, changed folders (documents/engine), disconnected usb.

Code: Select all

  export snapshot from this card to FILE (specialFolderPath("documents") & "/Formular.jpg") as jpeg 
   if the result <> empty then 
      answer "ERROR:" && the result
      exit to top
   end if
   #put url("binfile:" &specialFolderPath("documents") & "/Formular.png") into tAttachment["data"]#binär
   put specialFolderPath("documents") & "/Formular.jpg" into tAttachment["file"]#direkt
   put "image/jpeg" into tAttachment["type"]
   put "Formular.jpg" into tAttachment["name"]
   put "Formular" into tSub
   put "ok@ok.de" into tRep
   put empty into tCCS
   put empty into tBCCS
   put "Formular vom "&the internet date into tBody
   mobileComposeMail tSub, tRep, tCCS, tBCCS, tBody, tAttachment
it always works with gmail, just not with default email app!
Help appreciated..

Re: No Email Attachment wih default email app

Posted: Fri May 09, 2014 10:22 am
by LCNeil
Hi Viro,

This sounds like a known bug when trying to send emails with attachments with Android Mail. More information on this can be found here-

http://quality.runrev.com/show_bug.cgi?id=11895


Kind Regards,


Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
——

Re: No Email Attachment wih default email app

Posted: Fri May 09, 2014 10:46 am
by Simon
bug 11895
Way too tired to say more.
Ok
http://quality.runrev.com/
Please add your email client and device.

Simon

Re: No Email Attachment wih default email app

Posted: Fri May 09, 2014 11:55 am
by viro
done.
using this line:
export snapshot from this card to file "sdcard/Pictures/Formular/Formular.jpg" as jpeg
to manually attach the file quickly from gallery..

Re: No Email Attachment wih default email app

Posted: Tue May 13, 2014 8:39 am
by viro
Another Solution: Use script from first post with LC 6.5 and attachment will work!

Re: No Email Attachment wih default email app

Posted: Tue May 13, 2014 8:50 am
by Simon
Yeah, that's in the bug report.

Re: No Email Attachment wih default email app

Posted: Tue May 13, 2014 11:28 am
by viro
Since not everybody who's interested in a workaround is registered at qcc i thought it would be kind to provide this...