Reputation: 11
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.
Upvotes: 1
Views: 420
Reputation: 1499860
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.
Upvotes: 2