Mangesh barmate

Mangesh barmate

  • NA
  • 118
  • 136.2k

Get SMTP name by passing domain name in c#?

Nov 9 2015 12:00 AM
Hi Team,
I have very basic question, i have a domain name for example yahoo.in with me. Now, i want to pass that domain name and get SMTP mail server name for example smtp.mail.yahoo.com. I want to get this by c# code.
My intention behind this, i have multiple of email addresses so i will pass domain name for a requested email address and fetch SMTP mail server name.
Please suggest code to get SMTP name by domain name.
Thanks in advance. 

Answers (1)