No pop-up to send mail.

No pop-ups appeared when I ran this method. 

local function sendEmails() local numberOfMembers = table.getn(requestedMembers) if numberOfMembers \> 0 then for i = 1, numberOfMembers, 1 do for row in db:rows( [[SELECT first\_name, email FROM members WHERE id =]] .. requestedMembers[i]) do local options = { to = row.email, cc = "15148947@studentmail.ul.ie", subject = "Requested book available", isBodyHtml = true, body = "\<html\>\<body\>Your requested book is now available.\</body\>\</html\>", } native.showPopup("mail", options) end end end end 

How do I send mail?

Are you certain numberOfMembers is > 0?

Yep, I’m sure.

Is this code running on device or Corona simulator?

The simulator. Does it need to be the device? Is there no way of making it work on the simulator?

I believe so, these are native mobile APIs being called so the simulator has nothing to call on Windows/Mac.

Are you certain numberOfMembers is > 0?

Yep, I’m sure.

Is this code running on device or Corona simulator?

The simulator. Does it need to be the device? Is there no way of making it work on the simulator?

I believe so, these are native mobile APIs being called so the simulator has nothing to call on Windows/Mac.