Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_once("../../phpmailer/PHPMailerAutoload.php");
- $mail = new PHPMailer;
- // Debug para ver errores
- $mail->SMTPDebug = 3;
- //hacemos que PHPMailer use SMTP.
- $mail->isSMTP();
- //direccion
- $mail->Host = "smtp.gmail.com";
- //poner verdadero para requerir autorizacion
- $mail->SMTPAuth = true;
- //Usuario y contraseña
- $mail->Username = "rakall66@gmail.com";
- $mail->Password = "rakall11";
- //If SMTP requires TLS encryption then set it
- $mail->SMTPSecure = "tls";
- //Set TCP port to connect to
- $mail->Port = 587;
- $mail->From = "rakall66@gmail.com";
- $mail->FromName = "No responder - Informacion Pago";
- $receptor="testingfield1@hotmail.com";
- $mail->addAddress($receptor, "El que recibe");
- $mail->isHTML(true);
- $mail->Subject = "Pago en Vidya";
- $mail->Body = "<i>Usted ".$login_session." ha realizado un pago en Vidya </i>";
- $mail->AltBody = "Version en texto plano";
- //$mail->AddAttachment("facturas/factura.pdf");
- //$mail->AddAttachment( $destino, 'factura.pdf' );
- if(!$mail->send())
- {
- echo "Mailer Error: " . $mail->ErrorInfo;
- }
- else
- {
- echo " error";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement