@sembleton
Hope you don’t mind me pushing on with trying to help resolve this mystery. I have created a main.lua with the full code of the email button. This has been tested on my iPad 1 with no problems.
Try this code out and see what happens.
[lua]local function emailBut(event)
if event.phase == “ended” then
local mailOptions = {
to = {“blah@blahblah.com”},
subject=“Blah enquiry”,
body=“Dear Blah blah,”,
isBodyHtml = false
}
native.showPopup(“mail”, mailOptions)
print(“touched the emailBut”)
end
end
local function main()
local myText = display.newRetinaText(“Email Button”, 500, 500, native.systemFont, 32)
myText:setTextColor(100, 255, 255)
myText:addEventListener( “touch”, emailBut)
end
main()[/lua]
When you click on the “myText” button in the simulator you should get a error in the terminal along with “touched the emailBut”:
ERROR: native.showPopup() does not support mail popups on this device.
touched the emailBut
Hope the above helps. Let us know what was causing the problem. Most of the times I find its a missing character
[import]uid: 22878 topic_id: 19297 reply_id: 76744[/import]