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