I need to send an e-mail from my program. The code is pretty simple:
Dim from As String = "Management Projects@ubsw.com"
Dim mailto As String = "vadim.naroditsky@ubsw.com"
Dim subject As String = "New user request"
Dim body As String = "Add new user..."
System.Web.Mail.SmtpMail.SmtpServer = "newyorko.nyc.swissbank.com"
System.Web.Mail.SmtpMail.Send(from, mailto, subject, body)
I am getting the error: "Cannot access CDONTS.NewMail Object"
I tried to add cdonts.dll to references with no effect.
I am using Windows NT.
What should I do?
Dim from As String = "Management Projects@ubsw.com"
Dim mailto As String = "vadim.naroditsky@ubsw.com"
Dim subject As String = "New user request"
Dim body As String = "Add new user..."
System.Web.Mail.SmtpMail.SmtpServer = "newyorko.nyc.swissbank.com"
System.Web.Mail.SmtpMail.Send(from, mailto, subject, body)
I am getting the error: "Cannot access CDONTS.NewMail Object"
I tried to add cdonts.dll to references with no effect.
I am using Windows NT.
What should I do?