Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require("phpmailer/phpmailer.inc.php");
- $mail = new phpmailer;
- $mail->IsSMTP(); // set mailer to use SMTP
- $mail->Host = "ssl://smtp.gmail.com:465"; // specify main and backup server
- $mail->SMTPAuth = true;
- $mail->Username = 'example@gmail.com';
- $mail->Password = 'password';
- $mail->From = "example@gmail.com";
- $mail->FromName = "Example";
- $mail->AddAddress("michcio90po@gmail.com");
- $mail->AddReplyTo("info@site.com", "Information");
- $mail->WordWrap = 50; // set word wrap
- $mail->IsHTML(true); // set email format to HTML
- $mail->Subject = "Here is the subject";
- $mail->Body = "This is the message body";
- $mail->Send(); // send message
- echo done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement