Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require("phpmailer/class.phpmailer.php");
- require("phpmailer/class.smtp.php");
- $mail = new PHPMailer();
- $mail->IsSMTP();
- $mail->SMTPAuth = true;
- $mail->Host = "ssl://smtp.gmail.com";
- $mail->Port = 465;
- $mail->Username = "patogay@gmail.com";
- $mail->Password = "elpassdegmail";
- $mail->From = "user@domain.com";
- $mail->FromName = "RED SOCIAL";
- $mail->Subject = "PATO GAY";
- $mail->MsgHTML("PATO GAY ");
- $mail->AddAddress("slipknot021@hotmail.com", "Destinatario");
- $mail->IsHTML(true);
- if($mail->Send()){
- echo 'envio OK';
- }else{
- echo 'Error: ' . $mail->ErrorInfo;
- }
- ?>
Add Comment
Please, Sign In to add comment