Error 8004020f When Using CDOSYS

I have a client with a site that users can register at, we collect their
emails, if they have one, in an Access db. I have a page that uses CDOSYS to
send messages to those emails but I am getting "error '8004020f" when I do
this.

About 75% of the members have emails so some email fields in the db
are empty. One issue with my webhost is that I cannot send by CDOSYS more
than 99 emails at a time, so I select all emails where the ID is less than
97, that is about 85 emails total. After the first group goes out the page
redirects to another page so the next group can go out. Code:

View Replies


ADVERTISEMENT

CDO Error 8004020f

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 machine (Windows NT Server).

I think it has something to do with web server configuration, or even maybe
smtp server? But the fact that I can send it from my machine throws me
off... I also tried a Perl script to send email using the same smtp server
and I have the same problem, works from my machine, fails on test server.
Anyone came across something like that? Code:

View Replies View Related

Error '8004020f' ASP Programming

My page sends an email using CDO to a username pulled from a database as follows:

With cdoMessage
Set .Configuration = cdoConfig
.From = "Admin <admin@MyCompany.com>"
.To = rs("USERName") & "@MyCompany.com"
.Subject = "Notification #" & rs("subject_Num")
.TextBody = txtVar
.Send
End With

this works great so long as USERName isn't garbage. If there are bad characters in it that IIS doesn't like, it get an error '8004020f' at the .send line.

I was wondering if there was an easy and / or publicly available code snippet that could check the user name for special chars. Ideally, it would email me if there was a problem with the USERName rather than just strip the bad chars out and send it to whatever is left.

View Replies View Related

CDO.Send Returns Error '8004020f'

I'm trying to set up a very simple asp page that sends me an email when it runs. This is just to try and get CDOSYS working so I can send out emails from my website.

Everything is fine right up until I execute the ".Send" method.
What could be wrong? What does the error mean?

The output from the source below is:
"test1 error '8004020f'

/mailtest.asp, line 34"

Here it is: Code:

View Replies View Related

Error '8004020f' On The ObjMessage Send Line...

I am using this code:

[code].....

to send email, however i get error '8004020f' on the objMessage "send" line
this code works usually, however for some reason i get this error on this site.....

View Replies View Related

CDO Error "Failure In Obtaining User Token." (Error '8004020F')

I'm having a bit of trouble with an ASP form that I'm maintaining. Someone else wrote it and I'm new to CDO objects. I have a CDO.Message and a CDO.Configuration.

I set up the configuraton fields for the port and smtp server's ip address to be used. The configuration property of the message is set to be the new configuration object.

Then there's a ton of stuff appending bits and pieces to the text body.

Finally we have the message's Send method being called. That's where it breaks.

It seemed to just stop working one day. When I submit the form, the message returned is simply:

error '8004020f'

I know from the MSDN website that this error code means 'Failure in obtaining user token.' What I don't know is how to fix it!

View Replies View Related

CDOSYS Error

I was using CDOSYS to send email. But the smtp error was showing a relay error
how to find the same error from asp ?

View Replies View Related

CDOSYS Error Message

I recently switch from CDONTS to CDOSYS because of the e-mail delivery delay I am encountering. Now, when I send e-mail using CDOSYS it gives me the error message below:

CDO.Message.1 error '8007000e'

Not enough storage is available to complete this operation.

/development/Administrator_email.asp, line 101

There are about 2000 recipients in the e-mail list. I tried just sending to about 20 of them and I did not have any problem. Code:

View Replies View Related

Cdosys With Windows 2003 Error

I'm using windows 2003 with asp. However, I'm having problems sending email using the cdosys object.

My code is below and I don't believe its the code but on the send command.

<%
dim sch
dim cdoConfig
dim cdoMessage

sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(sch & "sendusing") = 2
cdoConfig.Fields.Item(sch & "smtpserver") = "127.0.0.1"
cdoConfig.fields.update

Set cdoMessage = Server.CreateObject("CDO.Message")
Set cdoMessage.Configuration = cdoConfig
cdoMessage.From = "test@gmail.com"
cdoMessage.To = "test@gmail.com"
cdoMessage.Subject = "Sample CDONTS NewMail"
cdoMessage.TextBody = "This is a test for CDONTS message"
cdoMessage.Send
Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>

error '8004020f'
/tad/testing.asp, line 30

I'm not sure what's wrong. When I go to my SMTP Virtual Server
settings in IIS --> Properties --> Delivery --> Advanced .

The FQDN is localhost and the smarthost is blank.

View Replies View Related

CDOSYS Mail Form Runtime Error

