Commit e92a816bbba813754922bf2daecc45cf631467ed

Authored by Eugeny Galkovskiy
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 11 if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) && !empty($_POST['email']) ) {
12 12 $name = stripslashes($_POST['name']);
13 13 $email = stripslashes($_POST['email']);
14   - $code = "12324";
  14 + $code = "4749440";
15 15 //Create a new PHPMailer instance
16 16 $mail = new PHPMailer;
17 17 //Tell PHPMailer to use SMTP
... ... @@ -49,10 +49,7 @@ if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) &&
49 49 $mail->Subject = 'Промокод на сайт semena.in.ua';
50 50 //Read an HTML message body from an external file, convert referenced images to embedded,
51 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 53 $mail->send();
57 54 //send the message, check for errors
58 55 header('Location: http://arktika.semena.in.ua/');
... ...
www-arktika/list.php
... ... @@ -137,7 +137,7 @@
137 137 <td style="color: #333333;font-family: Calibri;font-size: 16px;line-height: 18px;letter-spacing: -0.2px;"><br />
138 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 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 141 </td>
142 142 </tr>
143 143 <tr><td align="center" style="text-align:center;">
... ...