.NETGURU
SV: Re: Catching SmtpMail Exceptions?
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-mail' list.


=?iso-8859-1?Q?Andr=E9_Colbi=F6rnsen?=
Well I have tried to use this (VB.Net):

                Try
                    SmtpMail.Send( objMailMessage )
                Catch exMail As SmtpException
                    ''//Do this
                Finally
                    ''//Do that

                End Try

But of course this doen't work. I have looked for error handling of
SmtpMail in the documentation but havn't found any.
    =09

Regards/H=E4lsningar

Andr=E9 Colbi=F6rnsen
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D
Sonnenburg Communications
Bergsgatan 3,
SE-211 54 Malm=F6
Sweden
Tel.: +46-(0)40-97 78 80
Fax.: +46-(0)40-97 78 80
Mob.: +46-(0)708-97 78 79
Mail: Click here to reveal e-mail address
Web.: www.sonnenburg.se
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D

-----Ursprungligt meddelande-----
Fr=E5n: dave wanta [mailto:Click here to reveal e-mail address]=20
Skickat: den 10 april 2002 21:23
Till: ngfx-mail
=C4mne: [ngfx-mail] Re: Catching SmtpMail Exceptions?

what type of exception are you seeing?

Can you just write a try{} catch{} block around it?

----- Original Message -----
From: "Andr=E9 Colbi=F6rnsen" <Click here to reveal e-mail address>
To: "ngfx-mail" <Click here to reveal e-mail address>
Sent: Wednesday, April 10, 2002 1:40 PM
Subject: [ngfx-mail] Catching SmtpMail Exceptions?

> -- Moved from [aspngfreeforall] to [ngfx-mail] by Marcie Jones
<Click here to reveal e-mail address> --
[Original message clipped]

3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D
=3D3D=3D
[Original message clipped]

3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D
=3D3D=3D
[Original message clipped]

| [ngfx-mail] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.aspfriends.com/aspfriends/ngfx-mail.asp =3D JOIN/QUIT

Reply to this message...
 
    
Brad Kingsley
What exception is getting thrown but not caught?

~Brad Kingsley
Microsoft MVP - ASP
Windows 2000 MCSE

http://www.orcsweb.com/
Windows 2000 Advanced Hosting
#1 in Service and Support

----- Original Message -----
From: "André Colbiörnsen" <Click here to reveal e-mail address>
To: "ngfx-mail" <Click here to reveal e-mail address>
Sent: Wednesday, April 10, 2002 3:35 PM
Subject: [ngfx-mail] SV: Re: Catching SmtpMail Exceptions?

Well I have tried to use this (VB.Net):

Try
SmtpMail.Send( objMailMessage )
Catch exMail As SmtpException
''//Do this
Finally
''//Do that

End Try

But of course this doen't work. I have looked for error handling of
SmtpMail in the documentation but havn't found any.

Regards/Hälsningar

André Colbiörnsen
================================
Sonnenburg Communications
Bergsgatan 3,
SE-211 54 Malmö
Sweden
Tel.: +46-(0)40-97 78 80
Fax.: +46-(0)40-97 78 80
Mob.: +46-(0)708-97 78 79
Mail: Click here to reveal e-mail address
Web.: www.sonnenburg.se
================================

-----Ursprungligt meddelande-----
Från: dave wanta [mailto:Click here to reveal e-mail address]
Skickat: den 10 april 2002 21:23
Till: ngfx-mail
Ämne: [ngfx-mail] Re: Catching SmtpMail Exceptions?

what type of exception are you seeing?

Can you just write a try{} catch{} block around it?

----- Original Message -----
From: "André Colbiörnsen" <Click here to reveal e-mail address>
To: "ngfx-mail" <Click here to reveal e-mail address>
Sent: Wednesday, April 10, 2002 1:40 PM
Subject: [ngfx-mail] Catching SmtpMail Exceptions?

> -- Moved from [aspngfreeforall] to [ngfx-mail] by Marcie Jones
<Click here to reveal e-mail address> --
[Original message clipped]

=3D=
[Original message clipped]

=3D=
[Original message clipped]

| [ngfx-mail] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-mail.asp = JOIN/QUIT

| [ngfx-mail] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-mail.asp = JOIN/QUIT
---
[This E-mail scanned for viruses by Declude Virus]

---
[This E-mail scanned for viruses by Declude Virus]

Reply to this message...
 
 
System.Web.Mail.SmtpMail




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification