Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static function SendEmailRegister() {
- $to = $_SESSION['email'];
- $subject = "Geregistreerde account";
- $message = "
- <html>
- <head>
- <title>" . $subject. "</title>
- <style>
- body {
- font-family: Helvetica, sans-serif;
- }
- h1, h2 {
- color: #C30010;
- }
- a {
- color: #777777;
- }
- table {
- width: 90%;
- text-align: left;
- }
- th {
- text-decoration: underline;
- padding-bottom: 8px;
- }
- </style>
- </head>
- <body>
- <h1>Business is Business</h1>
- <p>Uw email is gebruikt om te registreren op de 'Business is Business'-applicatie.</p>
- <h2>Gegevens</h2>
- <table>
- <tr>
- <th>Voornaam</th><th>Achternaam</th><th>Email</th>
- </tr>
- <tr>
- <td>". $_SESSION['firstname'] . "</td><td>". $_SESSION['lastname'] . "</td><td>". $_SESSION['email'] . "</td>
- </tr>
- <tr>
- <th>Functie</th><th>Bedrijf</th>
- </tr>
- <tr>
- <td>". $_SESSION['function'] . "</td><td>". $_SESSION['company'] . "</td>
- </tr>
- </table>
- <p><a href='sandervanhullebusch@gmail.com'>Indien u dit niet bent, gelieve de moderator te contacteren.</a></p>
- </body>
- </html>
- ";
- $message = wordwrap($message, 70, "\r\n");
- // Always set content-type when sending HTML email
- $headers = "MIME-Version: 1.0" . "\r\n";
- $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
- // More headers
- $headers .= 'From: <noreply@businessisbusiness.be>' . "\r\n";
- mail($to,$subject,$message,$headers);
- }
- public static function SendEmailFacturatie($event, $vis, $vlees, $parking, $abonnement) {
- $to = $_SESSION['email'];
- $subject = "Facturatie voor '" . $event . "'";
- $message = "
- <html>
- <head>
- <title>" . $subject. "</title>
- <style>
- body {
- font-family: Helvetica, sans-serif;
- }
- h1, h2 {
- color: #C30010;
- }
- a {
- color: #777777;
- }
- table {
- width: 90%;
- text-align: left;
- }
- th {
- text-decoration: underline;
- padding-bottom: 8px;
- }
- </style>
- </head>
- <body>
- <h1>Business is Business</h1>
- <p>Uw bestelling is geregistreerd.</p>
- <h2>Bestelling gegevens</h2>
- <table>
- <tr>
- <th>Vis</th><th>Vlees</th>
- </tr>
- <tr>
- <td>". $vis . "</td><td>". $vlees . "</td>
- </tr>
- <tr>
- <th>Parking</th><th>Abonnement</th>
- </tr>
- <tr>
- <td>". $parking . "</td><td>". $abonnement . "</td>
- </tr>
- </table>
- <p><a href='sandervanhullebusch@gmail.com'>Indien u dit niet bent, gelieve de moderator te contacteren.</a></p>
- </body>
- </html>
- ";
- $message = wordwrap($message, 70, "\r\n");
- // Always set content-type when sending HTML email
- $headers = "MIME-Version: 1.0" . "\r\n";
- $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
- // More headers
- $headers .= 'From: <noreply@businessisbusiness.be>' . "\r\n";
- mail($to,$subject,$message,$headers);
- }
- public static function SendEmailAanpassingFacturatie($event, $vis, $vlees, $parking, $abonnement) {
- $to = $_SESSION['email'];
- $subject = "Aangepaste facturatie voor '" . $event . "''";
- $message = "
- <html>
- <head>
- <title>" . $subject. "</title>
- <style>
- body {
- font-family: Helvetica, sans-serif;
- }
- h1, h2 {
- color: #C30010;
- }
- a {
- color: #777777;
- }
- table {
- width: 90%;
- text-align: left;
- }
- th {
- text-decoration: underline;
- padding-bottom: 8px;
- }
- </style>
- </head>
- <body>
- <h1>Business is Business</h1>
- <p>Uw bestelling is aangepast en geregistreerd.</p>
- <h2>Bestelling gegevens</h2>
- <table>
- <tr>
- <th>Vis</th><th>Vlees</th>
- </tr>
- <tr>
- <td>". $vis . "</td><td>". $vlees . "</td>
- </tr>
- <tr>
- <th>Parking</th><th>Abonnement</th>
- </tr>
- <tr>
- <td>". $parking . "</td><td>". $abonnement . "</td>
- </tr>
- </table>
- <p><a href='sandervanhullebusch@gmail.com'>Indien u dit niet bent, gelieve de moderator te contacteren.</a></p>
- </body>
- </html>
- ";
- $message = wordwrap($message, 70, "\r\n");
- // Always set content-type when sending HTML email
- $headers = "MIME-Version: 1.0" . "\r\n";
- $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
- // More headers
- $headers .= 'From: <noreply@businessisbusiness.be>' . "\r\n";
- mail($to,$subject,$message,$headers);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement