Hi , I’ve tried the app on my simulator ad it does nothing when I press compose e-mail and it shows no error , when I’ve tried it on my phone it gives a black screen when I press compose e-mail , any help ?? please check attachment !
Hi Mike. There are a few things you can do to help the community help you. First people are reluctant to download zip files. They are notorious for carrying viruses and malware. Since the community doesn’t know your computer hygiene regiment, it’s better to use and tags (without the space) and just paste the relevant code directly here. Next, I’m assuming you are trying to use native.showPopup() to send the email. It does not work on the simulator. If its not working on device, there is an error. You have to attach your device to your computer and use the relevant tools (Xcode organizer for iOS or adb logcat for android) to see what is happening. If not all we can do is guess.
local storyboard = require ("storyboard") local scene = storyboard.newScene() local widget = require( "widget" ) local function onSendEmail( event ) -- compose an HTML email with two attachments local options = { to = { "mikecmattar@live.com" }, cc = { "ADD YOUR E-MAIL HERE , P.S DO NOT CHANGE THE E-MAIL ABOVE!" }, subject = "YOUR NAME" } native.showPopup("mail", options) -- NOTE: options table (and all child properties) are optional end function scene:createScene(event) local background = display.newImage( "bg.png" ) background.y=0 local emailImage = display.newImage( "email.png" ) emailImage.x = display.contentWidth \* 0.5 emailImage.y = display.contentHeight \* 0.30 local sendEmail = widget.newButton { left = 10, top = 300, width = 298, height = 56, label = "Compose Email", onRelease = onSendEmail } end function scene:enterScene(event) storyboard.purgeScene("start") end function scene:exitScene(event) end function scene:destroyScene(event) end scene:addEventListener("createScene", scene) scene:addEventListener("enterScene", scene) scene:addEventListener("exitScene", scene) scene:addEventListener("destroyScene", scene) return scene
@mikecmattar, quickly glancing through your code, I see that this particular storyboard scene is set up incorrectly. You are missing screenGroup = self.view – for detail, please look at the storyboard sample project carefully. It comes bundled with CoronaSDK:
CoronaSDK > SampleCode > Interface > Storyboard
Also, I noticed you’ve posted exact same code, asking about exact same thing here. As far as I am aware, this type of duplicate posting is discouraged and is against the forum rules.
I’m sorry, I don’t mean to be rude or mean. I’m not even Corona staff, and perhaps, I’m in no position to say this… but if you think about it you’d realize you may end up getting responses from different people (who are basically donating their time to you) in parallel – which makes it inefficient (because these people may not see your other posts, and thus, lack some additional information you might have provided under your parallel threads.) You may find it useful, because you think it would get you more people’s attention – hey, who wouldn’t want free help from more people and who would mind it if other people spend more time for you – but honestly, I find it not so palatable.
And please do not private message me, asking to help you on threads you start. I am willing to help people on forum when and where I can so long as it is within my ability & capacity to help, but I don’t work for you, and I’m not obligated to help you.
I just hope that when you become somewhat proficient with Corona SDK down the road, you will donate your time and help others too.
Naomi
Actually Naomi , it’s working fine now !
Thanks You ! 
Just to add to what Naomi said and for the benefit of the community… On private messages: you only get one person who can help you. If they don’t login for a few days you may not get a timely response. You also only get one persons opinion. These are **community** forums and when you ask just one person you loose the community be fit. Duplicate posts: certainly are against the rules. It fragments your answers and makes people searching for answers lives more difficult.
Hi Mike. There are a few things you can do to help the community help you. First people are reluctant to download zip files. They are notorious for carrying viruses and malware. Since the community doesn’t know your computer hygiene regiment, it’s better to use and tags (without the space) and just paste the relevant code directly here. Next, I’m assuming you are trying to use native.showPopup() to send the email. It does not work on the simulator. If its not working on device, there is an error. You have to attach your device to your computer and use the relevant tools (Xcode organizer for iOS or adb logcat for android) to see what is happening. If not all we can do is guess.
local storyboard = require ("storyboard") local scene = storyboard.newScene() local widget = require( "widget" ) local function onSendEmail( event ) -- compose an HTML email with two attachments local options = { to = { "mikecmattar@live.com" }, cc = { "ADD YOUR E-MAIL HERE , P.S DO NOT CHANGE THE E-MAIL ABOVE!" }, subject = "YOUR NAME" } native.showPopup("mail", options) -- NOTE: options table (and all child properties) are optional end function scene:createScene(event) local background = display.newImage( "bg.png" ) background.y=0 local emailImage = display.newImage( "email.png" ) emailImage.x = display.contentWidth \* 0.5 emailImage.y = display.contentHeight \* 0.30 local sendEmail = widget.newButton { left = 10, top = 300, width = 298, height = 56, label = "Compose Email", onRelease = onSendEmail } end function scene:enterScene(event) storyboard.purgeScene("start") end function scene:exitScene(event) end function scene:destroyScene(event) end scene:addEventListener("createScene", scene) scene:addEventListener("enterScene", scene) scene:addEventListener("exitScene", scene) scene:addEventListener("destroyScene", scene) return scene
@mikecmattar, quickly glancing through your code, I see that this particular storyboard scene is set up incorrectly. You are missing screenGroup = self.view – for detail, please look at the storyboard sample project carefully. It comes bundled with CoronaSDK:
CoronaSDK > SampleCode > Interface > Storyboard
Also, I noticed you’ve posted exact same code, asking about exact same thing here. As far as I am aware, this type of duplicate posting is discouraged and is against the forum rules.
I’m sorry, I don’t mean to be rude or mean. I’m not even Corona staff, and perhaps, I’m in no position to say this… but if you think about it you’d realize you may end up getting responses from different people (who are basically donating their time to you) in parallel – which makes it inefficient (because these people may not see your other posts, and thus, lack some additional information you might have provided under your parallel threads.) You may find it useful, because you think it would get you more people’s attention – hey, who wouldn’t want free help from more people and who would mind it if other people spend more time for you – but honestly, I find it not so palatable.
And please do not private message me, asking to help you on threads you start. I am willing to help people on forum when and where I can so long as it is within my ability & capacity to help, but I don’t work for you, and I’m not obligated to help you.
I just hope that when you become somewhat proficient with Corona SDK down the road, you will donate your time and help others too.
Naomi
Actually Naomi , it’s working fine now !
Thanks You ! 
Just to add to what Naomi said and for the benefit of the community… On private messages: you only get one person who can help you. If they don’t login for a few days you may not get a timely response. You also only get one persons opinion. These are **community** forums and when you ask just one person you loose the community be fit. Duplicate posts: certainly are against the rules. It fragments your answers and makes people searching for answers lives more difficult.