Author Topic: E-mail  (Read 1755 times)

Tags:
  • All members
  • Posts: 207
E-mail
« on: 17 Dec 2017, 19:56 »
Hi
Can anybody change this so that the e-mail trigger at the end fires.
I have the e-mail settings saved and working correctly.
Thanks
Mike

  • Moderator
  • Posts: 3597
*
Re: E-mail
« Reply #1 on: 17 Dec 2017, 20:54 »
Hi
The email trigger's market status should be: settled (and you should not delete settled markets in the settings, at least not the first few)
Your variables need to be enclosed in [square brackets]
If it's the winner name, that should be ["winner_name"]
I suggest in place of [profit_loss] use [market_settled_pl]

Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 207
Re: E-mail
« Reply #2 on: 20 Dec 2017, 14:25 »
Excellent many thanks, I have it working fine now.
Just one last question is there any way to force each variable to a new line on the e-mail
such as
Winner [winner_name]
SP [actual_sp]
Mike

  • Moderator
  • Posts: 3597
*
Re: E-mail
« Reply #3 on: 21 Dec 2017, 08:42 »
Hi
I don't know on that question. I've tried CR LF codes etc. with no success. I agree it would be good to be able to force new lines in the email text. Perhaps Oxa can advise?
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 207
Re: E-mail
« Reply #4 on: 23 Dec 2017, 13:51 »
Thanks for the reply
If you structure the message as a web page it works for example I put

<html><head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8"><style>body, p, td {font-family: Arial; font-size: 14pt;}</style></head><body bgcolor="#f0f0f0"><p>
<b>A trigger named Back Selection has been executed. Details of trigger:</p><p>Going to <b>Back at SP</b> on 1 selections:<p>
Liability [back_amount] on [sel_name].
</font></body></html>


So as in web structure you set the header.
Then you can write anything you like with the usual
<p> and <b> instructors you use in web pages.
Then copy and paste the lot into the message box.

Mike

  • Moderator
  • Posts: 3597
*
Re: E-mail
« Reply #5 on: 23 Dec 2017, 15:27 »
Hi Mike
That is splendid, tried it and works a treat.
Cheers and Happy Christmas
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 207
Re: E-mail
« Reply #6 on: 23 Dec 2017, 15:32 »
Hi
Great to be of help
Merry Christmas and a Happy and Prosperous New Year to you and yours
Mike

 

Please note, BetFair is seems to be currently OFFLINE