473,586 Members | 2,555 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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("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") ="xx****@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

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

ObjSendMail.Sen d
"Jay" <ja************ **@insightbb.co mwrote in message news:Og******** ******@TK2MSFTN GP06.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("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") ="xx****@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

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.....bo th websites are on a godaddy.com server......... .
HELP!!!!
i kno for sure the username / password are correct.
thanks,
james jones

"jjw" <bi*********@gm ail.comwrote in message
news:11******** *************@b 28g2000cwb.goog legroups.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.publi c.inetserver.as p.general:
"jjw" <bi*********@gm ail.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.....bo th 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.....bo th 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
1993
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 ',' there is none, so i'm assuming it's on another line, i've checked around, but don't see it. I'm probably missing something so simple that i'll call...
4
40907
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 emails to addresses on our domain. If I specify other address I just get a 8004020f error message. The smtp server I'm trying to send is on a separate...
2
2157
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 error.Could you suggest me anything in this matter. Thank you, Sunny try
3
1630
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 while trying to send an email from the server: SmtpMail.Send(msgMail);
16
2911
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: http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=632614619884218750 -------------------------------------------------------------------------------- System.Security.Cryptography.CryptographicException:...
3
4545
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 windows application it worked fine, however I need to use a service as I don't want to rely on a user being logged in. The errors I get are: Index...
4
2572
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 i use external smtp server to send my emails. for example, i dont use the iis' virtual smtp server. i assign an another smtp server
1
2554
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 = "xxx\@xxxxx.com.br"; my $subject = "ficheiro audio "; my $message = "ficheiro audio "; my $path =...
4
3809
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 confirmation email with a link to activate the account. Nothing hi-tech here. However, it fails to send the email and provides the following error message:...
3
3592
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! I'm working on setting up a shopping cart for a one-product web site, and I'm using HTML and CSS, with ASP for the shopping cart. The ASP takes the...
0
7912
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7839
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8202
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7959
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
3837
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1449
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.