🔴 January 2024 Alert: Forum support inactive!
New forum registration are currently closed.
Use GitHub discussions
.

    UVdesk

    • Login
    • Search
    • Recent

    Solved Ticket Message in generated mails

    Technical Help
    2
    3
    318
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Stef last edited by

      Hello all,

      I've a little problem with the generated emails to the agents.
      My version is 1.0.18 (the problem, I think, was already there in 1.0.16).

      I use the following placeholder:

      *Here goes the ticket message:

      {%ticket.message%}*

      But the resulting mail doesn't contain the message (the message in well present int the ticket):

      bdfa4254-4124-431c-bd2d-02876f233c71-image.png

      Thanks in advance

      Stéphane

      1 Reply Last reply Reply Quote 0
      • Sanjeev
        Sanjeev developer UVdesk Staff last edited by

        @Stef

        You can use {%ticket.threadMessage%} fo this.

        1 Reply Last reply Reply Quote 0
        • S
          Stef last edited by

          For info, I replaced

          'ticket.message' => count($ticket->getThreads()) > 0 ? preg_replace("/<img[^>]+\>/i", "", $ticket->getThreads()->get(0)->getMessage()) : '',
          

          by

          'ticket.message' => (isset($ticket->createdThread)) ? $ticket->createdThread->getMessage() : ''
          

          and now, the message is present in the mail when creating a ticket.
          (in ./vendor/uvdesk/core-framework/Services/EmailService.php)

          1 Reply Last reply Reply Quote 0
          • Sanjeev
            Sanjeev developer UVdesk Staff last edited by

            @Stef

            You can use {%ticket.threadMessage%} fo this.

            1 Reply Last reply Reply Quote 0
            • Topic has been marked as solved  peopleinside peopleinside 
            • First post
              Last post