Support » Plugin: Catchers Helpdesk and Ticket system for Support » Can’t send email whet new ticket added

  • Hi, I want to use this function to sent notification when new ticket is added. Unfortunetely is doesn’t work. I checked it with wordpress post by changing ‘publish_stgh_ticket’ to ‘publish_post’ and it worked perfect. Please help me solve this problem.

    function stgh_ticket_published_notification( $ID, $post ) {
        $name = "My name";
        $email = "test@test.test";
        $title = $post->post_title;
    
        $to[] = sprintf( '%s <%s>', $name, $email );
        $subject = sprintf( 'Ticket: %s', $title );
        $message = sprintf ('New ticket ā€œ%sā€ added.' . "\n\n", $title );
        $headers[] = '';
        wp_mail( $to, $subject, $message, $headers );
    }
    add_action( 'publish_stgh_ticket', 'stgh_ticket_published_notification', 10, 2 );
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author mycatchers

    (@mycatchers)

    Hi, Sebastian

    We have this options in our plugin. All you need is just turn on the special check box in settings (notifications tab).

    Please let me know if you have any questions here in our helpdesk.

    Marti from Catchers

    Plugin Author mycatchers

    (@mycatchers)

    if an agent creates a new ticket – you can choose the option from the right sidebar:

    Sending options:
    – not send
    – notify contact
    – send to contact

    Thanks for help I found a problem. I chosen user with the same “Display name publicly as” šŸ™‚
    I have another problem.
    Can I display column “Assigned To” for other users with role admin. I was trying use plugin “Admin Columns” but it show column with empty cell

    Plugin Author mycatchers

    (@mycatchers)

    Hi, Sebastian

    Please write us here in our helpdesk.

    DO you mean column on the ticket list page? It didn’t depends on user role. It can be set up by screen options.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t send email whet new ticket added’ is closed to new replies.