Mangesh barmate

Mangesh barmate

  • NA
  • 118
  • 136.3k

How to get SMTP name in c#?

Nov 5 2015 7:15 AM

Hi,

I have a domain name with me for example yahoo.com. Now i want to get SMTP name in c# code. Now, i know Yahoo SMTP name and i can pass it as a Host name for sending an email.

I want code to get SMTP name for example i am passing yahoo.in as a domain name and receiving smtp.Host = "smtp.mail.yahoo.com"; yahoo SMTP host name.

Please suggest.

Thanks.


Answers (2)