Here's the dilemma I'm presented with. I've coded up an APP in xamarin where I'm utilizing google SMTP to send notifications to another gmail account.
I have the code set up like so
using (var client = new SmtpClient())
{
client.Connect("smtp.gmail.com", 465, true);
client.AuthenticationMechanisms.Remove("XOAUTH2");
client.Authenticate("gmailUserName", "gmailPassword");
client.Send(message);
...
...
However, when the App is downloaded by others outside of my state, their notifications are being rejected. I've tried downloading the same app on various devices and the emails were sent successfully. Which leads me to conclude that for whatever reason the SMTP access is being rejected if a user is outside of the state. And yes, I do have the 2 step verification turned off. and I am allowing Less Secure Apps to access.
Any feedback will be much appreciated.