clean
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user