|
-
September 4th, 2001, 05:09 AM
#1
sending email with vb
Hi.
i tried to send an email with vb, but failed.
i used the following code:
Private Sub Command1_Click()
Dim myMail
Set myMail = CreateObject("CDONTS.NewMail")
myMail.From = "[email protected]"
myMail.To = "[email protected]"
myMail.Subject = "Sample Message"
myMail.Body = "This is a sample message."
myMail.AttachFile "c:\sample.txt"
myMail.Send
Set myMail = Nothing
End Sub
I always get an error message like
Active-x component cannot create objects
Can anyone please help me?
Thank you
PS: Can anyone send me the sample programm "vbmail.vbp". It wasnt included in my version of vb.
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
|