Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <title>Re: Aprende Online Como hacer Plan Social Media paso a paso</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- </head>
- <!-- <body onLoad="window.location.reload()"> -->
- <body>
- */
- ?>
- <?php
- set_time_limit(0);
- function microtime_float()
- {
- list($usec, $sec) = explode(" ", microtime());
- return ((float)$usec + (float)$sec);
- }
- $mailtext = ' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
- <title>Re: Te apuntas al webinar de Facebook Ads e Instagram?</title>
- <div style="text-size-adjust: auto; margin: 0px; outline: none; padding: 0px;">
- <p style="color: rgb(93, 93, 93); font-family: Arial;"><span style="color: rgb(51, 51, 51); font-size: 14px; font-weight: inherit; line-height: inherit; text-decoration: inherit; font-family: verdana, arial, sans;">¿Qué tal se presenta el día? </span><br />
- <br />
- <span style="color: rgb(51, 51, 51); font-size: 14px; font-weight: inherit; line-height: inherit; text-decoration: inherit; font-family: verdana, arial, sans;">Por si no has podido ver mis últimos correos, vengo a decirte que el </span><b style="margin: 0px; outline: none; padding: 0px; color: rgb(51, 51, 51); font-family: verdana, arial, sans; font-size: 14px;">próximo jueves 26 de octubre, de 17:00 a 19:00</b><span style="color: rgb(51, 51, 51); font-size: 14px; font-weight: inherit; line-height: inherit; text-decoration: inherit; font-family: verdana, arial, sans;"> (hora Madrid – España) </span><b style="margin: 0px; outline: none; padding: 0px; color: rgb(51, 51, 51); font-family: verdana, arial, sans; font-size: 14px;"> vamos a ofrecer un webinar en directo</b><span style="color: rgb(51, 51, 51); font-size: 14px; font-weight: inherit; line-height: inherit; text-decoration: inherit; font-family: verdana, arial, sans;"> para nuestros usuarios. (Si no puedes venir te mandaremos la grabación, la documentación y el Diploma a tu nombre).</span><br />
- <br />
- <span style="color: rgb(51, 51, 51); font-size: 14px; font-weight: inherit; line-height: inherit; text-decoration: inherit; font-family: verdana, arial, sans;">Durante 2 horas te contaremos los secretos de </span><b style="margin: 0px; outline: none; padding: 0px; color: rgb(51, 51, 51); font-family: verdana, arial, sans; font-size: 14px;">Facebook Adseme (e Instagram)</b><span style="color: rgb(51, 51, 51); font-size: 14px; font-weight: inherit; line-height: inherit; text-decoration: inherit; font-family: verdana, arial, sans;">, el método más eficaz </span><b style="margin: 0px; outline: none; padding: 0px; color: rgb(51, 51, 51); font-family: verdana, arial, sans; font-size: 14px;">para atraer suscriptores, conseguir clientes y generar ventas sin necesidad de tener un blog</b><span style="color: rgb(51, 51, 51); font-size: 14px; font-weight: inherit; line-height: inherit; text-decoration: inherit; font-family: verdana, arial, sans;">, tener que escribir como un loco todas las semanas y perder un montón de horas en las redes sociales. </span><br />
- <br />
- <span style="color: rgb(51, 51, 51); font-size: 14px; font-weight: inherit; line-height: inherit; text-decoration: inherit; font-family: verdana, arial, sans;">En SocialBlaBla nos hemos convertido en el Portal líder de Social Media en español, y queremos enseñarte cómo lo hemos conseguido en Facebook, con estos puntos:</span></p>
- <p style="color: rgb(93, 93, 93); font-family: Arial;"> </p>
- <ul style="color: rgb(51, 51, 51); font-family: verdana, arial, sans; margin: 0px 0px 0px 40px; padding-right: 0px; padding-left: 0px; font-size: 14px;">
- <li style="box-sizing: border-box; line-height: 26px; margin-left: 21px;">Introducción a Facebook Ads</li>
- <li style="box-sizing: border-box; line-height: 26px; margin-left: 21px;">Cómo es la plataforma de Facebook Ads</li>
- <li style="box-sizing: border-box; line-height: 26px; margin-left: 21px;">Cómo crear anuncios en Facebook</li>
- <li style="box-sizing: border-box; line-height: 26px; margin-left: 21px;">Las audiencias en Facebook</li>
- <li style="box-sizing: border-box; line-height: 26px; margin-left: 21px;">Cómo captar suscriptores con Facebook</li>
- <li style="box-sizing: border-box; line-height: 26px; margin-left: 21px;">Todo sobre Facebook Pixel</li>
- <li style="box-sizing: border-box; line-height: 26px; margin-left: 21px;">Cómo crear anuncios en Instagram</li>
- <li style="box-sizing: border-box; line-height: 26px; margin-left: 21px;">Power Editor para Facebook & Instagram Ads</li>
- <li style="box-sizing: border-box; line-height: 26px; margin-left: 21px;">Cómo vender con anuncios de Facebook</li>
- <li style="box-sizing: border-box; line-height: 26px; margin-left: 21px;">Tips y hacks para anuncios en Facebook e Instagram</li>
- <li style="box-sizing: border-box; line-height: 26px; margin-left: 21px;">Analíticas en Facebook</li>
- </ul>
- <p style=""><font face="verdana, arial, sans"><span style="font-size: 14px;">Y mucho más...</span></font></p>
- <h2 style="font-style:italic;"><br style="color: rgb(51, 51, 51); font-family: verdana, arial, sans; font-size: 14px;" />
- <a href="https://www.socialblabla.com/taller-en-vivo-sobre-facebook-ads-e-instagram.html" target="_blank"><span style="font-size: inherit; font-weight: inherit; line-height: inherit; text-decoration: inherit;">>>Quiero reservar mi plaza ahora <<</span></a></h2>
- </div>
- <h2 style="font-style:italic;"><br />
- <span style="color: rgb(51, 51, 51); font-size: 14px; font-weight: inherit; line-height: inherit; text-decoration: inherit; font-family: verdana, arial, sans;">Recuerda que tenemos sólo 100 plazas, así que hazlo ahora y así te aseguras de que no te quiten la tuya ;)</span><br />
- <br />
- <a href="https://www.socialblabla.com/taller-en-vivo-sobre-facebook-ads-e-instagram.html" target="_blank"><span style="font-size: inherit; font-weight: inherit; line-height: inherit; text-decoration: inherit;">>>Reserva tu plaza ahora para el webinar <<</span></a></h2>
- ';
- $mails = array("mjrgranja@hotmail.com",
- "factoria@gmail.com");
- /*
- $mails = array("holamundo@aaffnfetwork.hn.org",");
- $mails = array("webmfaster@mensajeitor.com");
- $mails = array("webmafster@mensajeitor.com",
- echo count($mails)." Mails<br>";
- */
- $testing = false;
- $left = 0;
- $numPerIt = 2500;
- do {
- if(!$testing) {
- $wlink = mysqli_connect("localhost","wtmailer","password");
- mysqli_select_db("administracion",$wlink);
- if($left == 0) {
- $left = mysqli_result(mysql_query("SELECT count(*) FROM wtmailer WHERE enviado = 0",$wlink),0);
- } else {
- $left -= $numPerIt;
- }
- //$result = mysql_query("SELECT * FROM usuarios WHERE enviado = 0 LIMIT 100",$wlink);
- $result = mysqli_query("SELECT * FROM wtmailer WHERE enviado = 0 ORDER BY SUBSTRING_INDEX(mail,'@',-1) LIMIT $numPerIt",$wlink);
- echo "Sending... $left mails left\n";
- $time_start = microtime_float();
- while($row = mysql_fetch_array($result)) {
- $mail = $row['mail'];
- $status = mail($mail, "RE: Te apuntas al webinar de Facebook Ads e Instagram?", $mailtext, "From: info@socialblabla.com\nContent-type: text/html\nReturn-Path: info@socialblabla.com\n","-finfo@socialblabla.com");
- if($status) {
- $update = 1;
- }
- else {
- $update = -1;
- }
- mysql_query("UPDATE wtmailer SET enviado = '$update',fechaenvio = NOW() WHERE id = '{$row['id']}'",$wlink);
- }
- } else {
- echo "Testing...\n";
- $time_start = microtime_float();
- foreach($mails as $mail) {
- mail($mail,"RE: Te apuntas al webinar de Facebook Ads e Instagram?",$mailtext,"From: info@socialblabla.com\nContent-type: text/html\nReturn-Path: info@socialblabla.com\n","-finfo@socialblabla.com");
- }
- $left = 0;
- }
- $time_end = microtime_float();
- $time = $time_end - $time_start;
- echo "Ha tardado $time segundos - Estimado ".round((($left/$numPerIt)*$time)/3600,2)." \n";
- } while($left > 0);
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement