tags:

views:

79

answers:

1

I am building a room booking system for my college and I would like to send out an email when a teacher books a room to remind them. I have found one on the internet at this link:

http://www.osix.net/modules/article/?id=377

But when I try and use that code I get an error: "Value of type 'String' cannot be converted to 'System.Net.Mail.MailAddress'"

Can someone give me the low down of how to do this?

Appreciated.

+2  A: 

Why not look at the example on the SmtpMail MSDN documentation if you want to know how to use that class?

Note that that API is now obsolete though - you should look at the System.Net.Mail namespace and in particular the SmtpClient class. Again, there are examples in the documentation.

Jon Skeet