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.