|
 This accout has been deleted
|
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
|
|
 This accout has been deleted
|
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)
|
|
W.B. van Glabbeek
 Veteran
  Posts: 132
Joined: 8/31/2010
Location: the Netherlands
User Profile |
I finally got email to work! Thanks to this script.
Thanks,
|
|
 This accout has been deleted
|
graag gedaan!
|
|
Buffalo
 Elite
  Posts: 603
Joined: 7/11/2007
Location: Braintree, MA
User Profile |
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
|
|
Jim Thorpe
 Member
Posts: 20
Joined: 1/24/2009
Location: Suwanee, GA
User Profile |
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
|
|
Buffalo
 Elite
  Posts: 603
Joined: 7/11/2007
Location: Braintree, MA
User Profile |
nice idea - thanks!
|
|
Serge
 New User
Posts: 2
Joined: 7/17/2011
Location: Montreal, Qc, Canada
User Profile |
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
|