I've tried a million variations of code to send an e-mail with an image file as an attachment and cannot get it to work on Android.
The dictionary listing for mobileComposeMail is not much use because
1) it gives no example of using the attachment array with a key of 'file';
2) it gives no direction on which keys of the attachment array are necessary to use - it only states that you must have one or other of 'data' or 'file', but no mention of when to use one rather than the other and no mention at all of the keys 'type' or 'name' - these just mysteriously appear in the examples. There may be other keys which could be used, but who knows?
3) it gives no definitions of the values which are valid for 'type'
Just for the lols, here are variations of code which I know don't work. In every case where an attachment is apparently saved to the email, it is 0.00 kb. Any suggestions welcome.
-- the default folder is set to the 'documents' folder
-- the image file is saved to the documents folder (as a PNG) file with the extension .png
-- the name of the image file is put into a variable, vFileNm
-- the preceding code checks for the existence of the image file (using the vFileNm variable) in the documents folder
1.
put url "binfile:" & vFileNm into tAttachment["file"]
put "image/png" into tAttachment["type"]
put "my picture" into tAttachment["name"]
mobileComposeMail "Image Example", "howard@firkin.biz",,,,tAttachment
2.
put url "file:" & vFileNm into tAttachment["file"]
put "image/png" into tAttachment["type"]
put "my picture" into tAttachment["name"]
mobileComposeMail "Image Example", "howard@firkin.biz",,,,tAttachment
3.
put url "binfile:" & vFileNm into tAttachment["data"]
put "image/png" into tAttachment["type"]
put "my picture" into tAttachment["name"]
mobileComposeMail "Image Example", "howard@firkin.biz",,,,tAttachment
4.
put url "file:" & vFileNm into tAttachment["data"]
put "image/png" into tAttachment["type"]
put "my picture" into tAttachment["name"]
mobileComposeMail "Image Example", "howard@firkin.biz",,,,tAttachment
5.
put vFileNm into tAttachment["file"]
put "image/png" into tAttachment["type"]
put "my picture" into tAttachment["name"]
mobileComposeMail "Image Example", "howard@firkin.biz",,,,tAttachment
6.
put vFileNm into tAttachment["data"]
put "image/png" into tAttachment["type"]
put "my picture" into tAttachment["name"]
mobileComposeMail "Image Example", "howard@firkin.biz",,,,tAttachment
7.
put vFileNm into tAttachment["file"]
mobileComposeMail "Image Example", "howard@firkin.biz",,,,tAttachment
Inadequate dictionary listing for mobileComposeEmail
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 10
- Joined: Fri Mar 01, 2013 4:28 am
Re: Inadequate dictionary listing for mobileComposeEmail
Hi howardBUSMuQ1,
Sorry you went through so much work...
Attachments are broken on Android... It's a bug that has been documented.
I think in the most recent release it has been fixed, not really sure.
Simon
Edit Yes, it's fixed in 6.6.0 dp1. Haven't tested it yet.
Sorry you went through so much work...
Attachments are broken on Android... It's a bug that has been documented.
I think in the most recent release it has been fixed, not really sure.
Simon
Edit Yes, it's fixed in 6.6.0 dp1. Haven't tested it yet.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- Posts: 10
- Joined: Fri Mar 01, 2013 4:28 am
Re: Inadequate dictionary listing for mobileComposeEmail
Simon wrote:Hi howardBUSMuQ1,
Sorry you went through so much work...
Attachments are broken on Android... It's a bug that has been documented.
I think in the most recent release it has been fixed, not really sure.
Simon
Edit Yes, it's fixed in 6.6.0 dp1. Haven't tested it yet.
Thank you, Simon. I'm actually a bit relieved to know it's a bug. I'd assumed I was missing something obvious (which is the usual problem).
Thanks for your reply.
Howard
Re: Inadequate dictionary listing for mobileComposeEmail
Hi Howard,
I'm seeing it popular these days to check here;
http://quality.runrev.com/
every now and then
Simon
I'm seeing it popular these days to check here;
http://quality.runrev.com/
every now and then
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Inadequate dictionary listing for mobileComposeEmail
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!