Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > CDONTS problem: Some mails sit in the queue, most go through

Reply
Thread Tools

CDONTS problem: Some mails sit in the queue, most go through

 
 
Augustus
Guest
Posts: n/a
 
      04-27-2004
Hiya,

Having a problem with CDONTS thats only come up in the last couple of days
here

I'm running IIS5 on a Win2K machine and hosting some websites on it...

The problem: SOME of the outgoing emails generated from the site just sit in
the queue while others go with no problem

The only changes made to any of the sites was that one of our customers
wanted to add paypal integration to his online lunch ordering site... since
its early and things are being tested still I added a small subroutine that
every time PayPal triggers the IPN page the website will automatically email
me the contents of the form object

To do this, I just cut and pasted code from another part of the site that
works fine (its been up and running for almost 2 years with no problems or
bad mail)

This is the subroutine that gets called:

sub EmailMe
' this subroutine will email Me
Dim MyCDONTSMail, strEmail
strEmail="" strEmail="EMAIL TRIGGER: " & vEmailTrigger & vbcrlf &
"RESPONSE TEXT: " & varResponseText & vbcrlf & vbcrlf
for each ppResponse in Request.Form
strEmail=strEmail & ppResponse & "::" & Request.Form(ppResponse) &
vbcrlf
next
Set MyCDONTSMail = CreateObject("CDONTS.NewMail")
MyCDONTSMail.From= "_____@_____._____"
MyCDONTSMail.To= "_____@_____._____"
MyCDONTSMail.Subject="PayPal IPN Auto Emailer"
MyCDONTSMail.Body= strEMAIL
MyCDONTSMail.Send
set MyCDONTSMail=nothing
end Sub


Like I say... the above code hasn't given us a problem in the past 2 years
and thats the only change we made to the site... and now its starting to
effect other emails being sent from the site

When the mail does eventually end up in BADMAIL it says delivery failed with
the message of:



This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

http://www.velocityreviews.com/forums/(E-Mail Removed)

--9B095B5ADSN=_01C42C62B99BBCA800000005paperboy
Content-Type: message/delivery-status

Reporting-MTA: dns;paperboy
Received-From-MTA: dns;paperboy
Arrival-Date: Tue, 27 Apr 2004 06:55:38 -0700

Final-Recipient: rfc822;(E-Mail Removed)
Action: failed
Status: 5.3.5


Any insight would be appreciated

Thanks,
Clint



 
Reply With Quote
 
 
 
 
Augustus
Guest
Posts: n/a
 
      04-27-2004

"Augustus" <(E-Mail Removed)> wrote in message
news:c6m2d9$dog4g$(E-Mail Removed)-berlin.de...
> Hiya,
>
> Having a problem with CDONTS thats only come up in the last couple of days
> here
>
> I'm running IIS5 on a Win2K machine and hosting some websites on it...
>
> The problem: SOME of the outgoing emails generated from the site just sit

in
> the queue while others go with no problem


A question about my problem:

Could the problem I am having be CDONTS being able to handle only so much at
one time? And if so can I change it?

What I am thinking is: When the paypal form dumps get emailed (see previous
email) its often 2-3 get generated at the same time... is getting 2
messages at once too much for CDONTS to handle?

I changed the code so that instead of emailing me every form dump I am just
writing them to a database and that seems to be clearing up the problem (as
of yet no messages are backing up in the queue)

Any help is appreciated,

Thanks,

Clint






 
Reply With Quote
 
 
 
 
Aaron Bertrand [MVP]
Guest
Posts: n/a
 
      04-27-2004
