gmail stopped working for sending emails
Posted: Mon Dec 22, 2025 4:25 pm
We have used password setup with gmail for sending out email for years, but it just stopped working, any ideas why? I didn't change any settings...it says SMTP server requires a secure connection....did something change with gmail or is on the OD end?
Error sending email
CodeBase.ODException
at OpenDentBusiness.Email.SendEmail.WireEmailUnsecure(BasicEmailAddress address, BasicEmailMessage emailMessage, NameValueCollection nameValueCollectionHeaders, AlternateView[] arrayAlternateViews) in C:\Users\drtec\source\git\opendental\OpenDentBusiness\Email\SendEmails.cs:line 38
at OpenDentBusiness.EmailMessages.SendEmailUnsecure(EmailMessage emailMessage, EmailAddress emailAddress, NameValueCollection nameValueCollectionHeaders, Boolean hasRetried, AlternateView[] alternateViewArray) in C:\Users\drtec\source\git\opendental\OpenDentBusiness\Data Interface\EmailMessages.cs:line 891
at OpenDentBusiness.EmailMessages.SendEmail(EmailMessage emailMessage, EmailAddress emailAddressSender, X509Certificate2 x509Certificate2Private, Boolean useDirect) in C:\Users\drtec\source\git\opendental\OpenDentBusiness\Data Interface\EmailMessages.cs:line 510
at OpenDental.FormEmailMessageEdit.butSend_Click(Object sender, EventArgs e) in C:\Users\drtec\source\git\opendental\OpenDental\Forms\FormEmailMessageEdit.cs:line 896
-------------------------------------------
Inner exception: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required. For more information, go to
System.Net.Mail.SmtpException
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode)
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at OpenDentBusiness.Email.SendEmail.WireEmailUnsecure(BasicEmailAddress address, BasicEmailMessage emailMessage, NameValueCollection nameValueCollectionHeaders, Int32 emailSendTimeoutMs, AlternateView[] arrayAlternateViews) in C:\Users\drtec\source\git\opendental\OpenDentBusiness\Email\SendEmails.cs:line 122
at OpenDentBusiness.Email.SendEmail.WireEmailUnsecure(BasicEmailAddress address, BasicEmailMessage emailMessage, NameValueCollection nameValueCollectionHeaders, AlternateView[] arrayAlternateViews) in C:\Users\drtec\source\git\opendental\OpenDentBusiness\Email\SendEmails.cs:line 31
Error sending email
CodeBase.ODException
at OpenDentBusiness.Email.SendEmail.WireEmailUnsecure(BasicEmailAddress address, BasicEmailMessage emailMessage, NameValueCollection nameValueCollectionHeaders, AlternateView[] arrayAlternateViews) in C:\Users\drtec\source\git\opendental\OpenDentBusiness\Email\SendEmails.cs:line 38
at OpenDentBusiness.EmailMessages.SendEmailUnsecure(EmailMessage emailMessage, EmailAddress emailAddress, NameValueCollection nameValueCollectionHeaders, Boolean hasRetried, AlternateView[] alternateViewArray) in C:\Users\drtec\source\git\opendental\OpenDentBusiness\Data Interface\EmailMessages.cs:line 891
at OpenDentBusiness.EmailMessages.SendEmail(EmailMessage emailMessage, EmailAddress emailAddressSender, X509Certificate2 x509Certificate2Private, Boolean useDirect) in C:\Users\drtec\source\git\opendental\OpenDentBusiness\Data Interface\EmailMessages.cs:line 510
at OpenDental.FormEmailMessageEdit.butSend_Click(Object sender, EventArgs e) in C:\Users\drtec\source\git\opendental\OpenDental\Forms\FormEmailMessageEdit.cs:line 896
-------------------------------------------
Inner exception: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required. For more information, go to
System.Net.Mail.SmtpException
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode)
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at OpenDentBusiness.Email.SendEmail.WireEmailUnsecure(BasicEmailAddress address, BasicEmailMessage emailMessage, NameValueCollection nameValueCollectionHeaders, Int32 emailSendTimeoutMs, AlternateView[] arrayAlternateViews) in C:\Users\drtec\source\git\opendental\OpenDentBusiness\Email\SendEmails.cs:line 122
at OpenDentBusiness.Email.SendEmail.WireEmailUnsecure(BasicEmailAddress address, BasicEmailMessage emailMessage, NameValueCollection nameValueCollectionHeaders, AlternateView[] arrayAlternateViews) in C:\Users\drtec\source\git\opendental\OpenDentBusiness\Email\SendEmails.cs:line 31