E:
/
home
/
kbcomunicacao1
/
Web
/
includes
/
Upload File
HOME
<?php require 'PHPMailer/PHPMailerAutoload.php'; $nome1 = $_POST['nome1']; $email1 = $_POST['email1']; $telefone1 = $_POST['telefone1']; $empresa1 = $_POST['empresa1']; $textarea1 = $_POST['textarea1']; $mensagem = utf8_decode("<!doctype html> <html> <head> <meta charset='utf-8'> </head> <body> <div style='float:left; width:886px'> <p style='font-size:14px; font-family:'Times New Roman', Times, serif;'><strong>Mensagem do Site</strong></p> <p style='font-size:14px; font-family:'Times New Roman', Times, serif;'>Nome: $nome1 / E-mail: $email1 / Telefone: $telefone1 </p> <p style='font-size:14px; font-family:'Times New Roman', Times, serif;'>Empresa: $empresa1 </p> <p style='font-size:14px; font-family:'Times New Roman', Times, serif;'>$textarea1 </p> </div> </body> </html> "); $mail = new PHPMailer; $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'smtp.kbcomunicacao.com'; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'site@kbcomunicacao.com'; // SMTP username $mail->Password = 'kb@dns2160406'; // SMTP password $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted $mail->Port = 587; // TCP port to connect to $mail->setFrom('site@kbcomunicacao.com', "$nome1"); $mail->isHTML(true); // Set email format to HTML $mail->Subject = "$nome1"; $mail->Body = "$mensagem"; $mail->addAddress('dirceu@innterage.com.br' , 'Mensagem do site'); $mail->send(); $mail->ClearAddresses(); ?>