Sending emails with VB.NET
I am build开发者_运维技巧ing 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.
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.
精彩评论