Advertisement
Guest User

Untitled

a guest
Aug 27th, 2014
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. include 'library.php'; // include the library file
  2. include "classes/class.phpmailer.php"; // include the class name
  3. $email = $_POST["email"];
  4. $mail = new PHPMailer; // call the class
  5. $mail->IsSMTP();
  6. $mail->Host = "***"; //Hostname of the mail server
  7. $mail->Port = ***; //Port of the SMTP like to be 25, 80, 465 or 587
  8. $mail->SMTPAuth = true; //Whether to use SMTP authentication
  9. $mail->Username = "***"; //Username for SMTP authentication any valid email created in your domain
  10. $mail->Password = "***"; //Password for SMTP authentication
  11. $mail->AddReplyTo("***", "***"); //reply-to address
  12. $mail->SetFrom("***", "***"); //From address of the mail
  13. // put your while loop here like below,
  14. $mail->Subject = "Bingo inschrijving"; //Subject od your mail
  15. $mail->AddAddress($_POST['email'], $naam); //To address who will receive this email
  16. $mail->AddEmbeddedImage("images/Bingo.png","bingo-image","bingo.png");
  17. $mail->MsgHTML("<html>
  18. <body>
  19. <img src='cid:bingo-image' alt='bingo oostpolder logo'>
  20. <h1><b>Welkom bij de Bingo!</b></h1><br/>
  21. U heeft zich ingeschreven met de volgende gegevens:<br/>
  22. Naam: " . $naam . " <br/>
  23. Huisnummer: " . $_POST['field_2'] . " <br/>
  24. Straat: " . $_POST['field_3'] . " <br/>
  25. Email: " . $_POST['email'] . " <br/>
  26. Met hoeveel extra personen komt u spelen? (exclusief uzelf): " . $_POST['field_4'] . " <br/>
  27. Met hoeveel kaarten speelt u zelf?: " . $_POST['field_5'] . " <br/>
  28. Met hoeveel kaarten speelt speler 2: " . $persoon2 . " <br/>
  29. Met hoeveel kaarten speelt speler 3: " . $persoon3 . " <br/>
  30. Met hoeveel kaarten speelt speler 4: " . $persoon4 . " <br/>
  31. <br/>
  32. <b>De bingo wordt gehouden op :</b><br/>
  33. 1 oktober 2019<br/>
  34. Om 18:30 is er inloop en om 19:00 begint de bingo!<br/>
  35. <br/>
  36. <b>Ons adres is :</b><br/>
  37. een gebouw<br/>
  38. straat<br/>
  39. postcode <br/>
  40. plaats<br/>
  41. <br/>
  42. Heeft u nog vragen of wilt u uw inschrijving wijzigen? Neem contact op via de contact pagina.<br/>
  43. U kunt niet reageren op deze email, de email wordt niet gecontroleerd!
  44. </body>
  45. </html>"); //Put your body of the message you can place html code here
  46. //Attach a file here if any or comment this line,
  47. $send = $mail->Send(); //Send the mails
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement