BUG 14723 "Error en la configuracióe un correo..." SOLVED

- Error en la configuracion correo SMTP.
- Problema resuelto, en ADMIN > Email se agrega un nuevo campo "From Mail" en dynaform "Configuration", el cual permite
  introducir el mail del usuario. Con este campo el usuario podra agregar su cuenta de correo y al hacer click en el
  boton "Test", el tests se realizara correctamente y no mostrara el error.
This commit is contained in:
Luis Fernando Saisa Lopez
2014-04-29 14:48:13 -04:00
parent 54b3c4e6c3
commit 21660dd573
2 changed files with 20 additions and 10 deletions

View File

@@ -368,12 +368,14 @@ class adminProxy extends HttpProxyController
G::LoadThirdParty('phpmailer', 'class.smtp');
if ($_POST['typeTest'] == 'MAIL') {
$eregMail = "/^[0-9a-zA-Z]+(?:[._][0-9a-zA-Z]+)*@[0-9a-zA-Z]+(?:[._-][0-9a-zA-Z]+)*\.[0-9a-zA-Z]{2,3}$/";
define("SUCCESSFUL", 'SUCCESSFUL');
define("FAILED", 'FAILED');
$mail_to = $_POST['mail_to'];
$send_test_mail = $_POST['send_test_mail'];
$_POST['FROM_NAME'] = $mail_to;
$_POST['FROM_EMAIL'] = $mail_to;
$_POST['FROM_NAME'] = G::LoadTranslation("ID_MESS_TEST_BODY");
$_POST['FROM_EMAIL'] = ($_POST["from_mail"] != "" && preg_match($eregMail, $_POST["from_mail"]))? $_POST["from_mail"] : "";
$_POST['MESS_ENGINE'] = 'MAIL';
$_POST['MESS_SERVER'] = 'localhost';
$_POST['MESS_PORT'] = 25;