Page 1 of 1

Sending an email with attachment on an Android

Posted: Tue Dec 03, 2013 1:54 am
by tyarmsteadBUSuSfT
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"

Re: Sending an email with attachment on an Android

Posted: Tue Dec 03, 2013 2:06 am
by Simon

Re: Sending an email with attachment on an Android

Posted: Tue Dec 03, 2013 2:53 am
by tyarmsteadBUSuSfT
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

Re: Sending an email with attachment on an Android

Posted: Tue Dec 03, 2013 2:57 am
by Simon
Hi TY,
That is what is in the bug report.

Simon

Re: Sending an email with attachment on an Android

Posted: Tue Dec 03, 2013 3:05 am
by tyarmsteadBUSuSfT
My mistake, I looked at the wrong dateand thought the bug would have been corrected.
Thank you for your time.
Ty

Re: Sending an email with attachment on an Android

Posted: Sun Dec 08, 2013 10:46 pm
by tyarmsteadBUSuSfT
Any chance that the inability to print in an Android app will be corrected with the email attachment bug?
Thanks
Ty