• Hi,

    I am trying to setup Mailgun and when sending a test email I get error “Error (4) when trying to json_decode response”. The same configuration using WP Mail SMTP works without errors. Can you please help me solve this?

    Thanks
    A Jorge

    Error (4) when trying to json_decode response

    –Raw message follows–

    Array
    (
    [from] => Freemason.pt <[email protected]>
    [to] => Array
    (
    [0] => [email protected]
    )

    [subject] => Postman SMTP Test (www.freemason.pt)
    [h:X-Mailer] => //ww.wp.xz.cn/plugins/post-smtp/)
    [h:Content-Type] => multipart/alternative
    [h:Sender] => [email protected]
    [cc] =>
    [bcc] =>
    [text] => Hello!

    Sent by Postman 1.9.8 – https://ww.wp.xz.cn/plugins/post-smtp/

    [html] => <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml”&gt;
    <head>
    <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
    <style type=”text/css” media=”all”>
    .wporg-notification .im {
    color: #888;
    } /* undo a GMail-inserted style */
    </style>
    </head>
    <body class=”wporg-notification”>
    <div style=”background: #e8f6fe; font-family: & quot; Helvetica Neue&quot; , Helvetica ,Arial,sans-serif; font-size: 14px; color: #666; text-align: center; margin: 0; padding: 0″>
    <table border=”0″ cellspacing=”0″ cellpadding=”0″ bgcolor=”#e8f6fe” style=”background: #e8f6fe; width: 100%;”>
    <tbody>
    <tr>
    <td>
    <table border=”0″ cellspacing=”0″ cellpadding=”0″ align=”center” style=”padding: 0px; width: 100%;””>
    <tbody>
    <tr>
    <td>
    <div style=”max-width: 600px; height: 400px; margin: 0 auto; overflow: hidden;background-image:url(‘https://ps.w.org/postman-smtp/assets/email/poofytoo.png&#8217;);background-repeat: no-repeat;”>
    <div style=”margin:50px 0 0 300px; width:300px; font-size:2em;”>Hello! – 你好 – Bonjour! – नमस्ते – ¡Hola! – Olá – Привет! – 今日は</div>
    <div style=”text-align:right;font-size: 1.4em; color:black;margin:150px 0 0 200px;”>Sent by Postman 1.9.8
    <br/><span style=”font-size: 0.8em”>https://ww.wp.xz.cn/plugins/post-smtp/</span>
    </div>
    </div>
    </td>
    </tr>
    </tbody>
    </table>
    <br><span style=”font-size:0.9em;color:#94c0dc;”>Image source: poofytoo.com – Used with permission</span>
    </td>
    </tr>
    </tbody>
    </table>
    </body>
    </html>
    )

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Go to the plugin email log hover the failed email row, press “session transcript” and paste the ouput here.

    Thread Starter freemason

    (@freemason)

    Hi,

    Thankd for your prompt answer. Here it is:

    Error (4) when trying to json_decode response

    –Raw message follows–

    Array
    (
    [from] => Freemason.pt <[email protected]>
    [to] => Array
    (
    [0] => [email protected]
    )

    [subject] => Postman SMTP Test (www.freemason.pt)
    [h:X-Mailer] => //ww.wp.xz.cn/plugins/post-smtp/)
    [h:Content-Type] => multipart/alternative
    [h:Sender] => [email protected]
    [cc] =>
    [bcc] =>
    [text] => Hello!

    Sent by Postman 1.9.8 – https://ww.wp.xz.cn/plugins/post-smtp/

    [html] => <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml”&gt;
    <head>
    <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
    <style type=”text/css” media=”all”>
    .wporg-notification .im {
    color: #888;
    } /* undo a GMail-inserted style */
    </style>
    </head>
    <body class=”wporg-notification”>
    <div style=”background: #e8f6fe; font-family: & quot; Helvetica Neue&quot; , Helvetica ,Arial,sans-serif; font-size: 14px; color: #666; text-align: center; margin: 0; padding: 0″>
    <table border=”0″ cellspacing=”0″ cellpadding=”0″ bgcolor=”#e8f6fe” style=”background: #e8f6fe; width: 100%;”>
    <tbody>
    <tr>
    <td>
    <table border=”0″ cellspacing=”0″ cellpadding=”0″ align=”center” style=”padding: 0px; width: 100%;””>
    <tbody>
    <tr>
    <td>
    <div style=”max-width: 600px; height: 400px; margin: 0 auto; overflow: hidden;background-image:url(‘https://ps.w.org/postman-smtp/assets/email/poofytoo.png&#8217;);background-repeat: no-repeat;”>
    <div style=”margin:50px 0 0 300px; width:300px; font-size:2em;”>Hello! – 你好 – Bonjour! – नमस्ते – ¡Hola! – Olá – Привет! – 今日は</div>
    <div style=”text-align:right;font-size: 1.4em; color:black;margin:150px 0 0 200px;”>Sent by Postman 1.9.8
    <br/><span style=”font-size: 0.8em”>https://ww.wp.xz.cn/plugins/post-smtp/</span>
    </div>
    </div>
    </td>
    </tr>
    </tbody>
    </table>
    <br><span style=”font-size:0.9em;color:#94c0dc;”>Image source: poofytoo.com – Used with permission</span>
    </td>
    </tr>
    </tbody>
    </table>
    </body>
    </html>
    )

    Please contact me here:
    https://postmansmtp.com/contact

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Mailgun Error’ is closed to new replies.