add mail page subscript

This commit is contained in:
2024-04-04 21:44:28 +03:00
parent 23ce0e4c37
commit e2bb0bd68f
13 changed files with 191 additions and 89 deletions

View File

@@ -59,18 +59,33 @@ add_post_type_support('post', 'page-attributes');
//require ABSPATH.'vendor/masterforweb/db_lite/db_lite.php';
//[_site_admin_email]
/**
function vij_send_smtp_email( PHPMailer $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host = 'smtp.yandex.ru';
$phpmailer->SMTPAuth = true;
$phpmailer->Port = 465;
$phpmailer->Username = 'info@vetandlife.ru';
$phpmailer->Password = 'B9c8P6y9';
$phpmailer->Password = 'uzpcwqbddekbwnms'; //'B9c8P6y9';
$phpmailer->SMTPSecure = 'ssl';
$phpmailer->From = 'info@vetandlife.ru';
$phpmailer->FromName = 'Ветеринария и жизнь';
}*/
function vij_send_smtp_email( PHPMailer $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host = 'mail.vetandlife.ru';
$phpmailer->SMTPAuth = true;
$phpmailer->Port = 465;
$phpmailer->Username = 'news@mail.vetandlife.ru';
$phpmailer->Password = 'hky~qupCAUYSn';
$phpmailer->SMTPSecure = 'ssl';
$phpmailer->From = 'news@mail.vetandlife.ru';
$phpmailer->FromName = 'Ветеринария и жизнь';
}
add_action( 'phpmailer_init', 'vij_send_smtp_email' );
db_config(DB_NAME, 'mysql:host='.DB_HOST.';dbname='.DB_NAME, DB_USER, DB_PASSWORD);