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.


  Current location        Thread information  
OmniTrader Professional Forum
Omni Pilot Discussion
Op and Email
Last Activity 4/26/2019 10:38 PM
7 replies, 3409 viewings

Jump to page : 1
Now viewing page 1 [25 messages per page]
 
back reply
Printer friendly version

^ Top


This accout has been deleted
 
Subject : Op and Email
Posted : 4/4/2011 3:37 AM
Post #18534

When I run OP, it is supposed to send an email on order and the brokerage overview. However, OP seems to fail in sending emails. It does give the error message that it fails to send a mail and even tries to resend. I have tried both Av and firewall truned of but that does not seem the issue. OP should only send a few emails a day, so it should not hit the 100 mails limitation. Does anyone has the same problem?
Thanks
Gijsberth
^ Top


This accout has been deleted
 
Subject : RE: Op and Email
Posted : 4/10/2011 7:02 AM
Post #18565 - In reply to #18534

I have finally solve this issue by modifying the SendGmail action as provided by Matt in the past. Attached the updated file. I have not yet cleaned out the unnecesary code... but it works. I have basically changed the smtp server to my ISP 'free' smtp server. Now it works. NS could at this to the standard set-up.
Attached file : modGmail.txt (0KB - 456 downloads)

^ Top
W.B. van Glabbeek

Veteran
10025
Posts: 132

Joined: 8/31/2010
Location: the Netherlands

User Profile
 
Subject : RE: Op and Email
Posted : 2/7/2012 2:48 AM
Post #20513 - In reply to #18534

I finally got email to work! Thanks to this script.

Thanks,
^ Top


This accout has been deleted
 
Subject : RE: Op and Email
Posted : 2/7/2012 2:49 AM
Post #20514 - In reply to #18534

graag gedaan!
^ Top
Buffalo

Elite
500100
Posts: 603

Joined: 7/11/2007
Location: Braintree, MA

User Profile
 
Subject : RE: Op and Email
Posted : 2/7/2012 11:33 AM
Post #20517 - In reply to #20514

one of the fatal flaws in OP is if the email function fails OP completely stops working for you. If you turn off the email option it will go away, but then you lose that valuable resource
^ Top
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
^ Top
Buffalo

Elite
500100
Posts: 603

Joined: 7/11/2007
Location: Braintree, MA

User Profile
 
Subject : RE: Op and Email
Posted : 2/7/2012 3:10 PM
Post #20519 - In reply to #20518

nice idea - thanks!
^ Top
Serge

New User

Posts: 2

Joined: 7/17/2011
Location: Montreal, Qc, Canada

User Profile
 
Subject : RE: Op and Email
Posted : 2/11/2012 4:49 PM
Post #20540 - In reply to #18534

I was missing Post #15636: Send email through Gmail server

I had to add the Port 587 before the smtp
oEmail.Port = 587
oEmail.Host = "smtp.mail.com"
Now it works verry well


Jump to page : 1
Now viewing page 1 [25 messages per page]
back reply

Legend    Action      Notification  
Administrator
Forum Moderator
Registered User
Unregistered User
E-Mail this thread to a friend
Toggle e-mail notification


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