E:
/
home
/
kbcomunicacao1
/
Web
/
feiplastic
/
includes
/
Upload File
HOME
<?php require 'PHPMailer/PHPMailerAutoload.php'; $nome = $_POST['username']; $email = $_POST['useremail']; $msg = $_POST['descricao']; $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: In-cosmetics Latin America 2018</strong></p> <p style='font-size:14px; font-family:'Times New Roman', Times, serif;'>Cliente: $nome / E-mail: $email </p> </p> <p style='font-size:14px; font-family:'Times New Roman', Times, serif;'>$msg </p> </div> </body> </html> "); $mail = new PHPMailer; $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'smtp.innterage.com.br'; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'dirceu@innterage.com.br'; // SMTP username $mail->Password = 'dns2160406'; // SMTP password $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted $mail->Port = 587; // TCP port to connect to $mail->setFrom('dirceu@innterage.com.br', "$nome"); $mail->isHTML(true); // Set email format to HTML $mail->Subject = "In-cosmetics Latin America 2018"; $mail->Body = "$mensagem"; $mail->addAddress('jornalismo@kbcomunicacao.com.br' , 'Rogério'); $mail->send(); $mail->ClearAddresses(); ?>