E:
/
home
/
kbcomunicacao1
/
Web
/
includes
/
Upload File
HOME
<?php require 'PHPMailer/PHPMailerAutoload.php'; $nome = $_POST['nome']; $email = $_POST['email']; $celular = $_POST['telefone']; $assunto = $_POST['assunto']; $onde = $_POST['onde']; $msg = $_POST['mensagem']; $nome2 = utf8_decode($_POST['nome']); $assunto2 = utf8_decode($_POST['assunto']); $mensagem = utf8_decode("<!doctype html> <html> <head> <meta charset='utf-8'> </head> <body> <div style='float:left; width:886px'> <p style='font-size:18px; font-family:'Times New Roman', Times, serif;'><strong>CONTATO</strong> <p style='font-size:14px; font-family:'Times New Roman', Times, serif; text-align:justify'>mensagem do Site,</p> <p style='font-size:14px; font-family:'Times New Roman', Times, serif;'>O cliente: $nome - E-mail: $email - Telefone: $celular deixou uma mensagem no site! </p> <p style='font-size:14px; font-family:'Times New Roman', Times, serif;'><strong>Nos encontrou: $onde</strong> <p style='font-size:14px; font-family:'Times New Roman', Times, serif;'><strong>$assunto</strong> <p style='font-size:14px; font-family:'Times New Roman', Times, serif;'>$msg </p> <p style='font-size:14px; font-family:'Times New Roman', Times, serif; text-align:justify'>*** Não responda este email pelo seu webmail ou gerenciador de email, pois ele não será lido !</p> </div> </body> </html> "); $mail = new PHPMailer; $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = "smtp.absi.com.br"; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = "email@absi.com.br"; // SMTP username $mail->Password = "DNs@160406"; // SMTP password $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted $mail->Port = 587; // TCP port to connect to $mail->setFrom("email@absi.com.br", "Mensagem do site - $nome2"); $mail->isHTML(true); // Set email format to HTML $mail->Subject = "Mensagem do site - $assunto2"; $mail->Body = "$mensagem"; $mail->addAddress("absi@absi.com.br" , "$assunto2 - $nome2"); $mail->send(); $mail->ClearAddresses(); ?>