dubeaud / bugnet

BugNET is an open source issue tracker built with .NET
189 stars 166 forks source link

gmails are not working in BugNet #222

Open comic1976 opened 8 years ago

comic1976 commented 8 years ago

I love this software and it's useful, but gmail SMTP is not working in BugNet SMTP setting, and I got the error message "Failure sending mail.. Please see the error log for more details." after i clicked "Test" button! I can't see any message in "Admin"->"Log Viewer", how should i solve this SMTP problem ? (There is no firewall),the following is my SMTP configuration....(BugNet Version 1.6.339.0)

server: smtp.gmail.com port: 465 host Email: XXX@gmail.com SSL: checked Enable Authentication: checked Username: XXX@gmail.com Password: XXXXXXX Domail: gmail.com Email Format: HTML Email Template Root: ~/templates

wrhighfield commented 7 years ago

Hello,

This issue is actually due to changes in how Google handles newer and older email clients. The SmtpClient is considered to be an older client. The fix is actually two parts that requires changing the settings on the GMail account and changing the port number.

  1. For the GMail account settings you need to allow less secure apps to access your account. See: https://support.google.com/accounts/answer/6010255
  2. The second is to change the port from 465 to 587

This should solve the issue.