Commit e92a816bbba813754922bf2daecc45cf631467ed
1 parent
9c295e05
123
Showing
2 changed files
with
3 additions
and
6 deletions
Show diff stats
www-arktika/email.php
@@ -11,7 +11,7 @@ require 'PHPMailer/PHPMailerAutoload.php'; | @@ -11,7 +11,7 @@ require 'PHPMailer/PHPMailerAutoload.php'; | ||
11 | if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) && !empty($_POST['email']) ) { | 11 | if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) && !empty($_POST['email']) ) { |
12 | $name = stripslashes($_POST['name']); | 12 | $name = stripslashes($_POST['name']); |
13 | $email = stripslashes($_POST['email']); | 13 | $email = stripslashes($_POST['email']); |
14 | - $code = "12324"; | 14 | + $code = "4749440"; |
15 | //Create a new PHPMailer instance | 15 | //Create a new PHPMailer instance |
16 | $mail = new PHPMailer; | 16 | $mail = new PHPMailer; |
17 | //Tell PHPMailer to use SMTP | 17 | //Tell PHPMailer to use SMTP |
@@ -49,10 +49,7 @@ if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) && | @@ -49,10 +49,7 @@ if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) && | ||
49 | $mail->Subject = 'Промокод на сайт semena.in.ua'; | 49 | $mail->Subject = 'Промокод на сайт semena.in.ua'; |
50 | //Read an HTML message body from an external file, convert referenced images to embedded, | 50 | //Read an HTML message body from an external file, convert referenced images to embedded, |
51 | //convert HTML into a basic plain-text alternative body | 51 | //convert HTML into a basic plain-text alternative body |
52 | - $mail->msgHTML(" | ||
53 | - Добрый день!<br> | ||
54 | - Ваш промокод: $code | ||
55 | - "); | 52 | + $mail->msgHTML(include("list.php")); |
56 | $mail->send(); | 53 | $mail->send(); |
57 | //send the message, check for errors | 54 | //send the message, check for errors |
58 | header('Location: http://arktika.semena.in.ua/'); | 55 | header('Location: http://arktika.semena.in.ua/'); |
www-arktika/list.php
@@ -137,7 +137,7 @@ | @@ -137,7 +137,7 @@ | ||
137 | <td style="color: #333333;font-family: Calibri;font-size: 16px;line-height: 18px;letter-spacing: -0.2px;"><br /> | 137 | <td style="color: #333333;font-family: Calibri;font-size: 16px;line-height: 18px;letter-spacing: -0.2px;"><br /> |
138 | Как и обещали, дарим Вам промокод со скидкой -7% на покупку сверхурожайного и холодостойкого огурца Арктика F1 на <a href="http://semena.in.ua/semena_ovoshchey_1c_20/ogurets_1c_21/arena_f1_ru_1c2-3030/ru" target="_blank" style="color:#00aeef;text-decoration:none;">нашем сайте</a>.<br /><br /> | 138 | Как и обещали, дарим Вам промокод со скидкой -7% на покупку сверхурожайного и холодостойкого огурца Арктика F1 на <a href="http://semena.in.ua/semena_ovoshchey_1c_20/ogurets_1c_21/arena_f1_ru_1c2-3030/ru" target="_blank" style="color:#00aeef;text-decoration:none;">нашем сайте</a>.<br /><br /> |
139 | </td></tr><tr><td align="center" style="color: #333333;font-family: Calibri;font-size: 16px;line-height: 18px;letter-spacing: -0.2px;"> | 139 | </td></tr><tr><td align="center" style="color: #333333;font-family: Calibri;font-size: 16px;line-height: 18px;letter-spacing: -0.2px;"> |
140 | - <b>Ваш персональный промокод на скидку: 4749440 </b><br /><br /> | 140 | + <b>Ваш персональный промокод на скидку: <?php echo $code; ?></b><br /><br /> |
141 | </td> | 141 | </td> |
142 | </tr> | 142 | </tr> |
143 | <tr><td align="center" style="text-align:center;"> | 143 | <tr><td align="center" style="text-align:center;"> |