Advertisement
Guest User

per

a guest
Jul 21st, 2016
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 10.61 KB | None | 0 0
  1. <?php
  2.  
  3. //$content = '';
  4. $content = '
  5.  
  6. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  7. <html>
  8. <head>
  9.    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
  10.    <style type="text/css">
  11.        html { -webkit-text-size-adjust:none; -ms-text-size-adjust: none;}
  12.        a{outline:none!important;}
  13.        @media only screen and (min-device-width: 600px) {
  14.            .table600{
  15.                width:600px !important;
  16.            }
  17.        }
  18.        @media only screen and (max-device-width: 600px), only screen and (max-width: 600px) {
  19.            table[class="table600"]{
  20.                width: 100% !important;
  21.            }
  22.            div[class="mob_100"]{
  23.                width:100% !important;
  24.            }
  25.            table[class="mob_100"]{
  26.                width:100% !important;
  27.            }
  28.            a[class="mob_btn"]{
  29.                line-height:1.2!important;
  30.                padding:20px 5%!important;
  31.                width:90%!important;
  32.            }
  33.        }
  34.    </style>
  35.  
  36. </head>
  37. <body style="padding:0;margin:0;">
  38.  
  39. <div align="center">
  40.    <!--[if gte mso]>
  41.    <table width="600" border="0" cellspacing="0" cellpadding="0">
  42.        <tr><td>
  43.    <![endif]-->
  44.    <table border="0" cellspacing="0" cellpadding="0" class="table600" width="100%" style="width: 600px;
  45.           min-width:300px;
  46.           color: #000000;
  47.           /*font-family: Arial, Helvetica, sans-serif;*/
  48.           -webkit-text-size-adjust: none;
  49.           font-size: 15px;
  50.           line-height: 18px;">
  51.        <tbody><tr>
  52.            <td align="center">
  53.                <div style="min-width:300px;">
  54.                    <table border="0" cellspacing="0" cellpadding="0" width="100%" style="min-width:300px;">
  55.                        <!--preheader-->
  56.                        <tbody>
  57.                        <tr>
  58.                            <td valign="middle" align="center" bgcolor="#051634" style="font-family: Arial, Helvetica, sans-serif;
  59.                                -webkit-text-size-adjust: none;
  60.                                font-size:12px;
  61.                                color:#727a87;
  62.                                padding:10px 20px 10px;
  63.                                line-height:18px">
  64.                                Знакомься с победителями!
  65.                                <br>Не показываются картинки? <a style="color: #727a87;text-decoration: underline;" title="" href="{$AccessibilityLink}" target="_blank">Смотрите версию в&nbsp;браузере</a>
  66.  
  67.                            </td>
  68.                        </tr>
  69.                        <!--preheader-->
  70.                        <!--header-->
  71.                        <tr>
  72.                            <td>
  73.                                <a href="http://golereya.com/?utm_source=announcement-mailing&utm_medium=email&utm_term=header&utm_content=imagelink&utm_campaign=2016-07-winners-golereya&ticket={$RecipientEmailAuthenticationTicket}" target="_blank" style="display: block;text-align:center;">
  74.                                    <img alt="Второй сезон ГОЛ!ЕРЕИ завершился в мае!" src="http://letters.renat.production.adwatch.ru/bud/task-1029780/poster.jpg" border="0" style="display:block;border:none;text-decoration:none;max-width:100%;min-width:100%;">
  75.                                </a>
  76.                            </td>
  77.                        </tr>
  78.                        <!--header END-->
  79.                        <!--appeal-->
  80.                        <tr>
  81.                            <td align="center">
  82.  
  83.                                <div style="width:90%;margin: 0 auto 40px; font-family: Arial, Helvetica, sans-serif; -webkit-text-size-adjust: none; font-size:16px; line-height:24px;">
  84.  
  85.                                    <p style="margin: 44px 0 40px; padding: 0; font-weight: bold;">
  86.                                        Привет, {$RecipientFirstName}!<br>
  87.                                        Второй сезон ГОЛ!ЕРЕИ завершился в мае!
  88.                                    </p>
  89.  
  90.                                    <p style="margin: 24px 0; padding: 0; ">Хотим еще раз вспомнить и поздравить победителей:</p>
  91.  
  92.  
  93.                                    <p style="margin: 24px 0; padding: 0;"><strong>1 место — Дмитрий Грачев, Санкт-Петербург.</strong><br>
  94.                                    Его <a href="https://youtu.be/NS7roYIgYV4?list=PLcUHubivUKKIq13ab1szotTiXnyqxKC07&t=38" style="color: #d60926; text-decoration: underline; font-weight: bold;">красивый комбинационный гол</a>, украсивший слаженную игру всей&nbsp;команды, стал лидером сезона.<br>
  95.                                    Его заслуженный приз&nbsp;- сертификат на&nbsp;получение 2&ndash;х билетов на&nbsp;Чемпионат&nbsp;Мира по&nbsp;Футболу FIFA&nbsp;2018<sup style="line-height: 0.5;">тм</sup>&nbsp;- вручили Георгий Черданцев и&nbsp;Нобель Арустамян в&nbsp;эфире программы «После&nbsp;футбола» на&nbsp;канале Матч&nbsp;ТВ.
  96.                                    </p>
  97.  
  98.                                    <p style="margin: 24px 0; padding: 0;"><strong>2 место — <a href="https://youtu.be/NS7roYIgYV4?list=PLcUHubivUKKIq13ab1szotTiXnyqxKC07&t=85" style="color: #d60926; text-decoration: underline;">великолепный гол</a> Юрия Брейкина, Санкт-Петербург</strong>, получившего в&nbsp;подарок комплект футбольной формы и&nbsp;целую сетку футбольных мячей от&nbsp;BUD&nbsp;Alcohol&nbsp;Free.</p>
  99.  
  100.                                    <p style="margin: 24px 0; padding: 0;"><strong>3 место — <a href="https://youtu.be/NS7roYIgYV4?list=PLcUHubivUKKIq13ab1szotTiXnyqxKC07&t=139" style="color: #d60926; text-decoration: underline;">феноменальный гол</a> Егора Алёшина, Московская область</strong>, заработавшего комплект футбольной&nbsp;формы.</p>
  101.  
  102.                                </div>
  103.                            </td>
  104.                        </tr>
  105.                        <!--more END-->
  106.                        <!--appeal-->
  107.                        <tr>
  108.                            <td align="center">
  109.  
  110.                                <div style="width:90%;margin: 0 auto 40px; font-family: Arial, Helvetica, sans-serif; -webkit-text-size-adjust: none; font-size:16px; line-height:24px;">
  111.  
  112.                                    <p style="margin: 15px 0; padding: 0;"><a href="http://golereya.com/?utm_source=announcement-mailing&utm_medium=email&utm_term=novyj-sezon&utm_content=textlink&utm_campaign=2016-07-winners-golereya&ticket={$RecipientEmailAuthenticationTicket}" style="color: #d60926; text-decoration: underline;">Новый сезон</a> уже стартовал,<br>следи за новостями:</p>
  113.  
  114.                                    <table align="center">
  115.                                        <tbody>
  116.                                        <tr>
  117.                                            <td style="padding: 7px;"><a href="https://vk.com/budalcofree"><img src="http://letters.renat.production.adwatch.ru/bud/task-1029780/ico_vk.png" border="0" alt="Вконтакте" style="display:block;border:none;text-decoration:none;"></a></td>
  118.                                            <td style="padding: 7px;"><a href="https://www.facebook.com/budalcofree"><img src="http://letters.renat.production.adwatch.ru/bud/task-1029780/ico_fb.png" border="0" alt="Facebook" style="display:block;border:none;text-decoration:none;"></a></td>
  119.                                        </tr>
  120.                                        </tbody>
  121.                                    </table>
  122.  
  123.                                </div>
  124.                            </td>
  125.                        </tr>
  126.                        <!--more END-->
  127.                        <!--footer-->
  128.                        <tr>
  129.                            <td valign="middle" align="center" bgcolor="#f4f5f5" style="font-family: Arial, Helvetica, sans-serif;
  130.                                -webkit-text-size-adjust: none;
  131.                                font-size:12px;
  132.                                color:#858686;
  133.                                padding:47px 20px 45px;
  134.                                line-height:18px">
  135.  
  136.                                Хочешь всегда быть в&nbsp;курсе последних новостей&nbsp;—<br>
  137.                                добавь адрес <a style="color: #858686;" title="" href="mailto:stadium@email.bud.ru" target="_blank">stadium@email.bud.ru</a> в&nbsp;адресную&nbsp;книгу.<br>
  138.                                Больше не&nbsp;хочешь получать рассылки? <a style="color: #858686;text-decoration: underline;" title="" href="{$Unsubscribelink}" target="_blank">Отписаться</a>
  139.  
  140.                            </td>
  141.                        </tr>
  142.                        <!--footer END-->
  143.                        </tbody>
  144.                    </table>
  145.                </div>
  146.            </td>
  147.        </tr>
  148.        </tbody></table>
  149.    <!--[if gte mso]>
  150.    </td></tr>
  151.    </table>
  152.    <![endif]-->
  153.  
  154.  
  155.  
  156.  
  157. </div>
  158.  
  159. </body>
  160. </html>
  161. ';
  162.  
  163.  
  164. $headers = "Content-Type: text/html; charset=UTF-8";
  165. $title = "=?utf-8?B?". base64_encode("TEST"). "?=";
  166.  
  167. $m = mail('web-DEud9n@mail-tester.com', $title, $content, $headers);
  168. //$m = mail('infamexs@gmail.com', $title, $content, $headers);
  169. //$m = mail('slava@t-agency.ru', $title, $content, $headers);
  170. //$m = mail('infamexs@yandex.ru', $title, $content, $headers);
  171. //$m = mail('enikeevrenat@yandex.ru', $title, $content, $headers);
  172. //$m = mail('enikeev.renat@gmail.com', $title, $content, $headers);
  173. //$m = mail('renn@mail.ru', $title, $content, $headers);
  174. //$m = mail('testsite@traf.spb.ru', $title, $content, $headers);
  175. //$m = mail('sky@t-agency.ru', $title, $content, $headers);
  176. //$m = mail('v.kara@t-agency.ru', $title, $content, $headers);
  177. //$m = mail('pr@t-agency.ru', $title, $content, $headers);
  178. //$m = mail('t.beskrovnaya@gmail.com', $title, $content, $headers);
  179. //$m = mail('s.karimova@traf.spb.ru', $title, $content, $headers);
  180.  
  181. if (!$m)
  182.     print "error";
  183.  
  184. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement