I can’t seem to send an email in corona. I’m using smtp by the way. There are no errors but also no mail receive. I remove the “user” from the smtp.send
because I don’t know what to put inside. Here are some relevant code:
[code]
local widget = require “widget”
local smtp = require (“socket.smtp”)
function sendmail()
from = “”
rcpt = {
“<”,
}
mesgt = {
body = “Testing 123”
}
r, e = smtp.send{
from = from,
rcpt = rcpt,
source = smtp.message(mesgt),
user = “xxxxxxxxx” – I don’t know what to put here so I just remove this one
password = “xxxxxxxx”,
server = “smtp.gmail.com”,
port = “465”,
}
end
local buttonsend = widget.newButton
{
default = “done.png”,
over = “doneOver.png”,
onRelease = sendmail
}
buttonsend.x = display.contentWidth / 2; buttonsend.y = display.contentHeight / 2
[/code] [import]uid: 189861 topic_id: 34651 reply_id: 334651[/import]