This topic is locked

Self-Registration

12/19/2008 9:18:47 PM
ASPRunnerPro General questions
C
claybob author

I have a application where the user login routine allows a 'new user' to register. When I execute the code, after entering the new username and password, and email, etc. I get the following error:

error '80040211'

/REOffice/include/commonfunctions.asp, line 4545
Can't figure out what is going on.

I've checked line 4545 in commonfunctions.asp and this is what I see:
If IISVer <= "5.0" or IISVer = "7.0" Then

' Windows NT / 2000

Set myMail = Server.CreateObject("CDONTS.NewMail")

myMail.From = cfrom

myMail.To = email
myMail.Subject = subject

myMail.Body = message

myMail.Send

Set myMail = Nothing

Else

' Windows XP / 2003

Set myMail=CreateObject("CDO.Message")

myMail.Subject = subject

myMail.From=cfrom

myMail.To=email

myMail.TextBody= message

myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing";)=2

'Name or IP of remote SMTP server

myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver";)=csmtpserver

'Server port

myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport";)=csmtpport

' SMTP username and passwords

myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword";) = csmtppassword

myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername";) = csmtpuser

if csmtpuser<>"" then _

myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate";) = 1

myMail.Configuration.Fields.Update

myMail.Send <============== This is line 4545

Set myMail = Nothing

End If
Thanks,

ClayBob

J
Jane 12/22/2008

Hi,
this error happens because SMTP server isn't configured properly or SMTP and webserver are on the one machine and SMTP service is not running.

http://msdn.microsoft.com/en-us/library/ms...(EXCHG.65).aspx

Contact your hosting company with this error.
Here are some links:

http://www.webhostingtalk.com/showthread.php?t=505770

http://www.dbforums.com/t884514.html
Also please check this thread:

http://www.asprunner.com/forums/index.php?...amp;#entry30857