Declaration Error

Not sure why I got this please help.

Compiler Error Message: BC30451: Name 'msg' is not declared.

Source Error:

Line 13:             Dim mailMessage As New MailMessage()
Line 14:             'Add your email address to the recipients
Line 15:             msg.[To].Add("")
Line 16:             'Configure the address we are sending the mail from
Line 17:             Dim address As New MailAddress("")

Are you even trying? You called your MailMessage, mailMessage; not msg. So either rename it to msg or use mailMessage.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.