Ok, I give up... I need help with sending email via the Contact form developed in ch. 3.
Hope it's ok that I resurrect this old topic.
During my last attempt at theBeerHouse (.NET 2.0) it worked fine.
Now I picked up the project again, this time using .NET 3.5, the code is exactly the same, but it doesn't work.
I don't receive any errormessages, the mail just doesn't get sent. The exception catches it. Unfortunately, I'm no debugging hero
Since the last time I worked on this project, I re-installed win XP. I installed IIS after the .NET framework, which meant that IIS didn't work.
I ran a repair on the framework in "add remove programs", and it worked fine again.
But I can't send any email, and I just can't figure out why. SMTP is installed, the settings for the virtual smtp client in IIS is set up (relay etc.),
and I have tried different setting for this with no luck.
My web config code for mail is as follows:
<system.net>
<mailSettings>
<smtp deliveryMethod="PickupDirectoryFromIis" from="
[email protected]">
<network defaultCredentials="true" host="(localhost)" port="25"/>
</smtp>
</mailSettings>
</system.net>
The code in Contact.aspx.cs is exactly as in the book...
Anyone else with these issues?