Commit b7a2272704d180d333b16adaf62a164ec7ccb940
1 parent
b73f2266
123
Showing
2 changed files
with
7 additions
and
5 deletions
Show diff stats
www-arktika/email.php
... | ... | @@ -9,6 +9,10 @@ require 'PHPMailer/PHPMailerAutoload.php'; |
9 | 9 | |
10 | 10 | |
11 | 11 | if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) && !empty($_POST['email']) ) { |
12 | + | |
13 | + | |
14 | + | |
15 | + | |
12 | 16 | $name = stripslashes($_POST['name']); |
13 | 17 | $email = stripslashes($_POST['email']); |
14 | 18 | $code = "4749440"; |
... | ... | @@ -49,7 +53,8 @@ if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) && |
49 | 53 | $mail->Subject = 'Промокод на сайт semena.in.ua'; |
50 | 54 | //Read an HTML message body from an external file, convert referenced images to embedded, |
51 | 55 | //convert HTML into a basic plain-text alternative body |
52 | - $mail->msgHTML(file("list.php?promo=232")); | |
56 | + $list = file_get_contents("list.php"); | |
57 | + $mail->msgHTML($list); | |
53 | 58 | $mail->send(); |
54 | 59 | //send the message, check for errors |
55 | 60 | header('Location: http://arktika.semena.in.ua/'); | ... | ... |