Home Files
Adminer
Execute Command
PHP Eval
Symlink
File Upload
Owner :
www-data
PHP Version
8.1.8
Disk Space
203.89 GB
Server Addr
171.9.3.2
Your IP
171.9.3.1
Edit File
File:
<?php //PADRAO DE ENVIO DE EMAILS class SendMail { public function Send($titulo, $boasvindas, $NomeOuvCliente = null, $cor, $datahora_atual, $endMun = null, $natureza = null, $descricao, $Uf, $mensagem, $nomeOuvidor,$link, $botao, $link_empresa, $nome_empresa, $contatos_empresa, $email_empresa, $email_para, $email_assunto, $mail, $debug = null) { $body_mail = ' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width"/> <style type="text/css"> * { margin: 0; padding: 0; font-size: 100%; font-family: "Avenir Next", "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; line-height: 1.65; } img { max-width: 100%; margin: 0 auto; display: block; } body, .body-wrap { width: 100% !important; height: 100%; background: #f8f8f8; } a { color: #5A8DEE; text-decoration: none; } a:hover { #5A8DEE; text-decoration: none; } .text-center { text-align: center; } .text-right { text-align: right; } .text-left { text-align: left; } .button { display: inline-block; color: white; background: #5A8DEE; border: solid #5A8DEE; border-width: 10px 20px 8px; font-weight: bold; border-radius: 4px; } .button:hover { text-decoration: none; } h1, h2, h3, h4, h5, h6 { margin-bottom: 20px; line-height: 1.25; } h1 { font-size: 32px; } h2 { font-size: 28px; } h3 { font-size: 24px; } h4 { font-size: 20px; } h5 { font-size: 16px; } p, ul, ol { font-size: 16px; font-weight: normal; margin-bottom: 20px; } .container { display: block !important; clear: both !important; margin: 0 auto !important; max-width: 580px !important; } .container table { width: 100% !important; border-collapse: collapse; } .container .masthead { padding: 80px 0; background: #5A8DEE; color: white; } .container .masthead h1 { margin: 0 auto !important; max-width: 90%; text-transform: uppercase; } .container .content { background: white; padding: 30px 35px; } .container .content.footer { background: none; } .container .content.footer p { margin-bottom: 0; color: #888; text-align: center; font-size: 14px; } .container .content.footer a { color: #888; text-decoration: none; font-weight: bold; } .container .content.footer a:hover { text-decoration: underline; } </style> </head> <body> <table class="body-wrap"> <tr> <td class="container"> <table> <tr> <td align="center" class="masthead"> <h1>'.$titulo.'</h1> </td> </tr> <tr> <td class="content"> <h2>'.$boasvindas.'</h2> <p>'.$mensagem.'</p> <table> <tr> <td align="center"> <p> <a href="'.$link.'" class="button">'.$botao.'</a> </p> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td class="container"> <table> <tr> <td class="content footer" align="center"> <p>Enviado por <a href="'.$link_empresa.'">'.$nome_empresa.'</a>, '.$contatos_empresa.'</p> <p><a href="mailto:'.$email_empresa.'">'.$email_empresa.'</a></p> </td> </tr> </table> </td> </tr> </table> </body> </html> '; $mail->IsSMTP(); //$mail->SMTPDebug = 3; /* $mail->SMTPSecure = "ssl"; $mail->Host = "email-ssl.com.br"; $mail->Port = 465; $mail->Username = "sistema@acotacao.com.br"; $mail->Password = "PXIPS2DM53M1a#"; $mail->From = "sistema@acotacao.com.br";*/ $mail->SMTPSecure = "tls"; $mail->Host = 'smtp.gmail.com'; $mail->Port = 587; $mail->Username = 'sistema@aouvidoria.com.br'; $mail->Password = 'S1st3m@A0uv1d0r1@'; $mail->From = "sistema@aouvidoria.com.br"; $mail->SMTPAuth = true; $mail->SMTPAutoTLS = true; $mail->FromName = utf8_decode("Sistema ".$titulo); // Seu nome if ($email_para != '') { $emailSend = explode(';', $email_para); } for ($i = 0; $i < count($emailSend); $i++) { if ($emailSend[$i] != '') { $mail->AddAddress($emailSend[$i]); } } $mail->IsHTML(true); $mail->Subject = utf8_decode($email_assunto); $mail->Body = utf8_decode($body_mail); try { $enviado = $mail->Send(); // Limpa os destinatários e os anexos $mail->ClearAllRecipients(); $mail->ClearAttachments(); // Exibe uma mensagem de resultado } catch (phpmailerException $e) { $enviado = $e->errorMessage(); } return $enviado; } }