eMail showpopup .. AUTO -SEND !!

Hi,

i do some tests with the new showpopup(“email”) … with attachments and predefined infos.

all fine, BUT … is there no option to send the generated email automatically without the need
of the user to click “send”.

In my case, I like to send a Passwort reminder to a specific email.
For sure, it does not make sense if the user would already see the password in the email before sending it. (it may be the wrong person using actually the device).

How to send the email immediately?

thx
chris
[import]uid: 4795 topic_id: 19734 reply_id: 319734[/import]

I can’t answer your original question, however wouldn’t it be better to store the passwords on a server?
Your app could then request a password reminder to be sent, but the email would be sent from the server. Wouldn’t that be more secure? [import]uid: 70847 topic_id: 19734 reply_id: 76389[/import]

Hi,
thats exactly what I like to avoid :slight_smile:

I used that system on several other apps before.
Downside is: I don’t use, need any of that passwords, so why should I store them on my server.
They are stored IN the Device. Perfect. So when someone can’t go in my App, he could simply
say … send pw to original email account that was stored also in the device while creating the pw.

Good for the User. He can be sure, I don’t store ANY of his data in a cloud or external.
And when he needs his pw, he could simply get it back to his email that he entered while creating the pw.

hope it will be soon able to send that email automatically.

its so simple to realize that in native apps (android/ios), so please Ansca… make that possible

chris
[import]uid: 4795 topic_id: 19734 reply_id: 76390[/import]

Yeah, I see your point.

In the mean time (while Ansca thinks about auto-send), what about if your app sends the pw/email-address (POST for temporary use) to your server and then uses php to compose and send the email? [import]uid: 70847 topic_id: 19734 reply_id: 76394[/import]

assuming you have the email stored on the device – you could use network.request and GET

i.e

  
network.request("yourwebsite.com/email.php?email=" .. email .. "&password=" .. mime.b64(password),"GET",networkListener)  
  

and then in your email.php file

[php]

$email=$_GET[‘email’];
$pass = $_GET[‘password’];
$pass =base64_decode($pass);

mail($email, “Password Reminder”, $pass, “From: Your Company”);

[/php]

I’ve just done that code off the top of my head – but it should be about right
[import]uid: 24641 topic_id: 19734 reply_id: 76395[/import]

hi,

thanks !!

i thought about before, also as it goes now step by step from ansca to that native email feature. I amy wait a bit till its really done.

Should I come inpatient…:slight_smile: yes, than I would have to do as you described.
greets
chris
[import]uid: 4795 topic_id: 19734 reply_id: 76396[/import]

The way Corona SDK sends email and SMS is using an Apple framework that is designed specifically to avoid auto sends. While it doesn’t help you, Apple wants to make sure a human actually sends the message.

You have two options…

Use Lua sockets and open up a port to you’re own SMTP server (someone just posted the code in another forum post!) then you can send that way.

Or you can have a server send it on a request from your app as suggested above.
[import]uid: 19626 topic_id: 19734 reply_id: 76422[/import]

how would you code something working off of google mail ?

or is this impossible to do with google mail ?

[import]uid: 11094 topic_id: 19734 reply_id: 77653[/import]