Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Email Sending Error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Email Sending Error

 Post Reply Post Reply
Author
padoxky View Drop Down
Groupie
Groupie
Avatar

Joined: 17 June 2004
Location: Nigeria
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote padoxky Quote  Post ReplyReply Direct Link To This Post Topic: Email Sending Error
    Posted: 18 February 2006 at 11:10am
I have a registration form hosted in brinkster that will register any new user. When the form is submitted it will send the input information to database and the same send it to the user through using CDOSYS Email object. Now, the problem is when sending the input information to the user it will displayed an error msg saying:-
 
error '8004020f'
/folder_name/reg.asp, line 299
 
Pointing out the email componet script line.
 
But if i remove the email script and it will only send the input information to the database without any error.
 
This is the Email Script am using for quite sometime and is always work for me.
 
strUname = trim(request.form("uname"))
 
'Database scritp here
 
 
htmlBody = html & "Thank you for registering with us"

Set objCDOSYSMail = Server.CreateObject("CDO.Message")

Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.domain.com"

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60

objCDOSYSCon.Fields.Update

Set objCDOSYSMail.Configuration = objCDOSYSCon

objCDOSYSMail.From = "reg@domain.com"

objCDOSYSMail.To = strUname

objCDOSYSMail.Subject = "Registration Confrimation"

objCDOSYSMail.HTMLBody = htmlBody

objCDOSYSMail.Send

Set objCDOSYSMail = Nothing

Set objCDOSYSCon = Nothing

Is there anything i can do to correct this error?
NgWebDesigns
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.