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!
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.
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
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.