Perhaps you know the feeling: the first man on the moon or the first flying with a plane and so on. I am now a proud memeber of the exlusiv "First Footstep Community". Perhaps it takes to days but i am shure i am the first in the google world who have the PickupDirectoryFromIIS written
http://www.google.de/search?hl=de&q=PickupDirectoryFromIis&meta=
The art of mail sending have changed in .NET 2.0. Moved the namespace and new classes. Its not complicated to do, and needs (surprise) less code than in 1.x. But one thing i discussed several times with the asp.net team is the pickup send method.
For developemt purpose its not good to send out every test mail. So queue it. A usal SMTP server doenst take mails if it is off. So not Microsoft SMTP. You can store the mails in the pickup directory, open it, delete it or send it if SMTP is started. This small code snippet do this for you
Dim myClient As New Net.Mail.SmtpClient("localhost")
myClient.DeliveryMethod = Net.Mail.SmtpDeliveryMethod.PickupDirectoryFromIis
myClient.Send("hannesp@ppedv.de", email.Text, "Bestellung des Buches erhalten", mailtext)
myClient.Dispose()
Another huge advantage of this method is the increased speed. Its 1000 times faster to make file access as socket connections. And you have also the choice to use a pickup directory in the local network. Speed Speed Speed.
PS: Done with Beta 2