469,626 Members | 1,820 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

Error trying to send email

Jay
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

Aug 29 '06 #1
5 26546
Jay
forgot to say....line 71 is the line that says:

ObjSendMail.Send
"Jay" <ja**************@insightbb.comwrote in message news:Og**************@TK2MSFTNGP06.phx.gbl...
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

Aug 29 '06 #2
jjw
I think your smtp server is rejecting the email from the webserver for
some reason or another. In my experience, this is the cause when the
error happens on the obj.sendmail line and no error is given.

jjw

Aug 29 '06 #3
Jay
well i kno they are the correct username / password. this SAME EXACT script
( copied and pasted) works on the same mail server w/ different login
username/password.....both websites are on a godaddy.com server..........
HELP!!!!
i kno for sure the username / password are correct.
thanks,
james jones

"jjw" <bi*********@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
>I think your smtp server is rejecting the email from the webserver for
some reason or another. In my experience, this is the cause when the
error happens on the obj.sendmail line and no error is given.

jjw

Aug 30 '06 #4
Jay wrote on 30 aug 2006 in microsoft.public.inetserver.asp.general:
"jjw" <bi*********@gmail.comwrote in message
>>I think your smtp server is rejecting the email from the webserver for
some reason or another. In my experience, this is the cause when the
error happens on the obj.sendmail line and no error is given.
[please do not toppost on usenet]
well i kno they are the correct username / password. this SAME EXACT
script ( copied and pasted) works on the same mail server w/ different
login username/password.....both websites are on a godaddy.com
server..........
HELP!!!!
i kno for sure the username / password are correct.
"i kno"?

Perhaps you made a spelling or case mistake?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Aug 30 '06 #5
jjw
well i kno they are the correct username / password. this SAME EXACT script
( copied and pasted) works on the same mail server w/ different login
username/password.....both websites are on a godaddy.com server..........
try it with the username and password that works with the other server.

or it could be a firewall issue where the smtp server is behind a
firewall that is only set up to allow connections from the one mail
server and not the other.

It really sounds like the smtp server is rejecting the message, or the
message is not getting to the mail server at all. It also sounds like
the web server IS sending out the message. So the problem lies
somewhere between the web server, and up to and including the mail
server, is my opinion.

Aug 30 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by dave | last post: by
4 posts views Thread by alex | last post: by
2 posts views Thread by Sunny | last post: by
16 posts views Thread by | last post: by
4 posts views Thread by MadeOfRose | last post: by
1 post views Thread by jcor | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.