$enable,
'emailtype' => $emailtype,
'wpemail' => $wpemail,
'phpemail' => $phpemail,
'hostname' => $hostname,
'portno' => $portno,
'smtpemail' => $smtpemail,
'password' => $password,
'send_notification_client_pending' => $send_notification_client_pending,
'subject_notification_client_pending' => $subject_notification_client_pending,
'body_notification_client_pending' => $body_notification_client_pending,
'send_notification_client_approval' => $send_notification_client_approval,
'subject_notification_client_approval' => $subject_notification_client_approval,
'body_notification_client_approval' => $body_notification_client_approval,
'send_notification_client_cancel' => $send_notification_client_cancel,
'subject_notification_client_cancel' => $subject_notification_client_cancel,
'body_notification_client_cancel' => $body_notification_client_cancel,
'send_notification_staff_pending' => $send_notification_staff_pending,
'subject_notification_staff_pending' => $subject_notification_staff_pending,
'body_notification_staff_pending' => $body_notification_staff_pending,
'send_notification_staff_approval' => $send_notification_staff_approval,
'subject_notification_staff_approval' => $subject_notification_staff_approval,
'body_notification_staff_approval' => $body_notification_staff_approval,
'send_notification_staff_cancel' => $send_notification_staff_cancel,
'subject_notification_staff_cancel' => $subject_notification_staff_cancel,
'body_notification_staff_cancel' => $body_notification_staff_cancel,
'send_notification_admin_pending' => $send_notification_admin_pending,
'subject_admin_pending' => $subject_admin_pending,
'admin_body_pending' => $admin_body_pending,
'send_notification_admin_approved' => $send_notification_admin_approved,
'subject_admin_approved' => $subject_admin_approved,
'admin_body_approved' => $admin_body_approved,
'send_notification_admin_cancelled' => $send_notification_admin_cancelled,
'subject_admin_cancelled' => $subject_admin_cancelled,
'admin_body_cancelled' => $admin_body_cancelled,
);
update_option("Appoint_notification", $Appoint_settings);
}
$email_settings= get_option("Appoint_notification");
$enable= $email_settings['enable'];
?>
";
echo "Mail sent successfully...";
echo ""; */
} else {
/* echo "";
echo "Mail could not be sent...";
echo ""; */
}
}
}
if(isset($_POST['send_mail_admin_pending'])) {
if($send_notification_admin_pending=='yes'){
$preview_mail_admin_pending = ( $_REQUEST['preview_mail_admin_pending'] );
$to = $preview_mail_admin_pending;
$subject = $subject_admin_pending;
$message = $admin_body_pending;
$header = $phpemail;
$mail_check = mail ($to,$subject,$message,$header);
if( $mail_check == true ) {
/* echo "";
echo "Mail sent successfully...";
echo ""; */
} else {
/* echo "";
echo "Mail could not be sent...";
echo ""; */
}
}
}
if(isset($_POST['send_mail_admin_cancel'])) {
if($send_notification_admin_cancelled=='yes'){
$preview_mail_admin_cancelled = ( $_REQUEST['preview_mail_admin_cancelled'] );
$to = $preview_mail_admin_cancelled;
$subject = $subject_admin_cancelled;
$message = $admin_body_cancelled;
$header = $phpemail;
$mail_check = mail ($to,$subject,$message,$header);
if( $mail_check == true ) {
/* echo "";
echo "Mail sent successfully...";
echo ""; */
} else {
/* echo "";
echo "Mail could not be sent...";
echo ""; */
}
}
}
if(isset($_POST['send_mail_client_approved'])) {
if($send_notification_client_approval=='yes'){
$preview_mail_client_approval = ( $_REQUEST['preview_mail_client_approval'] );
$to = $preview_mail_client_approval;
$subject = $subject_notification_client_approval;
$message = $body_notification_client_approval;
$header = $phpemail;
$mail_check = mail ($to,$subject,$message,$header);
if( $mail_check == true ) {
/* echo "";
echo "Mail sent successfully...";
echo ""; */
} else {
/* echo "";
echo "Mail could not be sent...";
echo ""; */
}
}
}
if(isset($_POST['send_mail_client_pending'])) {
if($send_notification_client_pending=='yes'){
$preview_mail_client_pending = ( $_REQUEST['preview_mail_client_pending'] );
$to = $preview_mail_client_pending;
$subject = $subject_notification_client_pending;
$message = $body_notification_client_pending;
$header = $phpemail;
$mail_check = mail ($to,$subject,$message,$header);
if( $mail_check == true ) {
/* echo "";
echo "Mail sent successfully...";
echo ""; */
} else {
/* echo "";
echo "Mail could not be sent...";
echo ""; */
}
}
}
if(isset($_POST['send_mail_client_cancel'])) {
if($send_notification_client_cancel=='yes'){
$preview_mail_client_cancel = ( $_REQUEST['preview_mail_client_cancel'] );
$to = $preview_mail_client_cancel;
$subject = $subject_notification_client_cancel;
$message = $body_notification_client_cancel;
$header = $phpemail;
$mail_check = mail ($to,$subject,$message,$header);
if( $mail_check == true ) {
/* echo "";
echo "Mail sent successfully...";
echo ""; */
} else {
/* echo "";
echo "Mail could not be sent...";
echo ""; */
}
}
}
}
?>