Advertisement
Guest User

CASO 798167474

a guest
Apr 26th, 2018
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.28 KB | None | 0 0
  1. This message was created automatically by mail delivery software.
  2.  
  3. A message that you sent could not be delivered to one or more of
  4. its recipients. This is a permanent error. The following address(es)
  5. failed:
  6.  
  7. javiercc@vgsalud.com:
  8. 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
  9. .spamcop.net; Blocked - see http://www.spamcop.net/bl.shtml?82.165.159
  10. .5 - IP: 82.165.159.5 en Lista Negra por Spam/Virus...contacte con su
  11. administrador
  12.  
  13.  
  14.  
  15. --- The header of the original message is following. ---
  16.  
  17. Received: from imayine.com ([217.160.130.227]) by mrelayeu.kundenserver.de
  18. (mreue005 [212.227.15.142]) with ESMTPA (Nemesis) id 0MDCvo-1fC3cN0k6G-00GcNG
  19. for <javiercc@vgsalud.com>; Tue, 24 Apr 2018 13:26:19 +0200
  20. Date: Tue, 24 Apr 2018 13:26:19 +0200
  21. Return-Path: hello@imayine.com
  22. To: javiercc@vgsalud.com
  23. From: "Imayine.com" <hello@imayine.com>
  24. Subject: El estado de tu pedido ha cambiado
  25. Message-ID: <93006ca87d5a5b7d8ff063ca2cef9a2d@imayine.com>
  26. X-Priority: 3
  27. X-Mailer: PHPMailer 5.1 (phpmailer.sourceforge.net)
  28. MIME-Version: 1.0
  29. Content-Type: multipart/alternative;
  30. boundary="b1_93006ca87d5a5b7d8ff063ca2cef9a2d"
  31. X-Provags-ID: V03:K1:pXI5+RhM4JNdR+eyUQ5xs1070MbWBauo898ZS/UflkxVJ0XGTJL
  32. y1jpW4wDH4OnpkT2IaDLnhhiDY9+SOuUSr+RomdT6k5eBGUtHaKdhgAga/bqx4Rd3dTpx4A
  33. hWXKt0uaMGTrR0lPGBXxmS40mR1u2V7v0mpPrcq34PN6E0Wyi2vyHoe2eYM+3O6mjTTkABZ
  34. 6JqLQ51b0r24Y0qIOmoig==
  35. X-UI-Out-Filterresults: junk:10;V01:K0:HJXWt1poMiQ=:qbcYTFNsEPjkHw1CGxED7E1L
  36. ZvFp7ufy28vmCBXh2rKQ3TnSxjJTfgZbJ/UtbvucbyPHddKaGoemKFKHjpwHWV/nKgJlNanfT
  37. a06RdAct464uHm9pYbpgQjvHokZZJoSVJhS2Rx5qH0OUxu6+3PkxmKYyZwlO1N2qFOUq3px4e
  38. 5gd6w+ZoofLWUOdBSmRiTGsF1qRTW2lITGvYXRubkq6jbmh1MpqQ2uP2GPuPVE8TmY1KdqRkK
  39. JkPBsbTQxi3xM+NHM9apJw2ySTa+3GyjSTZI90CmaoFL3dyt2B/tAHxNEruJaZuAGDuHoU9EF
  40. rRo7gQpVnA1MRruLGb1BlPBIfI4Th2ZRLGUdgRjmQp2cnz+fTuawa0Sp4Xxe72gF2qZKbv9DX
  41. Zdnh2bT//7XnEEz7+SrgLZiXn+/fA//Yuf+lbikjpn4MvX1xfPFynm/fNEj6aDCn37m2tAgd9
  42. la/zx+HSkRZZnMmEuHvPJhadmAVzu0THTG6VfWQbMSrIUKYtDS67hxEkoOamceInXnUiXzU1q
  43. JJjyrPhB5NkEZ9++S0OBnjuAZPme+684COuTxfOsgg68taVVuT564NPaggnxEZ5JF0FckEjWS
  44. 9M4pdlL4MPADF/KKVPYBU9LFhBMDFbkBHXafO1x0jCbcUHqp1tjlFjfESbrlBzfkkLbFi70F5
  45. jci27PdqlFUoNwcWfa1zXHSVL6ckEZRMBDKID9/iNoX+IpupAQG2r3ISw5+5k2CYdfmMiW7zd
  46. W81bLoMzylwmam7U6HVNZ8uSvRp9DIsHAQtm2lhq6hjCGiPImjnjVicFf0Qzfnp3pqXBIP1QI
  47. m8kK6x/C4D4Tt6ur18lSFaEdmSnACu6q4BGF0b0j+63nrivn+iH0nzOEZJh9NJ3jsbTlc4m5y
  48. nsPh5CPAEuzEQ8u/gg==
  49.  
  50. ==
  51.  
  52.  
  53.  
  54.  
  55.  
  56. Hola JavierCC JavierCC, te informamos de un cambio en el estado de tu pedido.
  57.  
  58. · Pedido Nº: 17863
  59. · Tu pedido ha cambiado a: en producción
  60.  
  61. Fecha de entrega estimada: 01/05/2018
  62.  
  63. Comenzamos con tu pedido
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. "Si puedes imaginarlo...
  71. ...Puedes crearlo!"
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78. 2018 © imayine ®
  79. Picazzo Creative S.L. Calle Badajoz, 177 C, 06200 Almendralejo Spain
  80.  
  81.  
  82.  
  83.  
  84. ==
  85.  
  86. function emailCambioEstado($idpedido) {
  87. $db = $this->bbdd();
  88.  
  89. $query = "select * from pedidos where id='" . $idpedido . "'";
  90. $result = mysqli_query($db, $query);
  91. $row = mysqli_fetch_assoc($result);
  92.  
  93.  
  94. $query8 = "select * from usuarios where id='" . $row['idusuario'] . "'";
  95. $result8 = mysqli_query($db, $query8);
  96. $row8 = mysqli_fetch_assoc($result8);
  97.  
  98.  
  99. $idioma = $this->cargar_idioma($row['idioma']);
  100. $dnicif = $row8['dni'];
  101. $nombre = $row8['nombre'] . " " . $row8['apellidos'];
  102. $destinatario = $row8['email']; //"alvaro@picazzo.es";//"hello@imayine.com";
  103. //$destinatario = "alonso@picazzo.es";
  104.  
  105. if($row['tipo_pedido']=='manual'){
  106. $queryMan = "select email from pedidos_manuales_info where id_pedido='" . $row['id'] . "'";
  107. $resultMan = mysqli_query($db, $queryMan);
  108. $rowMan = mysqli_fetch_assoc($resultMan);
  109. $destinatario = $rowMan['email'];
  110. }
  111.  
  112. $asunto = str_replace("[num]", $idpedido, $idioma['email_asunto_estado']);
  113. $base = "http://www.imayine.com/";
  114.  
  115. if ($row8['nombre_cuenta'] == '') {
  116. $nombre = $row8['nombre'];
  117. } else {
  118. $nombre = $row8['nombre_cuenta'] . " " . $row8['apellido_cuenta'];
  119. }
  120.  
  121. if ($row8['tipo'] != "particular") {
  122. $dnicif = $row8['cif'];
  123. } else {
  124. $dnicif = $row8['dni'];
  125. }
  126.  
  127. $mensaje = '<html>
  128. <head>
  129. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  130. <title>hoja privada</title>
  131. <style>
  132. body{background-color:#eeeeee;}
  133. a {text-decoration: none !important;
  134. color:#969696 !important;
  135. }
  136. </style>
  137. </head>
  138. <body>
  139. <div style="background-color:#eeeeee;">
  140. <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">
  141. <tr>
  142. <td align="center" valign="top" bgcolor="#eeeeee">
  143. <br />
  144. <table width="625" align="center" bgcolor="#FFFFFF">
  145. <tr>
  146. <td width="25" height="25"></td>
  147. <td colspan="2"></td>
  148. <td width="25"></td>
  149. </tr>
  150. <tr>
  151. <td rowspan="5"></td>
  152. <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>
  153. <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" />
  154. <map name="MapMap" id="MapMap">
  155. <area shape="rect" coords="1,1,29,28" href="https://www.facebook.com/imayine" target="_blank" />
  156. <area shape="rect" coords="45,2,75,28" href="https://twitter.com/imayine_com" target="_blank" />
  157. <area shape="rect" coords="89,2,124,31" href="https://www.pinterest.com/imayine/" target="_blank" />
  158. </map></td>
  159. <td rowspan="5"></td>
  160. </tr>
  161. <tr>
  162. <td colspan="2" align="left" valign="top">
  163.  
  164. <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>
  165.  
  166. <table width="100%" >
  167. <tr>
  168. <td >
  169. <p style="font-size: 20px; font-family:' . "'Trebuchet MS'" . ', Arial, Helvetica, sans-serif; color:#969696;text-decoration:none; text-align: left; font-weight:100">
  170. · ' . $idioma['p7_num_pedido'] . ': <span style="color:#515151;">' . $idpedido . '<br></span>
  171.  
  172. · ' . $idioma['email_estado_subtitulo'] . ' <span style="font-weight:bold; color:#515151; ">';
  173.  
  174. switch ($row['estado']) {
  175. case ("enviado"):
  176. $mensaje = $mensaje . $idioma['pedidoEnviado'];
  177. $mensaje = $mensaje . '</span><br><br><span style="font-size:20px; color:#969696;">' . $idioma['msn_pedidoEnviado'];
  178.  
  179. if ($row["num_seguimiento"] != '') {
  180. $url = "javascript://";
  181. switch ($row["compania_envio"]) {
  182. case 'mrw':
  183. //if($row["id_envio"]==2 || $row["id_envio"]==4 || $row["id_envio"]==5 || $row["id_envio"]==8)
  184. if($row["id_envio"]==2 || $row["id_envio"]==4 || $row["id_envio"]==5 || $row["id_envio"]==8 || ($row["id_envio"]==0&&$row["idioma"]=='es')) {
  185. $url = "http://www.mrw.es/seguimiento_envios/MRW_resultados_consultas.asp?modo=nacional&envio=" . $row["num_seguimiento"];
  186. } else {
  187. $url = "http://www.mrw.es/seguimiento_envios/MRW_resultados_consultas.asp?modo=internacional&envio=" . $row["num_seguimiento"];
  188. }
  189.  
  190. $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">
  191. · ' . $idioma['sigue_envio'] . ' <a href="' . $url . '"><span style="color:#268de5;">' . $idioma['text_aqui'] . '</span></a>.<br><p>';
  192.  
  193. break;
  194.  
  195. case 'dhl':
  196. $url = "http://www.dhl.es/es/express/seguimiento.html?AWB=" . $row["num_seguimiento"] . "&brand=DHL";
  197.  
  198. $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">
  199. · ' . $idioma['sigue_envio'] . ' <a href="' . $url . '"><span style="color:#268de5;">' . $idioma['text_aqui'] . '</span></a>.<br><p>';
  200. break;
  201.  
  202. case 'correos':
  203. $url = "http://www.correos.es/ss/Satellite/site/aplicacion-1349167812834-herramientas_y_apps/detalle_app-sidioma=es_ES";
  204.  
  205. $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">
  206. · 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>';
  207. break;
  208. }
  209. }
  210.  
  211.  
  212. break;
  213. case ("esperando"):
  214. $mensaje = $mensaje . $idioma['pedidoEsperando'];
  215. $mensaje = $mensaje . '</span><br><br><span style="font-size:20px; color:#969696;">' . $idioma['msn_pedidoEsperando'];
  216. break;
  217. case ("cancelado"):
  218. $mensaje = $mensaje . $idioma['pedidoCancelado'];
  219. $mensaje = $mensaje . '</span><br><br><span style="font-size:20px; color:#969696;">' . $idioma['msn_pedidoCancelado'];
  220. break;
  221. case ("produccion"):
  222. $mensaje = $mensaje . $idioma['pedidoProduccion'];
  223. $mensaje = $mensaje . '</span><br><br>';
  224.  
  225. $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>';
  226.  
  227. $mensaje = $mensaje . '<span style="font-size:20px; color:#969696;">' . $idioma['msn_pedidoProduccion'];
  228. break;
  229. }
  230.  
  231.  
  232. $mensaje = $mensaje . '</span></p></td>
  233.  
  234. <td >
  235. <img align="center" valign="middle" src="http://www.imayine.com/hojapedidos/email-estado-' . $row['estado'] . '.png" />
  236. </td>
  237. </tr>
  238. </table>
  239.  
  240. <p></p></td>
  241. </tr>
  242. <tr>
  243. <td colspan="2" style="font-family:' . "'Trebuchet MS'" . ', Arial, Helvetica, sans-serif; color:#666; font-size:10px; font-style:italic"></td>
  244. </tr>
  245. <tr>
  246. <td colspan="2" align="center" valign="top"><p><img src="linea.jpg" width="570" height="1" /></p>
  247. <p><a href="http://www.imayine.com"><img src="http://www.imayine.com/hojapedidos/mascota.png" width="75" height="75" border="0" /></a></p>
  248. <p style="font-family:' . "'Trebuchet MS'" . ' , Arial, Helvetica, sans-serif; color:#999; font-style:italic;">' . $idioma['eslogan'] . '</p>
  249. <p><img src="linea.jpg" width="570" height="1" /></p></td>
  250. </tr>
  251. <tr>
  252. <td colspan="2" align="center"><p><br />
  253. <img src="http://www.imayine.com/hojapedidos/redes.png" width="120" height="29" border="0" usemap="#Map" /></p>
  254. <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#999">' . date("Y") . ' © imayine ®<br />
  255. Picazzo Creative S.L. Calle Badajoz, 177 C, 06200 Almendralejo Spain</p></td>
  256. </tr>
  257. <tr>
  258. <td height="25"></td>
  259. <td colspan="2"></td>
  260. <td></td>
  261. </tr>
  262. </table>
  263.  
  264. </td>
  265. </tr>
  266. </table>
  267. <map name="Map" id="Map">
  268. <area shape="rect" coords="1,1,29,28" href="https://www.facebook.com/imayine" target="_blank" />
  269. <area shape="rect" coords="45,2,75,28" href="https://twitter.com/imayine_com" target="_blank" />
  270. <area shape="rect" coords="89,2,124,31" href="https://www.pinterest.com/imayine/" target="_blank" />
  271. </map>
  272. </div>
  273. </body>
  274. </html>';
  275.  
  276. mysqli_close($db);
  277. $this->email_enviar($asunto, $mensaje, $destinatario, "Imayine.com", "hello@imayine.com");
  278.  
  279.  
  280. //echo $mensaje;
  281. }
  282.  
  283.  
  284.  
  285. function email_enviar($asunto, $mensaje, $destinatario, $fromname, $from) {
  286. if ($fromname == "") {
  287. $fromname = "imayine.com";
  288. }
  289. if ($from == "") {
  290. $from = "hello@imayine.com";
  291. }
  292.  
  293. require_once('./include/class.phpmailer.php');
  294.  
  295. $mail = new PHPMailer();
  296. $mail->Mailer = "smtp";
  297. $mail->Helo = "imayine.com";
  298. $mail->SMTPAuth = true;
  299. $mail->Host = "212.227.15.142";
  300. //$mail->SMTPSecure="tls";
  301. $mail->Port = 25;
  302. $mail->Username = "hello@imayine.com";
  303. $mail->Password = "ideal12";
  304. $mail->From = $from;
  305. $mail->FromName = utf8_encode($fromname);
  306. $mail->Timeout = 60;
  307. $mail->IsHTML(true);
  308. $mail->CharSet = "UTF-8";
  309. $mail->AddAddress($destinatario);
  310. $mail->Subject = utf8_encode($asunto);
  311.  
  312. $mail->Body = utf8_encode($mensaje);
  313. $mail->AltBody = strip_tags(utf8_encode($mensaje));
  314.  
  315. $mail->Send();
  316. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement