Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require("contato.php");
- require("index2.php");
- require("incluir.php");
- require("phpmailer/class.phpmailer.php");
- //instanciar
- $email = new PHPMailer();
- //smtp
- $email->IsSMTP();
- $email->SMTPAuth = true;
- $email->SMTPSecure = "ssl";
- $email->Host = "mail.studiomnatal.com.br";
- $email->Port = 465;
- $email->Username = "contato@studiomnatal.com.br";
- $email->Password = "lalalalala";
- $email->From = $_POST['editemail'];
- $email->FromName = $_POST['editnome'];
- $email->Subject = $_POST['editassunto'];
- $texto = "Novo E-mail";
- $contato = "contato@studiomnatal.com.br";
- $email->AddBCC($contato, 'Contatos');
- $html = $_POST['editmsg'];
- //$nome = $_POST['editnome'];
- $email->Body = "<div style='font-family: Tahoma; font-size: 12px;'>";
- // $email->Body .= "Nome do cliente: " . "<b>".$nome."</b>"."<br />";
- $email->Body .= $html;
- $email->Body .= "</div>";
- $email->AltBody = $texto;
- if (!$email->Send())
- {
- echo "Erro " . $email->ErrorInfo;
- }
- else
- {
- header("Location: index2.php?pagina=emailenviado");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement