Having problem Im trying "Imports System.Web.Mail" at the top and i get the ~~~~ blue line ??? is their something else i need to inport to or add a Ref to ? ?
Printable View
Having problem Im trying "Imports System.Web.Mail" at the top and i get the ~~~~ blue line ??? is their something else i need to inport to or add a Ref to ? ?
First , add a ref "web.dll" then everything should works fine.
VB Code:
Imports System.Web.Mail Dim m As New System.Web.Mail.MailMessage() With m .From = "[email protected]" .To = "myself$my.house" .Subject = "My SMTP Test" .Body = "My New Message" End With SmtpMail.SmtpServer = "MyServerName" SmtpMail.Send(m)
Thank you