views:

43

answers:

2

Hi, 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

+2  A: 

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.

Dmitry
+1 so long as the user id definitely doubles up as an email address on the corporate mail server. I know it usually does with AD + Exchange; however that said a Recipient Policy can override that - possibly a DirectoryServices lookup for that user's email address might also be required.
Andras Zoltan
Thanks Dmitry I got solution to my prob with your point.
Muhammad Waqas
A: 

Thanks every one i got solution to my prob it was really simple solution but i was doing such kind of work first time so i was little confuse. Thanks again for your help

Muhammad Waqas