Advertisement
Guest User

Untitled

a guest
Nov 9th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. require_once('phpmail/PHPMailerAutoload.php');
  2.  
  3. $mail = new PHPMailer();
  4. $mail->isSMTP();
  5. $mail->SMTPDebug = 2;
  6. $mail->Debugoutput = 'html';
  7. $mail->Host = "smtp.igoweb.com.br";
  8. $mail->Port = 25;
  9. $mail->SMTPAuth = true;
  10. $mail->Username = "referencia@igoweb.com.br";
  11. $mail->Password = " sua senha";
  12. $mail->setFrom('referencia@igoweb.com.br', 'IGOWEB');
  13. $mail->addReplyTo('referencia@igoweb.com.br', 'IGOWEB');
  14. $mail->addAddress('andremomb@gmail.com', '');
  15. $mail->Subject = 'Teste de Envio de E-Mail';
  16.  
  17. //$mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
  18. $mail->msgHTML("Testando o envio de E-Mail",0);
  19. $mail->AltBody = 'This is a plain-text message body';
  20. if (!$mail->send()) {
  21. //return "Mailer Error: " . $mail->ErrorInfo;
  22. } else {
  23. //return send mail!
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement