Need help in sending email within program

Hi all,

I am trying to write an iPad program which can automatically send an email from within the program and then continue with the program. The system.openURL(“mailto:me@be.com”)function doesn’t work because it opens the iPad Mail App and waits for the user to manually select Send. Pressing Send within the iPad Mail App at that point does send the email but does not return to the running program.

I need a solution which allows the program itself to compose and send an email from within the program without leaving the program or requiring the user to press anything further, sort of like sending a confirming email for an order.

I suspect that it may be possible to use smtp.send using LuaSocket, but I cannot get that to work and don’t really understand how to use the smtp.send parameters. Maybe there is some other solution.

I hope that one of you who is experienced with this problem can make some suggestions and hopefully supply some sample code.

Many thanks,

Neil
[import]uid: 9111 topic_id: 3094 reply_id: 303094[/import]

Hi eskind,
if you want the app to send an email without the user intervention, that would kind of violate the Apple policy. Apple does not want emails or SMS send from the devices without the user’s consent.

Now, if you were to have a case in mind that this is absolutely essential, then use direct access to a Mail server and send the emails via the SMTP server of your choice. This way, you can send emails but it will be from your own server not the user’s defined server.

Hope it answers your question.

cheers,

Jayant C Varma [import]uid: 3826 topic_id: 3094 reply_id: 9140[/import]