native.showPopup "mail" problem

so… The email has been sent but the images don’t show up.

Here’s my code:

local optionEMAILCC =  
{  
 to = { "douglas\_b\_h@hotmail.com", "bi\_toller@hotmail.com" },  
 cc = { "contato@universopositivo.com.br" },  
 subject = "My High Score",  
 isBodyHtml = true,  
 body = "[html]I scored over **9000**!!! Can you do better?[/html]",  
 attachment =  
 {  
 { baseDir=system.ResourceDirectory, filename="Screenshot.png", type="image" },  
 { baseDir=system.ResourceDirectory, filename="MyLogo.png", type="image" },  
 },  
}  
  
local useEMAILCC = function()  
 native.showPopup( "mail", optionEMAILCC )  
end  
  
useEMAILCC()  

the baseDir’s correct and the image’s names too.

I’m using the latest build.

Someone knows anything about it?

Thanks [import]uid: 23063 topic_id: 20165 reply_id: 320165[/import]

I did an example project of this and we (help from others in the community) discovered that on IOS we had to use .jpg, the .png wouldn’t send.
My Example Project

Hope that helps!

Croisened
[import]uid: 48203 topic_id: 20165 reply_id: 78768[/import]

if the png files are installed as part of your project then the PNG files get crushed by the compiler.

If you download a png file then you should be able to send it no problem.

I think this applies to android and apple IOS.

Try selecting an image from your gallery to send ( sample in the sdk ).

Larry

DoubleSlashDesign.com [import]uid: 11860 topic_id: 20165 reply_id: 78817[/import]

I thought there was a one file limit on the attachment? [import]uid: 19626 topic_id: 20165 reply_id: 78828[/import]

Not sure if there is a file limit on an outgoing attachment as much as there is on an incoming attachment. Example I cant send / receive more than x megabytes on yahoo mail unless I am a paid user instead of a free email user.

And some ISP’s limit attachment size.

But if there is a file limit on an out going email I would think it should handle 2 to 3 megabytes.

Make that hopefully…

Larry [import]uid: 11860 topic_id: 20165 reply_id: 78834[/import]

No, I think the Corona native.showPopUp() has a limit of one attachment!
[import]uid: 19626 topic_id: 20165 reply_id: 78836[/import]

Well of it does then Beebe’s blog post is wrong ( i hope that’s spelled correctly )

http://blog.anscamobile.com/2012/01/composing-email-and-sms-in-corona/

Shows 2 attachments

Larry

DoubleSlashDesign.com [import]uid: 11860 topic_id: 20165 reply_id: 78841[/import]

I thought I saw some forum posts where people were saying they could only do one. Maybe it got fixed in a later daily? Maybe it does more than one attachment. Just echoing what I saw in posts. [import]uid: 19626 topic_id: 20165 reply_id: 78843[/import]

I’ll have to check that out, I did a test email app and it worked but I only selected one thing to send. I’ll have to modify it and try again.

Larry [import]uid: 11860 topic_id: 20165 reply_id: 78846[/import]

Its multiple attachments since DB 714… [import]uid: 66859 topic_id: 20165 reply_id: 78866[/import]

Hi is it possible to use the above code in Version 2011.704 ? I have a feeling it’s only for newer builds, so my next question is, how long do trial user usually have to wait for builds to go public ?

Sorry I’m a newbie [import]uid: 13916 topic_id: 20165 reply_id: 80008[/import]

It is in a build after 704, 709 to be precise.

Ansca has averaged a new release every quarter or so. I’m not privy to their release schedule, but since 704 was in December, you’re probably looking at a March/April timeline…

But given that since December, we have gotten the following new features:

Facebook single sign on
Mail and SMS sending
Push Notifications
Native Game Center
Much improved Widget Library

and a whole lot more so to me it seems like an even bigger incentive to subscribe so get to these features.
[import]uid: 19626 topic_id: 20165 reply_id: 80050[/import]