OmniTrader Professional Forum OmniTrader Professional Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
Jim Thorpe

Member

Posts: 20

Joined: 1/24/2009
Location: Suwanee, GA

User Profile
 
Subject : RE: Op and Email
Posted : 2/7/2012 12:02 PM
Post #20518 - In reply to #18534

Buffalo,

A possible resolution to the issue you just described would be to change the following logic to return "True" instead of "False" when an exception is encountered sending an email. This way OP will think the email was sent successfully regardless if there was a problem or not. This may be a better alternative than stopping the OP process due to an email failure.

Try
oEmail.Send(oMessage)
Catch ex As Exception
MsgBox(ex.Message)
Return True <<<< Change to True
End Try

Without seeing the calling code, I can't tell for sure this is will resolve the issue, so it would require testing to confirm.

Jim Thorpe
Deleting message 20518 : RE: Op and Email


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.