add page subscript

This commit is contained in:
2024-04-14 21:37:57 +03:00
parent 2b1faa9d5c
commit e46022ff89
2 changed files with 51 additions and 10 deletions

View File

@@ -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 '<p>Благодарим за интерес к нашему изданию!</p>
<p>На Вашу почту отправлено письмо для подтверждения подписки.</p>';
return;
}
add_action('wpcf7_mail_sent', 'my_custom_mail_sent' );