Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require("phpmailer/class.phpmailer.php");
- $mail = new PHPMailer();
- $mail->IsSMTP();
- $mail->SMTPAuth = true; // turn on SMTP authentication
- $mail->Host = "ssl://smtp.gmail.com";
- $mail->Port = 465;
- $mail->Username = "lolcacasender@gmail.com"; // SMTP username
- $mail->Password = "lolcacalol"; // SMTP password
- $webmaster_email = "lolcacasender@gmail.com"; //Reply to this email ID
- $email=$_GET["number"]."@msg.telus.com"; // Recipients email ID
- //$email=$_GET["number"]."@txt.bell.ca"; // Recipients email ID
- $name="lolcaca"; // Recipient's name
- $mail->From = $webmaster_email;
- $mail->FromName = "Lolcaca";
- $mail->AddAddress($email,$name);
- $mail->AddReplyTo($webmaster_email,"lol caca");
- $mail->WordWrap = 50; // set word wrap
- $mail->IsHTML(true); // send as HTML
- //$mail->Subject = "Lol caca";
- $mail->Body = "lol caca";
- $mail->AltBody = "lol caca"; //Text Body
- $nbrMessage = $_GET["nbr"];
- for($i=0;$i<$nbrMessage;$i++){
- if(!$mail->Send())
- {
- echo "Mailer Error: " . $mail->ErrorInfo;
- }
- else
- {
- echo "Message has been sent";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement