Viewing File: /home/cienp/public_html/portal/qbg_mail.php
<?php
$mensagem = "
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"pt-BR\" lang=\"pt-BR\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
<style TYPE='text/css'>
A {text-decoration: none}
A:link {color:'#89211b';}
A:visited {color:'#89211b';}
A:hover {color:'#000000';}
</style>
</head>
<body>
<p align='left'><font color='#000000' size='2' face='Arial, Helvetica'>
Prezado(a) $s_nm_forn,<br><br>
$s_de_desc<br><br>
<br>
Atenciosamente,<br><br>
CIEnP<br>
Centro de Inovação e Ensaios Pré-Clínicos<br>
Setor de Compras
</font><br/></p>
</body>
</html>
";
date_default_timezone_set('Etc/UTC');
//require 'PHPMailer-master/PHPMailerAutoload.php';
$to = 'andre@commix.com.br';
$v_from = "Setor de Compras CIEnP";
$from = "compras@cienp.org.br";
$subject = "Orçamento Aprovado - CIEnP";
$mail = new PHPMailer;
$mail->isSMTP();
$mail->SMTPDebug = 1;
$mail->Debugoutput = 'html';
$mail->Host = "smtp.gmail.com";
$mail->Port = 465;
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'ssl';
$mail->Username = "compras@cienp.org.br";
$mail->Password = "Cienp2020@";
$mail->setFrom($from, $v_from);
$mail->addReplyTo($from);
$mail->ReturnPath = $from;
$mail->addBcc("andreric@gmail.com");
$mail->addBcc("campanhascommix@gmail.com");
$mail->addCustomHeader("Errors-To: $from");
$mail->addCustomHeader("X-Mailer: Compras CIEnP MKT V.$s_id_fale-RC01");
$mail->IsHTML(true); // Define que o e-mail será enviado como HTML
$mail->addAddress($to);
$mail->Subject = $subject;
$mail->Body = $mensagem;
$msgs = strip_tags($mensagem);
$mail->AltBody = $msgs;
//send the message, check for errors
if($mail->Send()) {
$arrResult['response'] = 'success';
} else {
$arrResult['response'] = 'error';
echo "There was a problem sending the form.: " . $mail->ErrorInfo;
exit;
}
?>
Back to Directory
File Manager