For one, stop using CDONTS... use CDO.Message (see
http://www.aspfaq.com/2026). Use an external SMTP server if possible, then
your web server isn't doubling as a mail server. Two at once should not be
too much to handle. See http://www.aspfaq.com/2268 for some possible
reasons, but switching from CDONTS and using an external SMTP server will
definitely resolve your issue.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/





"Augustus" <(E-Mail Removed)> wrote in message
news:c6m5m1$d2i43$(E-Mail Removed)-berlin.de...
>
> "Augustus" <(E-Mail Removed)> wrote in message
> news:c6m2d9$dog4g$(E-Mail Removed)-berlin.de...
>> Hiya,
>>
>> Having a problem with CDONTS thats only come up in the last couple of
>> days
>> here
>>
>> I'm running IIS5 on a Win2K machine and hosting some websites on it...
>>
>> The problem: SOME of the outgoing emails generated from the site just sit

> in
>> the queue while others go with no problem

>
> A question about my problem:
>
> Could the problem I am having be CDONTS being able to handle only so much
> at
> one time? And if so can I change it?
>
> What I am thinking is: When the paypal form dumps get emailed (see
> previous
> email) its often 2-3 get generated at the same time... is getting 2
> messages at once too much for CDONTS to handle?
>
> I changed the code so that instead of emailing me every form dump I am
> just
> writing them to a database and that seems to be clearing up the problem
> (as
> of yet no messages are backing up in the queue)
>
> Any help is appreciated,
>
> Thanks,
>
> Clint
>
>
>
>
>
>



 
Reply With Quote
 
Augustus
Guest
Posts: n/a
 
      04-27-2004

"Aaron Bertrand [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> For one, stop using CDONTS... use CDO.Message (see
> http://www.aspfaq.com/2026). Use an external SMTP server if possible,

then
> your web server isn't doubling as a mail server. Two at once should not

be
> too much to handle. See http://www.aspfaq.com/2268 for some possible
> reasons, but switching from CDONTS and using an external SMTP server will
> definitely resolve your issue.


Where would be a good source for information on using an external SMTP
server?

I just took a look at a few things on some sites but they all seem to be
indicating using CDO to relay the emails to an external SMTP server...

Is there a point to that? I mean, why not just send them with CDO directly
in the first place? Or can you send them from the site directly to the SMTP
server?

My web server is also my email server (running Kerio) would I have any
problems with doing anything like this? Or should I put the mail server on
its own machine to accomodate this?

Thanks,

Clint


 
Reply With Quote
 
Aaron Bertrand [MVP]
Guest
Posts: n/a
 
      04-27-2004
> Where would be a good source for information on using an external SMTP
> server?


The site for the vendor of the SMTP server? I don't know what kind of
information you're looking for, you'll have to be more specific. Maybe you
mean CDO syntax? http://www.aspfaq.com/2339 (The alternative is
cdoSendUsingPickup.)

> I just took a look at a few things on some sites but they all seem to be
> indicating using CDO to relay the emails to an external SMTP server...


One of the advantages of using CDO over CDONTS is that with one single
change to the code, you can switch from using the local SMTP service to
using a remote SMTP server. The problem I've found with using the local
SMTP service is that there are far too many variables that can leave mail
hanging out in the queue. If you have a remote server (and remote *can*
mean localhost, especially if it's running something like Kerio instead of
the standard SMTPl service) that is already servicing SMTP for other
clients/applications, adding these mails to its task should be seamless.



 
Reply With Quote
 
Vilmar
Guest
Posts: n/a
 
      04-27-2004
Hi all,
Is is possible some person(s) are using your server by this days to send
attacks to some especific websites like symantec, microsoft, etc...
A lot of versions of Mydoom worm do this and other worms too.
Update your antivirus and firewall, download a good fix tool on:
http://vil.nai.com/vil/stinger
http://www.symantec.com/

--

bye,

Vilmar Braz„o de Oliveira

"Augustus" <(E-Mail Removed)> escreveu na mensagem
news:c6m2d9$dog4g$(E-Mail Removed)-berlin.de...
> Hiya,
>
> Having a problem with CDONTS thats only come up in the last couple of days
> here
>
> I'm running IIS5 on a Win2K machine and hosting some websites on it...
>
> The problem: SOME of the outgoing emails generated from the site just sit

in
> the queue while others go with no problem
>
> The only changes made to any of the sites was that one of our customers
> wanted to add paypal integration to his online lunch ordering site...

