Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Exception when sending mail
Hello, my webhost is somehow sending a (nonstandard?) message, when a
mailbox is full the message doesn't even get sent and i get a small
window in any MUA telling me that the mailbox is full, instead of
letting the mail go through and then send back a message with the
error.

This behaviour is causing classic asp's mail send object to fail
without any details of the error.

Is there a way for me to avoid this error and continue processing the
asp page? I only know of the "on error resume next" method, but if i
do that, it will not catch the other possible errors and redirect to
my error 500 page.

Report this thread to moderator Post Follow-up to this message
Old Post
Seguros Catatumbo
03-18-08 11:57 PM


Re: Exception when sending mail
"Seguros Catatumbo" <seguroscatatumbo@gmail.com> wrote in message
news:829b869d-a33d-45b6-bebb-de6d6b88bb13@x30g2000hsd.googlegroups.com...
> Hello, my webhost is somehow sending a (nonstandard?) message, when a
> mailbox is full the message doesn't even get sent and i get a small
> window in any MUA telling me that the mailbox is full, instead of
> letting the mail go through and then send back a message with the
> error.
>
> This behaviour is causing classic asp's mail send object to fail
> without any details of the error.
>
> Is there a way for me to avoid this error and continue processing the
> asp page? I only know of the "on error resume next" method, but if i
> do that, it will not catch the other possible errors and redirect to
> my error 500 page.


I'm a little  by the above description.  If the send fails without
any details does that mean there isn't even an error number?  If there is no
error thrown on error resume next wouldn't make any difference anyway.

Can you provide more detail and perhaps a little code?



--
Anthony Jones - MVP ASP/ASP.NET



Report this thread to moderator Post Follow-up to this message
Old Post
Anthony Jones
03-18-08 11:57 PM


Re: Exception when sending mail

>
> I'm a little  by the above description. =A0If the send fails witho=[/color
]
ut
> any details does that mean there isn't even an error number? =A0If there i=[/color
]
s no
> error thrown on error resume next wouldn't make any difference anyway.

The http erros is 500, but there doesn't seem to be an asp error
number.
This is some of the code i have on my errorpage.asp (that is used when
error 500 happens)

set objError =3D Server.getLastError()
number =3D objError.AspCode
tipo =3D objError.Category
descripcion =3D objError.Description
linea =3D ObjError.Line
iis =3D ObjError.ASPDescription


All of those but the line number are blank/empty when this error
occurs.

The line number reveals that the problem happens on the send() method
to send email:

Set myMail=3DCreateObject("CDO.Message")
if IsObject(myMail) then
[...]
myMail.Send
set myMail=3Dnothing
end if

That only happens when the TO address has a full mailbox. I noticed
that if i send mail to that mailbox from thunderbird, the message does
not get sent because a modal window appears with the message that the
mailbox has exceeded the limit. So i thought that since the message
isn't being sent, the send() method does not know what to do.

Report this thread to moderator Post Follow-up to this message
Old Post
Seguros Catatumbo
03-18-08 11:57 PM


Re: Exception when sending mail
"Seguros Catatumbo" <seguroscatatumbo@gmail.com> wrote in message
news:f3699c4a-819a-4e33-97cb-202727ab3b9c@u69g2000hse.googlegroups.com...
 
>
> I'm a little  by the above description. If the send fails without
> any details does that mean there isn't even an error number? If there is
no
> error thrown on error resume next wouldn't make any difference anyway.

The http erros is 500, but there doesn't seem to be an asp error
number.
This is some of the code i have on my errorpage.asp (that is used when
error 500 happens)

set objError = Server.getLastError()
number = objError.AspCode
tipo = objError.Category
descripcion = objError.Description
linea = ObjError.Line
iis = ObjError.ASPDescription
<<<<<

Where is the above code?  In a custom error page?  It would only make sense
in a 500;100 custom error page which indicates a script error.

I find it rare for the AspCode to be helpful.  Try using .Number.  If the
error is raised by the script then Number should be non-zero. What is it?
 

All of those but the line number are blank/empty when this error
occurs.

