Sending an email with attachment on an Android
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 151
- Joined: Sat Aug 25, 2012 1:14 am
Sending an email with attachment on an Android
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"
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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- Posts: 151
- Joined: Sat Aug 25, 2012 1:14 am
Re: Sending an email with attachment on an Android
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
Thanks Ty
Re: Sending an email with attachment on an Android
Hi TY,
That is what is in the bug report.
Simon
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!
-
- Posts: 151
- Joined: Sat Aug 25, 2012 1:14 am
Re: Sending an email with attachment on an Android
My mistake, I looked at the wrong dateand thought the bug would have been corrected.
Thank you for your time.
Ty
Thank you for your time.
Ty
-
- Posts: 151
- Joined: Sat Aug 25, 2012 1:14 am
Re: Sending an email with attachment on an Android
Any chance that the inability to print in an Android app will be corrected with the email attachment bug?
Thanks
Ty
Thanks
Ty