Hi, I am using the following code to generate and send an email: Code: private SmtpClient GetSmtpClient() { SmtpClient client = new SmtpClient(); //m06.internetmailserver.net client.Host = Properties.Settings.Default.SmtpHost; client.UseDefaultCredentials = false; // postmaster@mycompanyname.com System.Net.NetworkCredential credential = new System.Net.NetworkCredential(Properties.Settings.Default.UserName, Properties.Settings.Default.Password); client.Credentials = credential; return client; } Which gets used here ... Code: MailMessage message = new MailMessage(); message.IsBodyHtml = true; message.Body = GetSimpleNotificationTemplate(model); message.From = new MailAddress("no-reply@mycompanyname.com"); message.To.Add(new MailAddress(model.Email)); message.Subject = "Confirmation"; var client = GetSmtpClient(); client.Send(message); Here is the problem. It only sends to accounts in the postmaster domain. For example, it will send to cliff@mycompanyname.com, but not to any other domains like hotmail or google. Not sure what's going on. Am I missing something in my mail setup? Any insight appreciated. Thank you
You might want to open up a support ticket so we can check the mail logs to see what might be happening. It's also difficult to troubleshoot since you're not using your domain name, and it might be DNS related. Your code on a cursory inspection looks fine.