[-] BO : modified the treatment in order to add specials characters like password in Preferences/Emails

This commit is contained in:
aNiassy
2012-01-04 13:46:36 +00:00
parent d8238b007e
commit 622f5c73c2
2 changed files with 21 additions and 22 deletions
+12 -12
View File
@@ -50,17 +50,18 @@ function verifyMail(testMsg, testSubject)
{
url: "ajax_send_mail_test.php",
cache: false,
type : "POST",
data:
"mailMethod="+(($("input[name=PS_MAIL_METHOD]:checked").val() == 2) ? "smtp" : "native")+
"&smtpSrv="+ $("input[name=PS_MAIL_SERVER]").val()+
"&testEmail="+ $("#testEmail").val()+
"&smtpLogin="+ $("input[name=PS_MAIL_USER]").val()+
"&smtpPassword="+ $("input[name=PS_MAIL_PASSWD]").val()+
"&smtpPort="+ $("input[name=PS_MAIL_SMTP_PORT]").val()+
"&smtpEnc="+ $("select[name=PS_MAIL_SMTP_ENCRYPTION]").val()+
"&testMsg="+textMsg+
"&testSubject="+textSubject
,
{
"smtpSrv" : $("input[name=PS_MAIL_SERVER]").val(),
"testEmail" : $("#testEmail").val(),
"smtpLogin" : $("input[name=PS_MAIL_USER]").val(),
"smtpPassword" : $("input[name=PS_MAIL_PASSWD]").val(),
"smtpPort" : $("input[name=PS_MAIL_SMTP_PORT]").val(),
"smtpEnc" : $("select[name=PS_MAIL_SMTP_ENCRYPTION]").val(),
"testMsg" : textMsg,
"testSubject" : textSubject
},
success: function(ret)
{
if (ret == "ok")
@@ -77,5 +78,4 @@ function verifyMail(testMsg, testSubject)
}
);
}
}
}