The line number reveals that the problem happens on the send() method
to send email:

Set myMail=CreateObject("CDO.Message")
if IsObject(myMail) then
[...]
myMail.Send
set myMail=nothing
end if

That only happens when the TO address has a full mailbox. I noticed
that if i send mail to that mailbox from thunderbird, the message does
not get sent because a modal window appears with the message that the
mailbox has exceeded the limit. So i thought that since the message
isn't being sent, the send() method does not know what to do.
<<<<

Send is most likely throwing a standard error.  Its a little weird that
there doesn't appear to be any description to it.

--
Anthony Jones - MVP ASP/ASP.NET



Report this thread to moderator Post Follow-up to this message
Old Post
Anthony Jones
03-19-08 08:57 AM


Re: Exception when sending mail

> Where is the above code? =A0In a custom error page? =A0It would only make =[/color
]
sense
> in a 500;100 custom error page which indicates a script error.

It's configured on IIS as http error 500, not 500,100 or any other.
Just 500.

> I find it rare for the AspCode to be helpful. =A0Try using .Number. =A0If =[/color
]
the
> error is raised by the script then Number should be non-zero. What is it?

I am now also saving .number in the error page. I will be watching for
where this happens again.

> Send is most likely throwing a standard error. =A0Its a little weird that
> there doesn't appear to be any description to it.

Sometimes i get errors that are completely blank, except for "line: 0"

C=F3digo de Error: objError.aspcode
Tipo: objError.Category
P=E1gina: objError.File
Descripci=F3n:objError.Description
C=F3digo: Server.HTMLEncode(objError.Source)
Line: 0
N=FAmero de Error: ObjError.ASPDescription

I have no idea on what causes those. There are no session variables
set, or anything else, not even a referer

Report this thread to moderator Post Follow-up to this message
Old Post
Seguros Catatumbo
03-24-08 11:56 PM



Thousands of MP3s are waiting for you at http://mp3files4free.com/

Our new hits:
"MC Solaar - Wonderbra" free mp3 download
"Electronic - Variou
s Artists - Catch Up To My Step (Junkie XL feat. Solomon Burke)" free mp3 download

"Classical - Va
rious Artists - Never On Sunday (Yannis Paradakis and Parakkevas Grekis)" free mp3
 download
"Goa - Various Artists - Feel The Love (E&B Project
)" free mp3 download
"Drum & Bass - Various Artists - Search
 and Rescue (Do the Math)" free mp3 download
"Method Man - Cradle Rock" free mp3 download
"Brother's Keeper - Someone's Gonna Die Tonight" free m
p3 download
"Latin - Various Artists - Caramelos Amaya" free mp3 downl
oad
"Panjabi MC - Ghalia Gurian" free mp3 download
"Die Streuner - Im tiefen Keller" free mp3 download
"Miroslav Vitous and Jan Garbarek - Diversion" free mp3
 download
"Dream Theater - The Killing Hand" free mp3 download
"Creedence Clearwater Revival - Tombstone Shadow" fr
ee mp3 download
"Bizet, Georges - L'Arlesienne Suite 2 - Farandole" 
free mp3 download
"20t
h Century Fox Sound Effects - Truck, Military, Army Truck Interior- Start, Drive, 
Grinding Gears" free mp3 download
"Jim Wilson and Little Wolf Band - Wolf Moon" free mp3 d
ownload
"Leaether Strip - Til Far" free mp3 download
"Metal Church - Flee From Reality" free mp3 download
"Pop - Various Artists - Right here right n
ow-Fatboy slim" free mp3 download
"Hank Mobley - Beverly" free mp3 download
"Easy Listening - Various Artists - New Snow" free mp3 d
ownload
"Motley Crue - Shout At The Devil" free mp3 download
"Enigma - Gravity Of Love (Dark Vocal Club Mix)" free m
p3 download
"Deeds Of Flesh - Ritual Of Battle" free mp3 download

Report this thread to moderator Post Follow-up to this message
Old Post
Marsh7
04-08-08 04:51 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 10:52 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.