Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_once('c:wamp64wwwphpmailerclass.phpmailer.php');
- $mail = New PHPMailer();
- //$mail-> ErrorInfo;
- //exit;
- $mail->IsSMTP = true;
- //$mail-> ErrorInfo;
- //exit;
- $mail->SMTPSecure = "ssl";
- //$mail-> ErrorInfo;
- //exit;
- $mail->Host = "smtp.host.com.br";
- //$mail-> ErrorInfo;
- //exit;
- $mail->Port = 465;
- //$mail-> ErrorInfo;
- //exit;
- $mail->Username = "teste@example.com.br";
- $mail->Password = "senha123";
- //$mail-> ErrorInfo;
- //exit;
- $mail->From = "teste@example.com.br";
- $mail->FromName = "Suporte";
- //$mail-> ErrorInfo;
- //exit;
- $mail->Subject = "Teste de Envio";
- $html = "aa !";
- $text = "aa ! ";
- $mail->Body = $html;
- $mail->AltBody = $text;
- //$mail-> ErrorInfo;
- //exit;
- $mail->AddAddress("teste@example.com.br", "suporte");
- //$mail-> ErrorInfo;
- //exit;
- if (!$mail->Send()){
- echo "Erro DNOVO !".$mail->ErrorInfo;
- } else {
- echo "ALELUIA DEU CERTO !";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement