|
-
May 27th, 2002, 01:07 AM
#1
Thread Starter
New Member
VB Mail
Hi,
The following example descibes how to send a mail
message using SMTP
' Add a reference to system.web
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)
(source : http://abstractvb.com/code.asp?F=1&P=1&A=1033)
When I run this code I get the error message
Could not access 'CDO.Message' object.
I can remember that the CDO object was installed by Outlook or Outlook Express.
Unfortunately, the company I work for uses Lotus Notes Mail.
Does this mean that the new .net class is based on an old non-system dll ?
Anyone else got the same problems with Lotus Notes ?
(Btw I had written my own smtpmail class in VB6 which is completely based on a winsock connection with smtp commands)
CU
CE
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|