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.

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.