localize many message from mail. re #53
This commit is contained in:
parent
d35becb7fe
commit
cf26e7438c
3 changed files with 8 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
require_once ("config.php");
|
||||
require "resources/PHPMailer/class.phpmailer.php";
|
||||
require "book.php";
|
||||
require_once "resources/PHPMailer/class.phpmailer.php";
|
||||
require_once "book.php";
|
||||
|
||||
if (is_null ($config['cops_mail_configuration']) ||
|
||||
!is_array ($config['cops_mail_configuration']) ||
|
||||
|
@ -57,10 +57,10 @@ $mail->Subject = 'Sent by COPS';
|
|||
$mail->Body = 'Sent by COPS';
|
||||
|
||||
if(!$mail->Send()) {
|
||||
echo 'Message could not be sent.';
|
||||
echo localize ("mail.messagenotsent");
|
||||
echo 'Mailer Error: ' . $mail->ErrorInfo;
|
||||
exit;
|
||||
}
|
||||
|
||||
echo 'Message has been sent';
|
||||
echo localize ("mail.messagesent");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue