I have an application that allows the user to send me an email. How can I have the application programatically determine the users local smtp host for use with the SmtpClient() object?
Jason
Getting the local smtp host name
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted Oct 3, 2008, 4:37 AM EDT
Jason7 pointsPosted Oct 3, 2008, 6:42 AM EDT
Would you provide me with a simple example of how to do this?
Jason
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted Oct 10, 2008, 12:39 PM EDT
<mailSettings>
<smtp>
<network host="SMTP.1and1.com" userName="[email protected]" password="sam"/>
</smtp>
</mailSettings>
</system.net>
1 short reply
Jason7 pointsPosted Oct 2, 2008, 4:08 PM EDT
Anyone?
Jason