Improvement in email configuration with sendmail engine
This commit is contained in:
committed by
Erik Amaru Ortiz
parent
421d45b4b9
commit
11d48e8073
@@ -374,8 +374,8 @@ class adminProxy extends HttpProxyController
|
||||
define("FAILED", 'FAILED');
|
||||
$mail_to = $_POST['mail_to'];
|
||||
$send_test_mail = $_POST['send_test_mail'];
|
||||
$_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['FROM_NAME'] = $_POST["from_name"] != "" ? $_POST["from_name"] : G::LoadTranslation("ID_MESS_TEST_BODY");
|
||||
$_POST['MESS_ENGINE'] = 'MAIL';
|
||||
$_POST['MESS_SERVER'] = 'localhost';
|
||||
$_POST['MESS_PORT'] = 25;
|
||||
|
||||
@@ -376,9 +376,10 @@ Ext.onReady(function(){
|
||||
xtype: "textfield",
|
||||
id: "fromMail",
|
||||
name: "fromMail",
|
||||
fieldLabel: "From Mail", //"From Mail",
|
||||
fieldLabel: _('ID_FROM_EMAIL'), //"From Mail",
|
||||
width: 250,
|
||||
disabled: true
|
||||
disabled: true,
|
||||
vtype:'email'
|
||||
},
|
||||
{
|
||||
xtype: 'textfield',
|
||||
@@ -849,7 +850,8 @@ var testMethod = function()
|
||||
request : 'mailTestMail_Show',
|
||||
mail_to : 'admin@processmaker.com',
|
||||
send_test_mail : 'yes',
|
||||
from_mail : Ext.getCmp("fromMail").getValue()
|
||||
from_mail : Ext.getCmp("fromMail").getValue(),
|
||||
from_name : Ext.getCmp("eFromName").getValue()
|
||||
};
|
||||
|
||||
Ext.getCmp('step11').setText('<span id="rstep11"></span> '+_('LOGIN_VERIFY_MSG')+' <b> Mail Transport Agent </b>', false);
|
||||
|
||||
Reference in New Issue
Block a user