This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Mail Office 365
#1
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?
Reply


Messages In This Thread
Mail Office 365 - by stavros - 07.09.2023, 14:41
RE: Mail Office 365 - by Daniel - 07.09.2023, 14:44

Forum Jump: