2
Answers

How to get SMTP name in c#?

Mangesh barmate

Mangesh barmate

9y
351
1

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)