E:
/
home
/
kbcomunicacao1
/
Web
/
incosmetics
/
in-cosmetics-en
/
adm
/
includes
/
conexao
/
Upload File
HOME
<?php require 'PHPMailer/PHPMailerAutoload.php'; $nome = $_POST['nome']; $email = $_POST['email']; $celular = $_POST['tel']; $assunto = $_POST['profissao']; $msg = $_POST['sendermessage']; $assuntomensagem = utf8_decode("Inscrição Associado Site Ibape-SP - $nome"); $mensagem = utf8_decode("<!doctype html> <html> <head> <meta charset='utf-8'> </head> <body> <div style='float:left; width:886px'> <p style='font-size:21px; font-family:'Times New Roman', Times, serif; text-align:justify'>Inscrição de Associado!</p> <p style='font-size:14px; font-family:'Times New Roman', Times, serif;'>Nome: $nome - E-mail: $email - Telefone: $celular - Profissão: $assunto </p> <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.ibape-sp.org.br"; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = "site@ibape-sp.org.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("site@ibape-sp.org.br", "$nome"); $mail->isHTML(true); // Set email format to HTML $mail->Subject = "$assuntomensagem"; $mail->Body = "$mensagem"; $mail->addAddress("eventos@ibape-sp.org.br" , "$assuntomensagem"); $mail->send(); $mail->ClearAddresses(); ?>