07.09.2023, 14:41
Hello to everyone,
I have a spacelynk (i.MX28) and i am trying to send an email through office 365. In the past i used the same device to send mail trough gmail with success. The settings that i have used for office 365 are the following
-- send an e-mail,
function Email(to, subject, message)
-- make sure these settings are correct
local settings = {
-- "from" field, only e-mail must be specified here
from = '******',
-- smtp username
user = '******',
-- smtp password
password = '******',
-- smtp server
server = 'smtp-mail.outlook.com',
-- smtp server port
port = 587,
-- enable ssl, required for gmail smtp
secure = 'tlsv1_2',
-- use STARTTLS mode
starttls = true,
}
I also tried the command ping to the server with success.
--- smtp-mail.outlook.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 96.248/96.384/96.664 ms
Any idea with i cannot send mail with the above settings?
I have a spacelynk (i.MX28) and i am trying to send an email through office 365. In the past i used the same device to send mail trough gmail with success. The settings that i have used for office 365 are the following
-- send an e-mail,
function Email(to, subject, message)
-- make sure these settings are correct
local settings = {
-- "from" field, only e-mail must be specified here
from = '******',
-- smtp username
user = '******',
-- smtp password
password = '******',
-- smtp server
server = 'smtp-mail.outlook.com',
-- smtp server port
port = 587,
-- enable ssl, required for gmail smtp
secure = 'tlsv1_2',
-- use STARTTLS mode
starttls = true,
}
I also tried the command ping to the server with success.
--- smtp-mail.outlook.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 96.248/96.384/96.664 ms
Any idea with i cannot send mail with the above settings?