Muhammad Waqas
Muhammad Waqas

Reputation: 105

I want to send email to an id at local network

I want to send email to an id at local network using intranet not internet in C#. Please someone help me if possible.

Thanks, Regards

Upvotes: 2

Views: 1010

Answers (1)

Dmitry Osinovskiy
Dmitry Osinovskiy

Reputation: 10118

Absolutely doesn't matter if it is intranet or internet. Somewhere on your intranet there is a mail server that supports SMTP protocol. It maybe program like Unix sendmail, Microsoft Exchange or IBM Lotus Domino. Ask your system administrator to find out address of this mail server. Then use standart .NET API (example here, replace smtpserver1 to the address of your mail server and specify username and password if needed) to connect to it and send your mail.

Upvotes: 2

Related Questions