• R/O
  • SSH
  • HTTPS

zolm: Commit


Commit MetaInfo

Revisión79 (tree)
Tiempo2015-12-24 07:34:39
Autorderekwildstar

Log Message

Ajustes para uso do envio de e-mail via SMTP

Cambiar Resumen

Diferencia incremental

--- trunk/SERVIDOR/php/config.inc.php (revision 78)
+++ trunk/SERVIDOR/php/config.inc.php (revision 79)
@@ -4,7 +4,7 @@
44 $dbConnections["mysql"] = new DBConfig("mysql","dbmy0106.whservidor.com","weboportun_1","weboportun_1","@d1d2f3b4");
55 $dbConnections["pgsql"] = new DBConfig("pgsql","localhost","zolm","zolm","123456");
66
7-define("MAILFROM","zolm@gscpe.com.br");
7+define("MAILFROM","Zetta-Ømnis License Manager <zolm@gscpe.com.br>");
88 define("ZOLMVERSION","2.0.1.3");
99
1010 if ($_SERVER["SERVER_NAME"] == "localhost") {
--- trunk/SERVIDOR/index.php (revision 78)
+++ trunk/SERVIDOR/index.php (revision 79)
@@ -486,7 +486,15 @@
486486 $mailText->assign("nomeAmigavel",$aNomeAmigavel);
487487 $mailText->assign("otherInformations",explode("<>",$aOtherInformations));
488488
489- if (sendMail(MAILFROM,$email,"Registro - " . $nomeSistema,$mailText->getContents())) {
489+
490+ $from = new stdClass();
491+ $from->mailFrom = MAILFROM;
492+ $from->smtpHost = "smtp.gscpe.com.br";
493+ $from->smtpPort = 587;
494+ $from->smtpUser = "zolm@gscpe.com.br";
495+ $from->smtpPass = "zolm@Email";
496+
497+ if (sendMail($from,$email,"Registro - " . $nomeSistema,$mailText->getContents(),true)) {
490498 $resultado = 0;
491499 } else {
492500 $resultado = -6;
Show on old repository browser