C#Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Hey, I had the same problem some time ago. I think there is a thread in this forum somewhere, anyways... I know it sounds weird but I solved the problem my setting the server property to the empty string!
Yep, your code looks cool according to the problem I had, but your problem seems to be different if the code you posted didn't work. The error message you keep getting is caused by many different thinks.
Sorry I couldn't help more. BTW... If your are trying to send emails from your developer machine you might not have an SMTP server running? Then try uploading the page to a web hotel with an SMTP server.