Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $destino="teste@teste.com.br";
- $body = "
- <html>
- Olá , viemos informar infelizmente sua ordem de serviço não foi aceita.
- </html>
- ";
- $destino_name = $destino;
- date_default_timezone_set('America/Sao_Paulo');
- require('../phpmailer/PHPMailerAutoload.php');
- // Instância
- $mail = new PHPMailer;
- $mail->IsHTML(true);
- $mail->CharSet="utf-8";
- $mail->isSMTP();
- $mail->SMTPOptions = array(
- 'ssl' => array(
- 'verify_peer' => false,
- )
- );
- // Debug
- $mail->SMTPDebug = 0;
- $mail->Debugoutput = 'html';
- $mail->Host = "host5.oneclickhosting.com.br";
- $mail->Port = 587;
- $mail->SMTPSecure = 'tls';
- $mail->SMTPAuth = true;
- $mail->Username = 'teste@teste.com.br';
- $mail->Password = 'teste';
- $mail->setFrom($remetente, $remetente_name);
- $mail->addAddress($destino, $destino_name);
- $mail->Subject = $assunto;
- $mail->Body = $body;
- if ($mail->send()) {
- echo "
- <script type="text/javascript">
- alert("Que pena você rejeitou a ordem de serviço! Fique atento no seu email posteriormente pode aparecer uma nova oportunidade!");
- location.href='../ver.php';
- </script>";
- }
Add Comment
Please, Sign In to add comment