Guest User

Untitled

a guest
Dec 25th, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <?php
  2. $outmail = $pdf->Output('','FichaCETis26.pdf');
  3.  
  4.  
  5. require("class.phpmailer.php");
  6. require("class.smtp.php");
  7. $correo=$_POST['CORREO'];
  8. $mail = new PHPMailer;
  9.  
  10. //Config SMTP
  11. $mail->isSMTP();
  12. $mail->CharSet='utf-8';
  13. $mail->Host='mail.cetis26.edu.mx';
  14. $mail->SMTPAuth=true;
  15. $mail->Username='contacto@cetis26.edu.mx';
  16. $mail->Password='**********';
  17. $mail->SMTPSecure='TLS';
  18. $mail->Port=26;
  19. $mail->setLanguage('es');
  20. $mail->From = 'contacto@cetis26.edu.mx';
  21. $mail->FromName='Cetis26';
  22. $mail->Subject='Pase de ingreso al examen otra vez alv.';
  23. $mail->isHTML(true);
  24. $mail->Body="Hola, este es tu pase de ingreso al examen.";
  25.  
  26. $mail->AddAddress($correo);
  27. $mail->AddStringAttachment($outmail,'FichaCETis26.pdf');
  28. $mail->Send();
  29. ?>
Add Comment
Please, Sign In to add comment