daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //готовим и отправляем письмо исполнителю
  2. $EmailSubject_Exec = "For executive. Ticket №$tmp_number_ticket";
  3.  
  4. $UserHeaders_Exec = "From: ECS Tickets <$tmp_user_email>\r\n";
  5. $UserHeaders_Exec .= "Reply-To: ECS Tickets <$tmp_user_email>\r\n";
  6. $UserHeaders_Exec .= "X-Mailer: PHP\r\n";
  7. $UserHeaders_Exec .= "MIME-Version: 1.0\r\n";
  8. $UserHeaders_Exec .= "Content-Type: text/html; charset=utf-8\r\n";
  9. $UserHeaders_Exec .= "Content-Transfer-Encoding: 8bit\r\n";
  10.  
  11. $UserMessage_Exec = '<font color="green"><b>Вы назначены исполнителем заявки.</b></font><br><br>';
  12. $UserMessage_Exec .= 'Номер заявки: №<b>'.$tmp_number_ticket.'</b> (<a href="'.$urldir.'/detailticket.php?viewticket='.$tmp_number_ticket.'" target="_blank">подробнее...</a>)<br>';
  13. $UserMessage_Exec .= 'Автор заявки: <b>'.$tmp_author_ticket.'</b><br>';
  14. $UserMessage_Exec .= 'Тема заявки: <b>'.$tmp_subject_ticket.'</b><br>';
  15. $UserMessage_Exec .= '<b>Состав заявки:</b> '.$tmp_message_ticket.'<br>';
  16. $UserMessage_Exec .= '<br>__________<br><a href="'.$urldir.'" target="_blank">Система заявок</a> | <a href="'.$urldir.'/index.php?action=help" target="_blank">Помощь по системе</a><br>';
  17. mail($executive, '=?UTF-8?B?'.base64_encode($EmailSubject_Exec).'?=', $UserMessage_Exec, $UserHeaders_Exec);
  18.  
  19. //отправляем письмо автору
  20. $UserMessage_Exec2 = '<font color="green"><b>Назначен исполнитель вашей заявки.</b></font><br><br>';
  21. $UserMessage_Exec2 .= 'Исполнитель заявки: '.$tmp_get_executive_fio_ticket.'<br>';
  22. $UserMessage_Exec2 .= 'Номер заявки: №<b>'.$tmp_number_ticket.'</b> (<a href="'.$urldir.'/detailticket.php?viewticket='.$tmp_number_ticket.'" target="_blank">подробнее...</a>)<br>';
  23. $UserMessage_Exec2 .= 'Тема заявки: <b>'.$tmp_subject_ticket.'</b><br>';
  24. $UserMessage_Exec2 .= '<b>Состав заявки:</b> '.$tmp_message_ticket.'<br>';
  25. $UserMessage_Exec2 .= '<br>__________<br><a href="'.$urldir.'" target="_blank">Система заявок</a> | <a href="'.$urldir.'/index.php?action=help" target="_blank">Помощь по системе</a><br>';
  26. if($tmp_subscribers_emaillist != '') { $tmp_authoremail_ticket .= $tmp_subscribers_emaillist; }
  27. mail($tmp_authoremail_ticket, '=?UTF-8?B?'.base64_encode($EmailSubject_Exec).'?=', $UserMessage_Exec2, $UserHeaders_Exec);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top