diff --git a/functions.php b/functions.php index 6b5dd26..292fd8e 100644 --- a/functions.php +++ b/functions.php @@ -672,9 +672,8 @@ function last_sticky_post() { } -add_action( 'phpmailer_init', 'agroxpert_send_smtp_email' ); -function agroxpert_send_smtp_email( PHPMailer $phpmailer ) { +function agroxpert_send_smtp_email( $phpmailer ) { $phpmailer->isSMTP(); $phpmailer->Host = 'mail.vetandlife.ru'; @@ -684,14 +683,14 @@ function agroxpert_send_smtp_email( PHPMailer $phpmailer ) { $phpmailer->Password = 'O6K!]aZDNJ'; $phpmailer->SMTPSecure = 'ssl'; $phpmailer->From = 'news@mail.agroexpert.press'; - $phpmailer->FromName = 'Ветеринария и жизнь'; + $phpmailer->FromName = 'Агроэксперт'; } +add_action( 'phpmailer_init', 'agroxpert_send_smtp_email' ); + -add_action('wpcf7_mail_sent', 'my_custom_mail_sent' ); - function my_custom_mail_sent( $contact_form ){ $log_file = WP_CONTENT_DIR . '/contact.log'; @@ -748,13 +747,10 @@ $hash_link.\n\n // Отправка письма wp_mail($mail, $subject, $message, $headers); - echo '
Благодарим за интерес к нашему изданию!
-На Вашу почту отправлено письмо для подтверждения подписки.
'; - - - return; } +add_action('wpcf7_mail_sent', 'my_custom_mail_sent' ); + diff --git a/page-subscript.php b/page-subscript.php new file mode 100644 index 0000000..ced82c4 --- /dev/null +++ b/page-subscript.php @@ -0,0 +1,45 @@ + + + +Спасибо, мы включили Ваш e-mail в нашу рассылку!
+Наши письма могут оказаться в разделе "Рассылки" Вашего почтового приложения или сайта.
+'; + +} else { + echo 'К сожалению не нашли Вас в базе.
'; +}?> + +