|
 |
asp_cdo thread: Error sending mail using CDONTS
Message #1 by Jon Sidnell <jon.sidnell@b...> on Fri, 14 Jun 2002 09:36:26 +0100
|
|
Hi
I'm creating a feedback form for an intranet site using ASP and CDONTS
to send the mail. In testing it, it would appear that CDONTS is a little bit
tempramental, only sending emails when it wants to. Sometimes it will send
the email, other times it has an error showing up on line 22 of the script.
This line is:
objMail.Send
which is the line that sends the email. The error number given is error
'80070020'. There's no rhyme or reason in this - sometimes the sending ASP
page will work first time, others it needs refreshing anything up to 7 or 8
times before it sends the email. Does anyone know what that error is, and
most importantly how to solve it? I've searched all over the internet, and
there's nothing about it anywhere - not even on the Microsoft site.
Cheers
Jon Sidnell
This message and any attachments (the "message") are intended solely
for the addressees and are confidential. If you receive this message
in error, please delete it and immediately notify the sender.
Any use not in accord with its purpose, any dissemination or
disclosure, either whole or partial, is prohibited except formal
approval.
The internet can not guarantee the integrity of this message.
BNP PARIBAS LEASE GROUP PLC (and its subsidiaries)
shall (will) not therefore be liable for the message if modified.
Message #2 by "Grundy, Martin" <martin.grundy@s...> on Fri, 14 Jun 2002 11:01:22 +0100
|
|
Jon,
Have you tried:
http://p2p.wrox.com/archive/asp_cdo/2001-11/11.asp
Martin Grundy
Technical Consultant and Webmaster
Telephone +44 (0) 1256 685314
> ----------
> From: Jon Sidnell[SMTP:jon.sidnell@b...]
> Reply To: ASP CDO
> Sent: 14 June 2002 09:36
> To: ASP CDO
> Subject: [asp_cdo] Error sending mail using CDONTS
>
> Hi
>
> I'm creating a feedback form for an intranet site using ASP and CDONTS
> to send the mail. In testing it, it would appear that CDONTS is a little
> bit
> tempramental, only sending emails when it wants to. Sometimes it will
> send
> the email, other times it has an error showing up on line 22 of the
> script.
> This line is:
>
> objMail.Send
>
> which is the line that sends the email. The error number given is error
> '80070020'. There's no rhyme or reason in this - sometimes the sending
> ASP
> page will work first time, others it needs refreshing anything up to 7 or
> 8
> times before it sends the email. Does anyone know what that error is, and
> most importantly how to solve it? I've searched all over the internet, and
> there's nothing about it anywhere - not even on the Microsoft site.
>
> Cheers
> Jon Sidnell
>
> This message and any attachments (the "message") are intended solely
> for the addressees and are confidential. If you receive this message
> in error, please delete it and immediately notify the sender.
>
> Any use not in accord with its purpose, any dissemination or
> disclosure, either whole or partial, is prohibited except formal
> approval.
>
> The internet can not guarantee the integrity of this message.
> BNP PARIBAS LEASE GROUP PLC (and its subsidiaries)
> shall (will) not therefore be liable for the message if modified.
>
>
Disclaimer:
Internet communications are not secure and therefore SSI does not accept legal responsibility for the contents of this message.
Statements of fact are not binding unless confirmed by letter signed by an authorised signatory of SSI. Any views and opinions
expressed are solely those of the author and do not necessarily represent those of SSI unless explicitly stated
Message #3 by Jon Sidnell <jon.sidnell@b...> on Fri, 14 Jun 2002 11:50:11 +0100
|
|
Thanks for that. I've updated the code to use CDO instead of CDONTS and it
is more reliable, but still too frequently throws up the same error. This
time, the error is described a bit more:
"CDO.Message.1 error '80070020'
The process cannot access the file because it is being used by another
process.
/sendcomments.asp, line 22 "
My email code is:
Dim objMail
Set objMail = Server.CreateObject("CDO.Message")
objMail.From = FromAddress
objMail.Subject = "Intranet Feedback: " & UserSubject
objMail.To = "jon.sidnell@b..."
objMail.TextBody = "From: " & FromName & vbcrlf&_
UserComments
objMail.Send
set objMail = nothing
Is there anything people can see wrong with that code, or is this a problem
that needs sorting server-side?
Jon
-----Original Message-----
From: Grundy, Martin [mailto:martin.grundy@s...]
Sent: 14 June 2002 11:01
To: ASP CDO
Subject: [asp_cdo] RE: Error sending mail using CDONTS
Jon,
Have you tried:
http://p2p.wrox.com/archive/asp_cdo/2001-11/11.asp
Martin Grundy
Technical Consultant and Webmaster
Telephone +44 (0) 1256 685314
This message and any attachments (the "message") are intended solely
for the addressees and are confidential. If you receive this message
in error, please delete it and immediately notify the sender.
Any use not in accord with its purpose, any dissemination or
disclosure, either whole or partial, is prohibited except formal
approval.
The internet can not guarantee the integrity of this message.
BNP PARIBAS LEASE GROUP PLC (and its subsidiaries)
shall (will) not therefore be liable for the message if modified.
Message #4 by "Aaron Fleming" <aaronf@w...> on Fri, 14 Jun 2002 07:11:32 -0400
|
|
Could we take a look at the code?
Aaron Fleming
www.webpartz.com
----- Original Message -----
From: "Jon Sidnell" <jon.sidnell@b...>
To: "ASP CDO" <asp_cdo@p...>
Sent: Friday, June 14, 2002 4:36 AM
Subject: [asp_cdo] Error sending mail using CDONTS
> Hi
>
> I'm creating a feedback form for an intranet site using ASP and CDONTS
> to send the mail. In testing it, it would appear that CDONTS is a little
bit
> tempramental, only sending emails when it wants to. Sometimes it will
send
> the email, other times it has an error showing up on line 22 of the
script.
> This line is:
>
> objMail.Send
>
> which is the line that sends the email. The error number given is error
> '80070020'. There's no rhyme or reason in this - sometimes the sending
ASP
> page will work first time, others it needs refreshing anything up to 7 or
8
> times before it sends the email. Does anyone know what that error is, and
> most importantly how to solve it? I've searched all over the internet, and
> there's nothing about it anywhere - not even on the Microsoft site.
>
> Cheers
> Jon Sidnell
>
> This message and any attachments (the "message") are intended solely
> for the addressees and are confidential. If you receive this message
> in error, please delete it and immediately notify the sender.
>
> Any use not in accord with its purpose, any dissemination or
> disclosure, either whole or partial, is prohibited except formal
> approval.
>
> The internet can not guarantee the integrity of this message.
> BNP PARIBAS LEASE GROUP PLC (and its subsidiaries)
> shall (will) not therefore be liable for the message if modified.
>
Message #5 by "Siegfried Weber" <sweber@c...> on Sat, 15 Jun 2002 20:39:16 +0200
|
|
I think this is a known but yet undocumented bug if submitting messages
via the local pickup very quickly. Basically each mail you submit to the
pickup dir creates a .EML file with a unique ID. Issue is that under
stress the ID is not unique.
Workaround is to use the SMTP server port to submit the message. Check
another post I just made a couple of minutes ago for a code snippet.
<Cheers:Siegfried runat=3D"server" />
> -----Original Message-----
> From: Jon Sidnell [mailto:jon.sidnell@b...]
> Sent: Friday, June 14, 2002 12:50 PM
> To: ASP CDO
> Subject: [asp_cdo] RE: Error sending mail using CDONTS
>
> Thanks for that. I've updated the code to use CDO instead of CDONTS
and
> it
> is more reliable, but still too frequently throws up the same error.
This
> time, the error is described a bit more:
>
> "CDO.Message.1 error '80070020'
>
> The process cannot access the file because it is being used by another
> process.
>
> /sendcomments.asp, line 22 "
>
> My email code is:
>
> Dim objMail
> Set objMail =3D Server.CreateObject("CDO.Message")
>
> objMail.From =3D FromAddress
> objMail.Subject =3D "Intranet Feedback: " & UserSubject
> objMail.To =3D "jon.sidnell@b..."
> objMail.TextBody =3D "From: " & FromName & vbcrlf&_
> UserComments
>
> objMail.Send
> set objMail =3D nothing
>
> Is there anything people can see wrong with that code, or is this a
> problem
> that needs sorting server-side?
>
> Jon
>
> -----Original Message-----
> From: Grundy, Martin [mailto:martin.grundy@s...]
> Sent: 14 June 2002 11:01
> To: ASP CDO
> Subject: [asp_cdo] RE: Error sending mail using CDONTS
>
>
> Jon,
>
> Have you tried:
>
> http://p2p.wrox.com/archive/asp_cdo/2001-11/11.asp
>
> Martin Grundy
> Technical Consultant and Webmaster
> Telephone +44 (0) 1256 685314
>
> This message and any attachments (the "message") are intended solely
> for the addressees and are confidential. If you receive this message
> in error, please delete it and immediately notify the sender.
>
> Any use not in accord with its purpose, any dissemination or
> disclosure, either whole or partial, is prohibited except formal
> approval.
>
> The internet can not guarantee the integrity of this message.
> BNP PARIBAS LEASE GROUP PLC (and its subsidiaries)
> shall (will) not therefore be liable for the message if modified.
>
|
|
 |