This commit is contained in:
2025-10-23 08:41:23 +00:00
parent 096a268daa
commit d8b185bacc
2 changed files with 14 additions and 4 deletions

View File

@@ -28,9 +28,10 @@ class SMTP
$smtp_from_email = get_option('options_smtp_from_email');
$smtp_from_name = get_option('options_smtp_from_name');
// $smtp_host_2 = get_field('smtp_host', 'option');
// Debug de todos los valores
// error_log('📧 SMTP Config:');
// error_log(' Host: ' . ($smtp_host ?: 'VACÍO'));
// error_log(' Host: ' . ($smtp_host_2 ?: 'VACÍO'));
// Verificar si tenemos la configuración mínima necesaria
if (empty($smtp_host) || empty($smtp_port)) {
@@ -62,7 +63,8 @@ class SMTP
if (!empty($smtp_from_name)) {
$phpmailer->FromName = $smtp_from_name;
}
//var_dump(get_field('smtp_host', 'option'));
//var_dump(get_option('options_smtp_host'));
// ACTIVAR DEBUG TEMPORAL
// $phpmailer->SMTPDebug = 2;
// $phpmailer->Debugoutput = function($str, $level) {