I have downloaded the script from brainjar but it needs a bit of tweaking because my smtp host requires authentication, I have added what i feel are the relevant lines of code but these are giving me a runtime error

These are the relevant lines of code, the 1st line giving me the error:

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'whether you use a authentication on the server

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = *******
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = *****

View Replies View Related

Use CDOSYS

how to use CDOSYS... i am getting pain by changing my servers

View Replies View Related

Cdo, Cdosys

I am desperately trying to install a login script for my website. I keep getting this error:

error '80040211'
/register.asp, line 88

Here is what is on line 88:

objCDOSYSMail.Send

i spoke with my hosting company - they said CDOSYSMail.Send and objCDO.Send are the same thing and if one is supported they both are - is this true?

I don't know what to do to get this working. It's a remote SMTP, but they have assured me that isn't an issue because I have the correct outgoing SMTP info in place (Verio hosting)

View Replies View Related

Cdosys

How can i create an form in CDOSYS to send an email?

Win 2k and NT used CDONTS, but XP does not support it. Does anyone know how to utilise this using Win XP Pro with IIS version 5.1

View Replies View Related

From Name In CDOSYS

I know with CDOSYS there's a objMail.from class, but this is for the From email address of the sender, not the From Name. Is it possible to assign a from name and from email address as seperate values?

View Replies View Related

CDOSys

I have an asp registration form, generating a html email, using cdosys.
When a hotmail user registers they receive an empty email or so it
seems, until you forward the email then the contents appeas as if by
magic. Is this a problm in the way my asp page is generating the email
or is it a settings issue with the hotmail account

View Replies View Related

Using Cdosys

I have allready posted my problem at this forum and i got replies too.But they suggested me using cdont or cdo component for win 2000.But my os is XP
professional and it contain CDOSYS component for sending email in asp.Plz provide me solution a/c to Windows XP Professional CDOSYS component

View Replies View Related

Help CDOSYS

I keep getting this error when my website tries to create an object to send an email for the checkout email confirmation: Error creating object: 006~ASP 0177~Server.CreateObject Failed~800401f3. Do you have any idea of the reasons this could happen? I had an engineer configure the software for CDOSYS, and this is what he said: Andrew, I’ve replaced all the files and I still get the same error message. So this leads me to believe that we’re looking at the wrong site or where I am publishing to the wrong location. Either that or the host is doing some sort of an ASP caching.
I don't see how he could be publishing to the wrong location; i gave him the right ftp info. Do you know what an ASP caching is, or do you have any clue what i could do to try to fix this problem, or where this error came from in the first place?
URL URLI was told by somenone that the object is not installed and registered properly. Does this mean that the dll for CDLSYS is not installed server side, or that the error is a function of my server not being set up right?

View Replies View Related

Cdosys

I am getting this error, but have no attachment code!! What other paths could it be looking for. The only one I have is:

.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "c:inetpubmailrootpickup"

View Replies View Related

CDOSYS

i am using CDOSYS to send mails to the users from my application. Everything is working fine, mails are being sent to the user but in the mail the user receives, some extra characters such as '!' or spaces are coming between words. I tried defining a character set but still the problem exitss.

View Replies View Related

Cdosys

Does CDOSYS have all the same methods and properties that CDONTS does? I need to know 'cause I just put XP on my box and I heard CDONTS has been deprecated since Win2k anyway.

View Replies View Related

Cdosys

I am having difficulty with the cdosys for windows 2000, I can't seem to find a method that allows me to attach a file, I have been searching msdn and the page I needed was not available.

View Replies View Related

CDOSYS

Using CDOSYS to send email:

Code: ( text )

View Replies View Related

CDOSYS

I was using CDONTS to send ASP forms. They used to work fine, but now it seems that my webhost provider (not to mention some others), are changing the fotmat from CDONTS to CDOSYS. I have been looking at some of the examples, but they seem confusing. So, my questions is this...

What is the easiest way? I am more concern with the collection of the data from the form's fields. What is that I have to do in order to be able to collect the data sent from the fields?

View Replies View Related

CDO Take Two CDOsys

I have a form that I use to send an email using CDO. When I submit the form, it brings up a blank page and no email is sent. Can you look through the code and see what's wrong?

View Replies View Related

Email & CDOSYS

does anyone know why the code below wont work ?

It doesnt thow any errors, but no email is being sent!

'--------------------------------------------------------------
'-------- now use CDOSYS to send email because im using IIS5.1
'--------------------------------------------------------------
Dim objConfiguration
Dim objFields
Dim objMessage
Set objConfiguration = CreateObject("CDO.Configuration")
Set objFields = objConfiguration.Fields
With objFields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) ="localhost"
.Item(cdoSMTPServerPort) = 25
.Item(cdoSMTPAuthenticate) = cdoBasic
.Update
End With

