c# - SMTP Server Authentication Error -
i'm working on app send crash report email if global threading exception invoked. however, every time try send email, error the smtp server requires secure connection or client not authenticated. server response was: 5.5.1 authentication required. learn more at. <-- error message ends here seems weird. my exception event handler looks this: private void currentdomain_unhandledexception(object sender, unhandledexceptioneventargs e) { mailaddress fromaddress = new mailaddress("user@domain.com", "mary"); mailaddress toaddress = new mailaddress("user@domain.com", "sam"); const string frompassword = "password"; const string subject = "exception report"; exception exception = e.exceptionobject exception; string body = exception.message + "\n" + exception.data + "\n" + exception.stacktrace + "\n" + exception.source; va...