Advertisement
Guest User

Untitled

a guest
Nov 9th, 2015
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. <?php
  2. $name = $_POST['name'];
  3. $email = $_POST['email'];
  4. $subj = $_POST['subj'];
  5. $mess = $_POST['message'];
  6. $country = $_POST['country'];
  7. $utm_source = $_POST['utm_source'];
  8. $utm_medium = $_POST['utm_medium'];
  9. $utm_campaign = $_POST['utm_campaign'];
  10. $utm_term = $_POST['utm_term'];
  11. $source_type = $_POST['source_type'];
  12. $source = $_POST['source'];
  13. $position_type = $_POST['position_type'];
  14. $position = $_POST['position'];
  15. $added = $_POST['added'];
  16. $creative = $_POST['creative'];
  17. $matchtype = $_POST['matchtype'];
  18. $location = $_POST['location'];
  19.  
  20. $subject = 'Заявка TiSO.GLOBAL';
  21.  
  22. //$headers= "From: noreply <noreply@noreply.ru>\r\n";
  23. //$headers.= "Reply-To: noreply <noreply@noreply.ru>\r\n";
  24. $headers.= "X-Mailer: PHP/" . phpversion()."\r\n";
  25. $headers.= "MIME-Version: 1.0" . "\r\n";
  26. $headers.= "Content-type: text/plain; charset=utf-8\r\n";
  27.  
  28. $to = "triowork2@gmail.com";
  29.  
  30. $message = "Имя: $name\n";
  31. $message .= "Email: $email\n";
  32. $message .= "Страна: $country\n";
  33. $message .= "Тип продукта: $subj\n";
  34. $message .= "Сообщение: $mess\n\n";
  35. $message .= "Источник: $utm_source\n";
  36. $message .= "Тип источника: $utm_medium\n";
  37. $message .= "Кампания: $utm_campaign\n";
  38. $message .= "Ключевое слово: $utm_term\n";
  39. $message .= "Тип площадки(поиск или контекст): $source_type\n";
  40. $message .= "Площадка: $source\n";
  41. $message .= "Спецразмещение или гарантия: $position_type\n";
  42. $message .= "Позиция объявления в блоке: $position\n";
  43. $message .= "Показ по дополнительным ролевантным фразам: $added\n";
  44. $message .= "Идентификатор объявления: $creative\n";
  45. $message .= "Тип соответствия ключа(e-точное/p-фразовое/b-широкое): $matchtype\n";
  46. $message .= "Гео-положение: $location\n";
  47.  
  48. mail ($to,$subject,$message,$headers);
  49. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement