error '80040211'
/register.asp, line 71
I receive this error when i attempt to send an email.
My code is as follows:
Dim ObjSendMail
Set ObjSendMail = CreateObject("CDO.Message")
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "xxxxxxxx"
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
' If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password.
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="xx****@xxxxx.xxx"
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="xxxxxxx"
ObjSendMail.Configuration.Fields.Update
ObjSendMail.To = register_email
ObjSendMail.Subject = "Confirm Your Account"
ObjSendMail.From = "From Us!"
message = "Thank you for signing up! Please click the link below to confirm your account. If the link does not work, then copy and paste the link into your browser's address bar.<br><br>"
message = message & "<a href="http://www.mywebsite.com/register.asp?func=confirm&email=" & register_email & "confirmatoin_number=" & confirmation_number & """>Confirm Your Account</a><br><br>"
message = message & "http://www.mywebsite.com/register.asp?func=confirm&email=" & register_email & "confirmatoin_number=" & confirmation_number
ObjSendMail.HTMLBody = message
ObjSendMail.Send
Set ObjSendMail = Nothing
just to verify, the username and password ARE correct. i even changed the password on my mail server, and copied and pasted it here. (i have them "xxx"ed out for my own security)
the mail server is correct. i use all this same information in outlook express.
PLEASE HELP ME!!! This same script works for a friend of mine. i made him a script which does the same thing pretty much, but it sends for him.........
Thanks,
James Jones