204
Views
4
Comments
Solved
Error sending email 2: connection failed
Question

I have used gmail smtp server but while sending email its giving Connection failed error.


UserImage.jpg
Afaque Shaikh
Solution

Thanks @Nurodin and Nuno, to make it work I have changed port to 587 and in my account made  "Allow Less secure apps" On. 


Thanks

2021-08-12 11-00-27
Nordin Ahdi
 
MVP

Hi Afaque,

If I remember correctly, the SMTP port needs to be 587. Furthermore, you should republish your application after changing email configuration for it to be applied correctly.

Refer to this post for more information.

And here are some other useful links regarding this topic.

https://success.outsystems.com/Support/Personal_Environment/How-to_send_emails_from_your_personal_environment

https://www.outsystems.com/forums/discussion/11645/how-to-send-emails-from-your-personal-environment/

https://www.outsystems.com/forums/discussion/18791/gmail-smtp-not-working-in-personal-environment/#Post72767

Regards,

Nordin

2016-04-22 00-29-45
Nuno Reis
 
MVP

If it still doesn't work, check if your account is with one step authentication only and "Allow Less secure apps" on.

https://myaccount.google.com/lesssecureapps


UserImage.jpg
Afaque Shaikh
Solution

Thanks @Nurodin and Nuno, to make it work I have changed port to 587 and in my account made  "Allow Less secure apps" On. 


Thanks

2021-08-12 11-00-27
Nordin Ahdi
 
MVP

Glad we could help Afaque.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.