Instituto Tecnológico de Campos
Instituto
Tecnológico de Campos

Contato

<?php

if (!empty($_POST[‘email’])){

include “../../services/PHPMailer/class.phpmailer.php”;

$mail = new PHPMailer();

$mail->IsSMTP();

$mail->Host = “zimbra.ucam-campos.br”;

$mail->SMTPAuth = true;

$mail->Port = 25;

$mail->Username = “webmaster@ucam-campos.br”;

$mail->Password = “1q2w3e4r”;

$mail->SetFrom(iconv(‘UTF-8′,’ISO-8859-1’,$_POST[‘email’]), iconv(‘UTF-8′,’ISO-8859-1’,$_POST[‘nome’]));

$mail->Subject = iconv(‘UTF-8′,’ISO-8859-1’, $_POST[‘assunto’]);

$mail->MsgHTML(iconv(‘UTF-8′,’ISO-8859-1′,str_replace(CHR(13),'<br>’,$_POST[‘msg’])));

$address = “juliana@ucam-campos.br”;

$mail->AddAddress($address, “Webmaster ITECAM”);

$sucesso = $mail->Send();

if($sucesso){

echo “<script language=\”Javascript\”>”;

echo “location.href=\”?status=1\”;”;

echo “</script>”;

} else {

echo “<script language=\”Javascript\”>”;

echo “location.href=\”?status=2\”;”;

echo “</script>”;

}

}

?>

Aguarde, realizando operação...