Skip to main content
July 13, 2016
Question

Alert and notification

  • July 13, 2016
  • 11 replies
  • 4647 views

Hi ,

I want to send an alert in the following format to the recipient. We are using mail server extension

Dear abc@gmail.com,


An alert has been triggered from gmail which requires your attention. Please see below for details of the alert.


king: abc

Rose: abc fdeg


asdf: First Pass

Met: <40%

trpu: 32%

Time: 2016-July-12 11:15:01

Recipients: abc@gmail.com,def@gmail.com


This is an auto-generated email  that does not accept responses. For more detailed information, login to sc.abc.com/*aditya. If you require additional help, please reach out to your leader or submit a ticket here.

Thanks,

Aditya Kumar

    11 replies

    July 13, 2016

    Please give the answer asap.

    5-Regular Member
    July 13, 2016

    Aditya,

    Please provide additional information on what you are trying to do and what you have implemented thus far. Have you created the Alert yet, have you constructed the custom service that will generate that message in that format? Where are you trying to pull those values from you've cited in the message?

    Thanks,

    Meghan

    July 13, 2016

    Hi Megan,

    Yes we have created the alert and the alert is also going. We were only sending "Alert" to the recepients.

    But, now we have to send all the below details:

    Dear abc@gmail.com,


    An alert has been triggered from gmail which requires your attention. Please see below for details of the alert.


    king: abc

    Rose: abc fdeg


    asdf: First Pass

    Met: <40%

    trpu: 32%

    Time: 2016-July-12 11:15:01

    Recipients: abc@gmail.com,def@gmail.com


    This is an auto-generated email  that does not accept responses. For more detailed information, login to sc.abc.com/*aditya. If you require additional help, please reach out to your leader or submit a ticket here.

    July 13, 2016

    That to in the same format mentioned above.

    Font should also be same. How to configure in the service

    1-Visitor
    July 14, 2016

    Hi Aditya,

    You can't write HTML code directly on the scripting box, you should write it on a String, something like this:

    var myHTML = "<html><head></head><body>\

    <h1>Title</h1>\

    Content bla bla bla <i>italic</i>\

    </body></html>";

    the use myHTML to pass as the parameter on the mail extension.

    5-Regular Member
    July 14, 2016

    Exactly.

    July 14, 2016

    Thanks Meghan and Carles.

    It is working now.

    1-Visitor
    April 21, 2017

    Hi Aditya,

    How did you manage to configure your alert to send messages? Please explain. I created an alert on a property. And my mail is also configured.

    Thanks,

    Wasim

    5-Regular Member
    April 21, 2017

    Hi Wasim Ahmed​,

    Create a subscription to subscribe to this alert. In the Subscription code; use the SendMessage service of the mail Thing to send the mail.

    Do let me know if you face any issue.