예제 #1
0
<?php

require_once '_init.php';
$mail = new ManageMailQueue($container_options, $mail_options);
$mail->from = isset($_REQUEST['from']) ? $_REQUEST['from'] : '{admin_from}';
$mail->fromName = isset($_REQUEST['fromName']) ? $_REQUEST['fromName'] : '{admin_from_name}';
$mail->recipient = isset($_REQUEST['recipient']) ? $_REQUEST['recipient'] : '{admin_from}';
$mail->recipientName = isset($_REQUEST['recipientName']) ? $_REQUEST['recipientName'] : '{admin_from_name}';
$mail->messageHtml = isset($_REQUEST['messageHtml']) ? $_REQUEST['messageHtml'] : '{admin_html_message}';
$mail->messageTxt = isset($_REQUEST['messageTxt']) ? $_REQUEST['messageTxt'] : '{admin_txt_message}';
$mail->subject = isset($_REQUEST['subject']) ? $_REQUEST['subject'] : '{admin_subject}';
$mail->sendHtml = true;
$mail->sendTxt = true;
$mail->addByCustomParams();
header("Location: ../index.php");