473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 27121
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dave | last post by:
Hi, I know i shouldn't work on php forms when i'm going on 30 hours of no sleep, but i did anyway. I'm trying to get the below to work, and i keep getting a parse error line 74, an unexpected ','...
4
by: alex | last post by:
Hi, Does anybody have an idea why is this happening. The following code works great on my development machine (windows 2000 pro), but on the test server (Windows 2000 Server) it can only send...
2
by: Sunny | last post by:
Hi, I am new in development. I want to develop a application which send email from yahoo acoount to rediffmail acount I am trying following Code But its giving Server 530 Authetication...
3
by: Nader | last post by:
Hello all, Any help would be greatly appreciated. In a Web-based application (server is local) I am trying to send an email from the server side by The error occurs at the following line...
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
3
by: Gerard | last post by:
Hello I have created a windows service to monitor a database, it starts some checks when a timer elapses. The checks send emails depending on their findings. My issue is that when I created a...
4
by: MadeOfRose | last post by:
Hi all i was using cdo object for sending email to a customers. when use win2000 server or windows xp my script works correctly. but not on win2003 server r2. Different thing on my script is...
1
by: jcor | last post by:
Hi, I'm trying to create a script that send a file in attachment of a mail: my code is something like this: #set up email my $to = "xxx\@xxxxxx.com"; my $from =...
4
by: gurufordy | last post by:
Hello. Trying to use the ASP.net user functionality but it keeps failing on me. I have created a login and registration page for my site. When you fill in the registration form it should send a...
3
by: graphicssl | last post by:
Okay, so first of all, I'm a designer first and a light coder second (I'm only really trained with HTML and CSS). So I apologize for having to post about something that's probably super-trivial! ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.