since
> its early and things are being tested still I added a small subroutine

that
> every time PayPal triggers the IPN page the website will automatically

email
> me the contents of the form object
>
> To do this, I just cut and pasted code from another part of the site that
> works fine (its been up and running for almost 2 years with no problems or
> bad mail)
>
> This is the subroutine that gets called:
>
> sub EmailMe
> ' this subroutine will email Me
> Dim MyCDONTSMail, strEmail
> strEmail="" strEmail="EMAIL TRIGGER: " & vEmailTrigger & vbcrlf &
> "RESPONSE TEXT: " & varResponseText & vbcrlf & vbcrlf
> for each ppResponse in Request.Form
> strEmail=strEmail & ppResponse & "::" & Request.Form(ppResponse) &
> vbcrlf
> next
> Set MyCDONTSMail = CreateObject("CDONTS.NewMail")
> MyCDONTSMail.From= "_____@_____._____"
> MyCDONTSMail.To= "_____@_____._____"
> MyCDONTSMail.Subject="PayPal IPN Auto Emailer"
> MyCDONTSMail.Body= strEMAIL
> MyCDONTSMail.Send
> set MyCDONTSMail=nothing
> end Sub
>
>
> Like I say... the above code hasn't given us a problem in the past 2 years
> and thats the only change we made to the site... and now its starting to
> effect other emails being sent from the site
>
> When the mail does eventually end up in BADMAIL it says delivery failed

with
> the message of:
>
>
>
> This is an automatically generated Delivery Status Notification.
>
> Delivery to the following recipients failed.
>
> (E-Mail Removed)
>
> --9B095B5ADSN=_01C42C62B99BBCA800000005paperboy
> Content-Type: message/delivery-status
>
> Reporting-MTA: dns;paperboy
> Received-From-MTA: dns;paperboy
> Arrival-Date: Tue, 27 Apr 2004 06:55:38 -0700
>
> Final-Recipient: rfc822;(E-Mail Removed)
> Action: failed
> Status: 5.3.5
>
>
> Any insight would be appreciated
>
> Thanks,
> Clint
>
>
>



 
Reply With Quote
 
Augustus
Guest
Posts: n/a
 
      04-30-2004

"Augustus" <(E-Mail Removed)> wrote in message
news:c6m2d9$dog4g$(E-Mail Removed)-berlin.de...
>
> Having a problem with CDONTS thats only come up in the last couple of days
> here
>
> The problem: SOME of the outgoing emails generated from the site just sit

in
> the queue while others go with no problem


Well I finally figured out the problem I was having...

I am running Kerio Mail Server on the same machine that I am hosting the
websites on. We've been getting alot of virus emails going through the
system lately so I set everybody up to a limit of 20 outgoing emails per
account per hour.

When I logged in to Kerio to clear the mail queue of any virus infected
emails, I went over the logs and saw that Kerio was also applying its limit
of 20 per hour to the SMTP server in IIS as well

I created a new ASP and tried sending 30 emails with a FOR...NEXT loop and
sure enough 10 were left in the queue and any new ones I created just sat
there adding to the queue. When I removed the restriction from Kerio the
SMTP queue cleared out and when I reran the ASP page all 30 emails went
through right away.

Thanks for the help and advice... I will switch all my code over shortly to
use CDO as well, instead of CDONTS. Thanks for pointing that out to me

Clint




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Work conditions at Canon doesn't sit well with some employees ASAAR Digital Photography 8 06-03-2009 10:45 AM
70-216 - To sit, or not to sit.... Sean MCSA 4 07-06-2005 05:25 PM
Failure for delivering mails with server.CreateObject("cdonts.newmail") haode ASP General 0 08-31-2004 07:41 AM
converting Mozilla mails into Outlook Express mails Martin Geers Firefox 1 07-17-2004 01:11 AM
CDONTS HTML mails with images Yan ASP General 2 05-06-2004 08:30 AM



Advertisments