Menu

Help with email customization

Mas Axa
2024-05-10
2024-05-13
  • Mas Axa

    Mas Axa - 2024-05-10

    Hi, I'm having problems customizing emails. I would need some parts of the notification to be set dynamically, for example:

    Dear "Bruce",
    the "contractXXX" contract will expire on "30/05/2024". Please proceed with the renewal.

    I tried with $this->finalclass$ $this->name will expire on $this->enddate$ but that didn't work.

    Where can I find usable variables? I would also like to customize the sending of expiring licenses or obsolescent hardware. I also have difficulty with the recipient's email. regarding contracts I use the following OQL for contracts:

    **"SELECT Contact AS C JOIN lnkContactToContract AS L ON L.contactid=C.id
    WHERE L.contractid = :this->id"

    But if I wanted to set a static address, what should I do? For example, contacts cannot be set in the licenses. How can I have them sent to the address "example@test.it" regardless of the contract/license?

    Thanks everyone in advance for the help.

     

    Last edit: Mas Axa 2024-05-10
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2024-05-10

    I believe it's $this->end_date$ .

    The variables are based on the attitude codes. One quick (visual) way is in iTop to check out the Datamodel, and check out the specific class.

    Just create a contact with that e-mail address :)

     
    • Mas Axa

      Mas Axa - 2024-05-10

      I created the contact, could you give me an example of a structure to use?

       
      • Jeffrey Bostoen

        Jeffrey Bostoen - 2024-05-13

        What do you mean by structure? Like the one above? To use properties of the object, it's always something like $this->attcode$ - and the attribute codes: you can see them in the datamodel.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.