Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This message was created automatically by mail delivery software.
- A message that you sent could not be delivered to one or more of
- its recipients. This is a permanent error. The following address(es)
- failed:
- javiercc@vgsalud.com:
- SMTP error from remote server for RCPT TO command, host: mx.vgsalud.com (217.116.0.227) reason: 554 5.7.1 Service unavailable; Client host [82.165.159.5] blocked using bl
- .spamcop.net; Blocked - see http://www.spamcop.net/bl.shtml?82.165.159
- .5 - IP: 82.165.159.5 en Lista Negra por Spam/Virus...contacte con su
- administrador
- --- The header of the original message is following. ---
- Received: from imayine.com ([217.160.130.227]) by mrelayeu.kundenserver.de
- (mreue005 [212.227.15.142]) with ESMTPA (Nemesis) id 0MDCvo-1fC3cN0k6G-00GcNG
- for <javiercc@vgsalud.com>; Tue, 24 Apr 2018 13:26:19 +0200
- Date: Tue, 24 Apr 2018 13:26:19 +0200
- Return-Path: hello@imayine.com
- To: javiercc@vgsalud.com
- From: "Imayine.com" <hello@imayine.com>
- Subject: El estado de tu pedido ha cambiado
- Message-ID: <93006ca87d5a5b7d8ff063ca2cef9a2d@imayine.com>
- X-Priority: 3
- X-Mailer: PHPMailer 5.1 (phpmailer.sourceforge.net)
- MIME-Version: 1.0
- Content-Type: multipart/alternative;
- boundary="b1_93006ca87d5a5b7d8ff063ca2cef9a2d"
- X-Provags-ID: V03:K1:pXI5+RhM4JNdR+eyUQ5xs1070MbWBauo898ZS/UflkxVJ0XGTJL
- y1jpW4wDH4OnpkT2IaDLnhhiDY9+SOuUSr+RomdT6k5eBGUtHaKdhgAga/bqx4Rd3dTpx4A
- hWXKt0uaMGTrR0lPGBXxmS40mR1u2V7v0mpPrcq34PN6E0Wyi2vyHoe2eYM+3O6mjTTkABZ
- 6JqLQ51b0r24Y0qIOmoig==
- X-UI-Out-Filterresults: junk:10;V01:K0:HJXWt1poMiQ=:qbcYTFNsEPjkHw1CGxED7E1L
- ZvFp7ufy28vmCBXh2rKQ3TnSxjJTfgZbJ/UtbvucbyPHddKaGoemKFKHjpwHWV/nKgJlNanfT
- a06RdAct464uHm9pYbpgQjvHokZZJoSVJhS2Rx5qH0OUxu6+3PkxmKYyZwlO1N2qFOUq3px4e
- 5gd6w+ZoofLWUOdBSmRiTGsF1qRTW2lITGvYXRubkq6jbmh1MpqQ2uP2GPuPVE8TmY1KdqRkK
- JkPBsbTQxi3xM+NHM9apJw2ySTa+3GyjSTZI90CmaoFL3dyt2B/tAHxNEruJaZuAGDuHoU9EF
- rRo7gQpVnA1MRruLGb1BlPBIfI4Th2ZRLGUdgRjmQp2cnz+fTuawa0Sp4Xxe72gF2qZKbv9DX
- Zdnh2bT//7XnEEz7+SrgLZiXn+/fA//Yuf+lbikjpn4MvX1xfPFynm/fNEj6aDCn37m2tAgd9
- la/zx+HSkRZZnMmEuHvPJhadmAVzu0THTG6VfWQbMSrIUKYtDS67hxEkoOamceInXnUiXzU1q
- JJjyrPhB5NkEZ9++S0OBnjuAZPme+684COuTxfOsgg68taVVuT564NPaggnxEZ5JF0FckEjWS
- 9M4pdlL4MPADF/KKVPYBU9LFhBMDFbkBHXafO1x0jCbcUHqp1tjlFjfESbrlBzfkkLbFi70F5
- jci27PdqlFUoNwcWfa1zXHSVL6ckEZRMBDKID9/iNoX+IpupAQG2r3ISw5+5k2CYdfmMiW7zd
- W81bLoMzylwmam7U6HVNZ8uSvRp9DIsHAQtm2lhq6hjCGiPImjnjVicFf0Qzfnp3pqXBIP1QI
- m8kK6x/C4D4Tt6ur18lSFaEdmSnACu6q4BGF0b0j+63nrivn+iH0nzOEZJh9NJ3jsbTlc4m5y
- nsPh5CPAEuzEQ8u/gg==
- ==
- Hola JavierCC JavierCC, te informamos de un cambio en el estado de tu pedido.
- · Pedido Nº: 17863
- · Tu pedido ha cambiado a: en producción
- Fecha de entrega estimada: 01/05/2018
- Comenzamos con tu pedido
- "Si puedes imaginarlo...
- ...Puedes crearlo!"
- 2018 © imayine ®
- Picazzo Creative S.L. Calle Badajoz, 177 C, 06200 Almendralejo Spain
- ==
- function emailCambioEstado($idpedido) {
- $db = $this->bbdd();
- $query = "select * from pedidos where id='" . $idpedido . "'";
- $result = mysqli_query($db, $query);
- $row = mysqli_fetch_assoc($result);
- $query8 = "select * from usuarios where id='" . $row['idusuario'] . "'";
- $result8 = mysqli_query($db, $query8);
- $row8 = mysqli_fetch_assoc($result8);
- $idioma = $this->cargar_idioma($row['idioma']);
- $dnicif = $row8['dni'];
- $nombre = $row8['nombre'] . " " . $row8['apellidos'];
- $destinatario = $row8['email']; //"alvaro@picazzo.es";//"hello@imayine.com";
- //$destinatario = "alonso@picazzo.es";
- if($row['tipo_pedido']=='manual'){
- $queryMan = "select email from pedidos_manuales_info where id_pedido='" . $row['id'] . "'";
- $resultMan = mysqli_query($db, $queryMan);
- $rowMan = mysqli_fetch_assoc($resultMan);
- $destinatario = $rowMan['email'];
- }
- $asunto = str_replace("[num]", $idpedido, $idioma['email_asunto_estado']);
- $base = "http://www.imayine.com/";
- if ($row8['nombre_cuenta'] == '') {
- $nombre = $row8['nombre'];
- } else {
- $nombre = $row8['nombre_cuenta'] . " " . $row8['apellido_cuenta'];
- }
- if ($row8['tipo'] != "particular") {
- $dnicif = $row8['cif'];
- } else {
- $dnicif = $row8['dni'];
- }
- $mensaje = '<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>hoja privada</title>
- <style>
- body{background-color:#eeeeee;}
- a {text-decoration: none !important;
- color:#969696 !important;
- }
- </style>
- </head>
- <body>
- <div style="background-color:#eeeeee;">
- <table width="105%" height="100%" class="tabla-principal" border="0" cellpadding="0" cellspacing="0" style=" margin-bottom:-25px; margin-top:-25px; margin-left:-15px; margin-right:-15px">
- <tr>
- <td align="center" valign="top" bgcolor="#eeeeee">
- <br />
- <table width="625" align="center" bgcolor="#FFFFFF">
- <tr>
- <td width="25" height="25"></td>
- <td colspan="2"></td>
- <td width="25"></td>
- </tr>
- <tr>
- <td rowspan="5"></td>
- <td height="70" align="left" valign="top"><p><a href="http://www.imayine.com"><img src="http://www.imayine.com/hojapedidos/logo.png" width="161" height="62" border="0" /></a></p></td>
- <td height="63" align="right" valign="top"><img src="http://www.imayine.com/hojapedidos/redes.png" alt="" width="120" height="29" border="0" usemap="#MapMap" />
- <map name="MapMap" id="MapMap">
- <area shape="rect" coords="1,1,29,28" href="https://www.facebook.com/imayine" target="_blank" />
- <area shape="rect" coords="45,2,75,28" href="https://twitter.com/imayine_com" target="_blank" />
- <area shape="rect" coords="89,2,124,31" href="https://www.pinterest.com/imayine/" target="_blank" />
- </map></td>
- <td rowspan="5"></td>
- </tr>
- <tr>
- <td colspan="2" align="left" valign="top">
- <p style="font-size: 25px; font-family:' . "'Trebuchet MS'" . ', Arial, Helvetica, sans-serif; color:#515151; text-align: left;text-decoration: none;"><br>' . $idioma['email_saludo'] . ' <span style="font-weight:bold;">' . $nombre . '</span>, ' . $idioma['email_estado_titulo'] . '</p>
- <table width="100%" >
- <tr>
- <td >
- <p style="font-size: 20px; font-family:' . "'Trebuchet MS'" . ', Arial, Helvetica, sans-serif; color:#969696;text-decoration:none; text-align: left; font-weight:100">
- · ' . $idioma['p7_num_pedido'] . ': <span style="color:#515151;">' . $idpedido . '<br></span>
- · ' . $idioma['email_estado_subtitulo'] . ' <span style="font-weight:bold; color:#515151; ">';
- switch ($row['estado']) {
- case ("enviado"):
- $mensaje = $mensaje . $idioma['pedidoEnviado'];
- $mensaje = $mensaje . '</span><br><br><span style="font-size:20px; color:#969696;">' . $idioma['msn_pedidoEnviado'];
- if ($row["num_seguimiento"] != '') {
- $url = "javascript://";
- switch ($row["compania_envio"]) {
- case 'mrw':
- //if($row["id_envio"]==2 || $row["id_envio"]==4 || $row["id_envio"]==5 || $row["id_envio"]==8)
- if($row["id_envio"]==2 || $row["id_envio"]==4 || $row["id_envio"]==5 || $row["id_envio"]==8 || ($row["id_envio"]==0&&$row["idioma"]=='es')) {
- $url = "http://www.mrw.es/seguimiento_envios/MRW_resultados_consultas.asp?modo=nacional&envio=" . $row["num_seguimiento"];
- } else {
- $url = "http://www.mrw.es/seguimiento_envios/MRW_resultados_consultas.asp?modo=internacional&envio=" . $row["num_seguimiento"];
- }
- $mensaje = $mensaje . '<p style="font-size: 18px; font-family:' . "'Trebuchet MS'" . ', Arial, Helvetica, sans-serif; color:#969696;text-decoration:none; text-align: left; font-weight:100">
- · ' . $idioma['sigue_envio'] . ' <a href="' . $url . '"><span style="color:#268de5;">' . $idioma['text_aqui'] . '</span></a>.<br><p>';
- break;
- case 'dhl':
- $url = "http://www.dhl.es/es/express/seguimiento.html?AWB=" . $row["num_seguimiento"] . "&brand=DHL";
- $mensaje = $mensaje . '<p style="font-size: 18px; font-family:' . "'Trebuchet MS'" . ', Arial, Helvetica, sans-serif; color:#969696;text-decoration:none; text-align: left; font-weight:100">
- · ' . $idioma['sigue_envio'] . ' <a href="' . $url . '"><span style="color:#268de5;">' . $idioma['text_aqui'] . '</span></a>.<br><p>';
- break;
- case 'correos':
- $url = "http://www.correos.es/ss/Satellite/site/aplicacion-1349167812834-herramientas_y_apps/detalle_app-sidioma=es_ES";
- $mensaje = $mensaje . '<p style="font-size: 18px; font-family:' . "'Trebuchet MS'" . ', Arial, Helvetica, sans-serif; color:#969696;text-decoration:none; text-align: left; font-weight:100">
- · Introduce el numero de seguimiento: <span style="font-weight:bold; color:#515151; ">' . $row["num_seguimiento"] . ' </span> <a href="' . $url . '"><span style="color:#268de5;">' . $idioma['text_aqui'] . '</span></a>.<br><p>';
- break;
- }
- }
- break;
- case ("esperando"):
- $mensaje = $mensaje . $idioma['pedidoEsperando'];
- $mensaje = $mensaje . '</span><br><br><span style="font-size:20px; color:#969696;">' . $idioma['msn_pedidoEsperando'];
- break;
- case ("cancelado"):
- $mensaje = $mensaje . $idioma['pedidoCancelado'];
- $mensaje = $mensaje . '</span><br><br><span style="font-size:20px; color:#969696;">' . $idioma['msn_pedidoCancelado'];
- break;
- case ("produccion"):
- $mensaje = $mensaje . $idioma['pedidoProduccion'];
- $mensaje = $mensaje . '</span><br><br>';
- $mensaje = $mensaje . '<span style="font-size:20px; color:#969696;">' . $idioma['fecha_entrega_pedido'] . '</span><i style="font-size:25px; color:#f9b22d;"> ' . $row["fecha_entrega"] . '</i><br><br>';
- $mensaje = $mensaje . '<span style="font-size:20px; color:#969696;">' . $idioma['msn_pedidoProduccion'];
- break;
- }
- $mensaje = $mensaje . '</span></p></td>
- <td >
- <img align="center" valign="middle" src="http://www.imayine.com/hojapedidos/email-estado-' . $row['estado'] . '.png" />
- </td>
- </tr>
- </table>
- <p></p></td>
- </tr>
- <tr>
- <td colspan="2" style="font-family:' . "'Trebuchet MS'" . ', Arial, Helvetica, sans-serif; color:#666; font-size:10px; font-style:italic"></td>
- </tr>
- <tr>
- <td colspan="2" align="center" valign="top"><p><img src="linea.jpg" width="570" height="1" /></p>
- <p><a href="http://www.imayine.com"><img src="http://www.imayine.com/hojapedidos/mascota.png" width="75" height="75" border="0" /></a></p>
- <p style="font-family:' . "'Trebuchet MS'" . ' , Arial, Helvetica, sans-serif; color:#999; font-style:italic;">' . $idioma['eslogan'] . '</p>
- <p><img src="linea.jpg" width="570" height="1" /></p></td>
- </tr>
- <tr>
- <td colspan="2" align="center"><p><br />
- <img src="http://www.imayine.com/hojapedidos/redes.png" width="120" height="29" border="0" usemap="#Map" /></p>
- <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#999">' . date("Y") . ' © imayine ®<br />
- Picazzo Creative S.L. Calle Badajoz, 177 C, 06200 Almendralejo Spain</p></td>
- </tr>
- <tr>
- <td height="25"></td>
- <td colspan="2"></td>
- <td></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <map name="Map" id="Map">
- <area shape="rect" coords="1,1,29,28" href="https://www.facebook.com/imayine" target="_blank" />
- <area shape="rect" coords="45,2,75,28" href="https://twitter.com/imayine_com" target="_blank" />
- <area shape="rect" coords="89,2,124,31" href="https://www.pinterest.com/imayine/" target="_blank" />
- </map>
- </div>
- </body>
- </html>';
- mysqli_close($db);
- $this->email_enviar($asunto, $mensaje, $destinatario, "Imayine.com", "hello@imayine.com");
- //echo $mensaje;
- }
- function email_enviar($asunto, $mensaje, $destinatario, $fromname, $from) {
- if ($fromname == "") {
- $fromname = "imayine.com";
- }
- if ($from == "") {
- $from = "hello@imayine.com";
- }
- require_once('./include/class.phpmailer.php');
- $mail = new PHPMailer();
- $mail->Mailer = "smtp";
- $mail->Helo = "imayine.com";
- $mail->SMTPAuth = true;
- $mail->Host = "212.227.15.142";
- //$mail->SMTPSecure="tls";
- $mail->Port = 25;
- $mail->Username = "hello@imayine.com";
- $mail->Password = "ideal12";
- $mail->From = $from;
- $mail->FromName = utf8_encode($fromname);
- $mail->Timeout = 60;
- $mail->IsHTML(true);
- $mail->CharSet = "UTF-8";
- $mail->AddAddress($destinatario);
- $mail->Subject = utf8_encode($asunto);
- $mail->Body = utf8_encode($mensaje);
- $mail->AltBody = strip_tags(utf8_encode($mensaje));
- $mail->Send();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement