Hello everyone,
I am sending an email through my app but the error happens.
Error Message:
Mail send failed timeout
Here is my code:
local smtp = require 'socket.smtp' local emailaddress = "me@fazilmir.com" function sendMessage(subject, body) local msg = { headers = { to = emailaddress, subject = subject }, body = body } local ok, err = smtp.send { from = emailaddress, rcpt = emailaddress, source = smtp.message(msg), user = emailaddress, password = '\*\*\*\*\*\*\*\*', server = 'fazilmir.com', port = 25 } if not ok then print("Mail send failed", err) end end function sendMailFunc() if isFormValidated then sendMessage(txtName.text.. " Sent A Query", "Some Message") end return true end
Server and port number are also correct because I already have used these settings with outlook.
Please any help would be highly appreciated.
I am also attaching a screenshot.
Thanks,