Revisión | 79 (tree) |
---|---|
Tiempo | 2015-12-24 07:34:39 |
Autor | ![]() |
Ajustes para uso do envio de e-mail via SMTP
@@ -4,7 +4,7 @@ | ||
4 | 4 | $dbConnections["mysql"] = new DBConfig("mysql","dbmy0106.whservidor.com","weboportun_1","weboportun_1","@d1d2f3b4"); |
5 | 5 | $dbConnections["pgsql"] = new DBConfig("pgsql","localhost","zolm","zolm","123456"); |
6 | 6 | |
7 | -define("MAILFROM","zolm@gscpe.com.br"); | |
7 | +define("MAILFROM","Zetta-Ømnis License Manager <zolm@gscpe.com.br>"); | |
8 | 8 | define("ZOLMVERSION","2.0.1.3"); |
9 | 9 | |
10 | 10 | if ($_SERVER["SERVER_NAME"] == "localhost") { |
@@ -486,7 +486,15 @@ | ||
486 | 486 | $mailText->assign("nomeAmigavel",$aNomeAmigavel); |
487 | 487 | $mailText->assign("otherInformations",explode("<>",$aOtherInformations)); |
488 | 488 | |
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)) { | |
490 | 498 | $resultado = 0; |
491 | 499 | } else { |
492 | 500 | $resultado = -6; |