By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,334 Members | 2,776 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,334 IT Pros & Developers. It's quick & easy.

Sending E-Mail problem from VB.

P: 123

I have added reference Microsoft CDO for NTS 1.2 Library to my project.

I am trying to send an Email from my system but I get the error "RUN TIME ERROR 429 - ACTIVEX COMPONENT CAN'T CREATE OBJECT". .

The code is as follows;

Private Sub cmdSend_Click()
Dim myMail As CDONTS.NewMail
Set myMail = Server.CreateObject("CDONTS.NewMail")
myMail.To = txtTo.Text
myMail.From = txtFrom.text
myMail.Subject = txtSubject.Text
myMail.Body = txtDescription.Text
Set myMail = Nothing
End Sub

what is wrong with the above code.

Kindly let me know
Apr 24 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.