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("C DO.Message")
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpserver") = "xxxxxxxx"
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpserverport" ) = 25
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout") = 60
' If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password.
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e") = 1 'basic (clear-text) authentication
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/sendusername") ="xxxxxx@xxxxx. xxx"
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/sendpassword") ="xxxxxxx"
ObjSendMail.Con figuration.Fiel ds.Update
ObjSendMail.To = register_email
ObjSendMail.Sub ject = "Confirm Your Account"
ObjSendMail.Fro m = "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.c om/register.asp?fu nc=confirm&emai l=" & register_email & "confirmatoin_n umber=" & confirmation_nu mber & """>Confirm Your Account</a><br><br>"
message = message & "http://www.mywebsite.c om/register.asp?fu nc=confirm&emai l=" & register_email & "confirmatoin_n umber=" & confirmation_nu mber
ObjSendMail.HTM LBody = message
ObjSendMail.Sen d
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
/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("C DO.Message")
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpserver") = "xxxxxxxx"
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpserverport" ) = 25
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout") = 60
' If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password.
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e") = 1 'basic (clear-text) authentication
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/sendusername") ="xxxxxx@xxxxx. xxx"
ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/sendpassword") ="xxxxxxx"
ObjSendMail.Con figuration.Fiel ds.Update
ObjSendMail.To = register_email
ObjSendMail.Sub ject = "Confirm Your Account"
ObjSendMail.Fro m = "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.c om/register.asp?fu nc=confirm&emai l=" & register_email & "confirmatoin_n umber=" & confirmation_nu mber & """>Confirm Your Account</a><br><br>"
message = message & "http://www.mywebsite.c om/register.asp?fu nc=confirm&emai l=" & register_email & "confirmatoin_n umber=" & confirmation_nu mber
ObjSendMail.HTM LBody = message
ObjSendMail.Sen d
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
Comment