|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
email using ASP
Hi,
I am very new to this email business. I am using PWS (personal web server). I am using following code to send email but I am geting the error saying : Error on Server.CreateObject /BegASP/email.asp, line 7 800401f3 My code is as follows, <% Option Explicit Dim objNewMail Set objNewMail = Server.CreateObject("CDONTS.NewMail") objNewMail.From = "irfan_n33@hotmail.com" objNewMail.To = "irfan_786_sheikh@yahoo.com" objNewMail.Subject = "This is a test Mail" objNewMail.Body = "This is the Body text of this test mail." objNewMail.Send Set objNewMail = Nothing Response.Write "Email has been sent" %> Can someone tell me why I am geting this error. Thanks
__________________
web developer |
|
#2
|
|||
|
|||
|
The CDONT's object requires you to be running the MS SMTP server. If you are running personal webserver, my guess is that it doesn't have an SMTP server running. And my guess is that you aren't running an SMTP server on your computer. I guess you'll have to get a third party email component like ASP Email ( search google) which will allow you to use an off-site smtp server.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > email using ASP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|