Ultimately I am trying to send email asynchronously, and in by investigation I was routed here http://msdn.microsoft.com/en-us/libr...mtpclient.aspx. Microsoft's sample code mentioned "Namespace Examples.SmptExamples.Async"

I just don't know how to use this code. I tried to put it in a aspx.vb file, but it give me an error saying "Namespace statements can only occur at the file or namespace level." Again not sure what this means.

If all the code goes in a file, what to I call the file? I tried putting it in a module, but I got the same error. I could not find any guidance on how to use the Namespace.

Can anyone tell me how to use this sample code. It appears to be exactly what I was looking for.