Hello,
I have an Orange email address.
It worked fine for years, but for the past two months I haven’t received any emails.
in “startup lua”:
-- Script envoi e-mail via son serveur smtp
function envoie_email (Sujet, Message)
local SERVEUR_SMTP = "smtp.orange.fr"
local PORT_SMTP = "25"
local EMETEUR_MAIL = "xxxxxxxxxxxxxxx.xxxxxx@orange.fr"
local DEST_MAIL = "xxxxxxxxxx@gmail.com"
local smtp = require("socket.smtp")
local from = EMETEUR_MAIL
local rcpt = {DEST_MAIL}
local sujet_mail = Sujet
local message_mail = Message
local mesgt = {
headers = {
to = DEST_MAIL,
from = from,
subject = sujet_mail
},
body = message_mail
}
local r, e = smtp.send{
from = from,
rcpt = rcpt,
source = smtp.message(mesgt),
server = SERVEUR_SMTP,
port = PORT_SMTP
}
end
in a scene for example:
-- notification
envoie_email ("store", "open")
My question:
Is it possible to do the same thing with a Gmail address as the sender?
Thank you.