Set objMessage = CreateObject("CDO.Message")
With objMessage
Set .Configuration = objConfiguration
.From = "mark@mark.com"
.To = "mark-wheeler@tiscali.co.uk"
.Subject = "Here comes a Subject"
.TextBody = "Here is a text body"
.Send
End With
Set objMessage = Nothing
Set objConfiguration = Nothing

View Replies View Related

CDOSYS: No Email Is Getting Sent

I am trying CDOSYS code to send out email. The problem is when I try to send email to gmail and hotmail account, it never works. Means, no email appears at gmail and hotmail account. But when I send it to yahoo mail, it works.

I run the code at localhost. I use Win XP Pro. I just wonder why this happen.
Can someone explain to me?

Below is the code that Im trying out: ....

View Replies View Related

CDOSYS Compatibility

If I code automated email sending functionality for website using CDOSYS it will work only for users with Windows 2000/XP. Is it correct?

Or Windows 2000/XP requirement is only related to the server side software and all my users will not have any problems using other systems on their computers?

View Replies View Related

ASP CDOSYS SMTP

I have an ASP page that uses CDOSYS to send a simple HTML format email with a
PDF attachment. When I open the PDF attached to the email it shows up as a
blank page. I log into the web server console and open the same PDF in the
source directory and it opens fine. I run a binary comparison of the source
and attached files and there's a difference: one byte, x'2E' is missing at
offset x'0231'. If I save the attached file and use a hex editor to insert
the x'2E' the file opens just like the original

View Replies View Related

CDOSYS And Japanese

Does anyone know how to send Japanese email with CDOSYS?
I'm having tons of problems with this and have spent the whole day trying
out different combinations of character sets and encoding.
I've gone through all the examples and tutorials I've come across but none
of them show how to send Japanese emails specifically and I haven't been
able to derive how to do it from the examples.
It must be possible because I can do it with .NET and CDO. I think they
both use the same CDO? However, I need it in classic ASP, not .net.
There must be someone out there that has done it.

View Replies View Related

CDONTS To CDOSYS

I have an email script that used to work but now doesn't, my web host told me I have to use CDOSYS instead of CDONTS.If it's not to much trouble could someone look at my script below and make it CDOSYS compliant.Thanks

<%@LANGUAGE="VBSCRIPT"%>
<%
Dim usxCDO
Set usxCDO = Server.CreateObject("CDONTS.NewMail")
usxCDO.From = cStr(Request("email"))
usxCDO.To = "someone@somewhere.com"
usxCDO.Subject = "Subscription To Magazine"
usxCDO.Body = Chr(13) & Chr(10) &_
"Name: " & cStr(Request("name")) & Chr(13) & Chr(10) &_
"Company: " & cStr(Request("company")) & Chr(13) & Chr(10) &_
"Email: " & cStr(Request("email")) & Chr(13) & Chr(10) &_
"Instructions: " & cStr(Request("instructions")) & Chr(13) & Chr(10) &_
"A SUBSCRIPTION ORDER HAS BEEN PLACED."
If (cStr(Request("Submit")) <> "") Then

View Replies View Related

Cdosys And Godaddy

Can someone help me configure my cdosys to work with my godaddy account, i can get it to work my my work mail server but i haven't had any luck with go daddy's.

View Replies View Related

CDOSYS And Smarthost

I'm trying to send an email from my ASP page using
CDO.Message and CDO.Configuration. I couldn't get this to
work for ages and all my emails ended up in
inetpubmailrootqueue.

I'm behind a firewall and finally figured out that i have
to set the smarthost field for the SMTP Virtual Server in
IIS to get any emails to send. All good, the emails get
sent.

The part that confuses me is that in my code, no matter
what i set the cdoSMTPServer field for the
CDO.Configuration object to, it always works. I guess it's
using the smarthost field in the SMTP Virtual Server to
get the name of the server to use...but how will this all
work out on a different computer??

(What i would really like is for the code to use the
server specified in the cdoSMTPServer field instead of
relying on the configuration of the SMTP Virtual Server.)

View Replies View Related

Question Regarding CDOSYS,

I have added a tracking element and also an unsubscribe element to my newsletter, all working great.

I am all set ready to send my newsletters via CDOSYS, and have found a little problem.

I dont want the emails to be send using blind carbon copy. As this is in-personal. However I dont wish for each of the clients to see other peoples email addresses. So what am I to do to achieve this.

I have reached a stumbling block, as everything else was quite simple once thought about. Code:

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved