Sending an email with attachment on an Android

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
tyarmsteadBUSuSfT
Posts: 151
Joined: Sat Aug 25, 2012 1:14 am

Sending an email with attachment on an Android

Post by tyarmsteadBUSuSfT » Tue Dec 03, 2013 1:54 am

I can send an email but not the attachment. This is the code that I am using, I know I missing something. It works fine in the iOS app version.
Thank You

set the defaultFolder to specialFolderPath("documents")
export snapshot from this card to URL ("file:" & specialFolderPath("documents") & "/Color.jpg") as JPEG

# declare the variables that hold the information that is to be included in the e-mail   
 local tSubject, tTo, tCCs, tBCCs, tBody, tAttachment
  
if mobilecansendmail () is true then  
put empty into lvLaunchString     
put url ("file:" & specialFolderPath("documents") & "/color.jpg") into tAttachment["path"]
put "color.jpg" into tAttachment["file"]
put "MyColor.jpg" into tAttachment["name"]
put "image/jpg" into tAttachment["type"]
# send the e-mail    
mobileComposeHtmlMail tSubject, tTo, tCCs, tBCCs, tBody, tAttachment
answer mobilecansendmail () with "Email Sent"

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

Re: Sending an email with attachment on an Android

Post by Simon » Tue Dec 03, 2013 2:06 am

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

tyarmsteadBUSuSfT
Posts: 151
Joined: Sat Aug 25, 2012 1:14 am

Re: Sending an email with attachment on an Android

Post by tyarmsteadBUSuSfT » Tue Dec 03, 2013 2:53 am

Simon, I follow the post and I can send the email and see the attachment on the screen, but when it is received there isn't an attachmet.
Thanks Ty

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

Re: Sending an email with attachment on an Android

Post by Simon » Tue Dec 03, 2013 2:57 am

Hi TY,
That is what is in the bug report.

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

tyarmsteadBUSuSfT
Posts: 151
Joined: Sat Aug 25, 2012 1:14 am

Re: Sending an email with attachment on an Android

Post by tyarmsteadBUSuSfT » Tue Dec 03, 2013 3:05 am

My mistake, I looked at the wrong dateand thought the bug would have been corrected.
Thank you for your time.
Ty

tyarmsteadBUSuSfT
Posts: 151
Joined: Sat Aug 25, 2012 1:14 am

Re: Sending an email with attachment on an Android

Post by tyarmsteadBUSuSfT » Sun Dec 08, 2013 10:46 pm

Any chance that the inability to print in an Android app will be corrected with the email attachment bug?
Thanks
Ty

Post Reply