Function __global->send_ticket_email

Definitions

sources/tickets2.php

  • Send an e-mail notification for a new post in a support ticket, either to the staff or to the ticket's owner.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$ticket_id string No No required parameter N/A N/A The ticket ID
$title LONG_TEXT No No required parameter N/A N/A The ticket title
$post LONG_TEXT No No required parameter N/A N/A The ticket post's content
$ticket_url mixed No No required parameter N/A N/A The home URL (to view the ticket) (URLPATH or Tempcode URL)
$uid_email EMAIL No No Blank (empty string) N/A N/A Ticket owner's e-mail address, in the case of a new ticket
$ticket_type_id_if_new ?AUTO_LINK No No Null N/A N/A The new ticket type (null: it is a reply to an existing ticket)
$new_poster ?MEMBER No No Null N/A N/A Posting member (null: current member)
$auto_created boolean No No False N/A N/A Whether the ticket was auto-created

Preview

Code (PHP)

/**
 * Send an e-mail notification for a new post in a support ticket, either to the staff or to the ticket's owner.
 *
 * @param  string $ticket_id The ticket ID
 * @param  LONG_TEXT $title The ticket title
 * @param  LONG_TEXT $post The ticket post's content
 * @param  mixed $ticket_url The home URL (to view the ticket) (URLPATH or Tempcode URL)
 * @param  EMAIL $uid_email Ticket owner's e-mail address, in the case of a new ticket
 * @param  ?AUTO_LINK $ticket_type_id_if_new The new ticket type (null: it is a reply to an existing ticket)
 * @param  ?MEMBER $new_poster Posting member (null: current member)
 * @param  boolean $auto_created Whether the ticket was auto-created
 */

function send_ticket_email(string $ticket_id, string $title, string $post, $ticket_url, string $uid_email = '', ?int $ticket_type_id_if_new = null, ?int $new_poster = null, bool $auto_created = false)