Sub emailusr()
Dim EmailMessage As New System.Web.Mail.MailMessage
Dim emailSMTp As System.Web.Mail.SMTPMail
EmailMessage.From = "SENDER"
EmailMessage.To = "RECIPIEnT"
EmailMessage.Subject = "SUBJECTTITLE"
EmailMessage.BodyFormat = Mail.MailFormat.Text
EmailMessage.Body = "MESSAGE
emailSMTp.SmtpServer = "STMPTHINGY"
emailSMTp.Send(EmailMessage)
End Sub
I also use the Imports System.Web.Mail in Line 1
These are the errors:
Namespace or type specified in the Imports 'System.Web.Mail' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Type 'System.Web.Mail.MailMessage' is not defined.
Type 'System.Web.Mail.SMTPMail' is not defined.
Name 'Mail' is not declared
End of Statement Expected { For the Imports Statement}
2006-09-14
11:40:23
·
3 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design