No Email Attachment wih default email app

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
viro
Posts: 52
Joined: Fri Jul 05, 2013 6:59 pm

No Email Attachment wih default email app

Post by viro » Fri May 09, 2014 10:13 am

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..
the funniest thing about this particular signature is that by the time you realize it doesn't say anything it's too late to stop reading it

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: No Email Attachment wih default email app

Post by LCNeil » Fri May 09, 2014 10:22 am

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
——

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: No Email Attachment wih default email app

Post by Simon » Fri May 09, 2014 10:46 am

bug 11895
Way too tired to say more.
Ok
http://quality.runrev.com/
Please add your email client and device.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

viro
Posts: 52
Joined: Fri Jul 05, 2013 6:59 pm

Re: No Email Attachment wih default email app

Post by viro » Fri May 09, 2014 11:55 am

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..
the funniest thing about this particular signature is that by the time you realize it doesn't say anything it's too late to stop reading it

viro
Posts: 52
Joined: Fri Jul 05, 2013 6:59 pm

Re: No Email Attachment wih default email app

Post by viro » Tue May 13, 2014 8:39 am

Another Solution: Use script from first post with LC 6.5 and attachment will work!
the funniest thing about this particular signature is that by the time you realize it doesn't say anything it's too late to stop reading it

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: No Email Attachment wih default email app

Post by Simon » Tue May 13, 2014 8:50 am

Yeah, that's in the bug report.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

viro
Posts: 52
Joined: Fri Jul 05, 2013 6:59 pm

Re: No Email Attachment wih default email app

Post by viro » Tue May 13, 2014 11:28 am

Since not everybody who's interested in a workaround is registered at qcc i thought it would be kind to provide this...
the funniest thing about this particular signature is that by the time you realize it doesn't say anything it's too late to stop reading it

Post Reply