Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
markariels  
#1 Posted : Thursday, May 31, 2012 2:18:30 PM(UTC)
markariels

Rank: Newbie

Groups: Registered
Joined: 5/27/2012(UTC)
Posts: 5
Location: My House

Thanks: 3 times
Hi guys,

Is there anyway we can capture error before the command, oSmtp.SendMail() = 0?

I'm trying to capture any error when logging in the Exchange server (oSmtp.Username and oSmtp.Password) error before doing anything.

Thanks!
ivan  
#2 Posted : Thursday, May 31, 2012 5:35:20 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,154

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
markariels wrote:
Hi guys,

Is there anyway we can capture error before the command, oSmtp.SendMail() = 0?

I'm trying to capture any error when logging in the Exchange server (oSmtp.Username and oSmtp.Password) error before doing anything.

Thanks!


Hi, I am sorry to say you cannot.

Because before you call SendMail, there is no networking connection established.
But if there is any error, SendMail method will return immediately and you can use GetLastErrDescription method to get the detail.

Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.044 seconds.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.