You've already added the appropriate reference, otherwise the code wouldn't even compile. It would appear that the server is rejecting your attempts to send mail.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008