• Resolved Woozy Face

    (@shaady4)


    All the sudden the message flow from my site stoped, now when i try to send an e-mail it says

    ErrorInfo: Invalid address: (punyEncode) SMTP_FROM

    but the address is correct, what can i do?

    here is the full error:
    Versions:
    WordPress: 5.2.2
    WordPress MS: No
    PHP: 7.2.20
    WP Mail SMTP: 1.5.2

    Params:
    Mailer: smtp
    Constants: Yes
    ErrorInfo: Invalid address: (punyEncode) SMTP_FROM
    Host: SMTP_HOST
    Port: SMTP_PORT
    SMTPSecure: SMTP_SECURE
    SMTPAutoTLS: bool(true)
    SMTPAuth: SMTP_AUTH

    Server:
    OpenSSL: OpenSSL 1.0.2k 26 Jan 2017
    SMTP Debug:
    2019-08-07 14:06:41 Invalid address: (punyEncode) SMTP_FROM

    • This topic was modified 4 years, 8 months ago by Woozy Face.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Woozy Face

    (@shaady4)

    Found it! there was this code in functions which broke everything.

    Why was it even added? i know not specificly by you but can you tell me more bout this since you are an expert on mailing?

    // SMTP Authentication
    add_action( ‘phpmailer_init’, ‘send_smtp_email’ );
    function send_smtp_email( $phpmailer ) {
    $phpmailer->isSMTP();
    $phpmailer->Host = SMTP_HOST;
    $phpmailer->SMTPAuth = SMTP_AUTH;
    $phpmailer->Port = SMTP_PORT;
    $phpmailer->Username = SMTP_USER;
    $phpmailer->Password = SMTP_PASS;
    $phpmailer->SMTPSecure = SMTP_SECURE;
    $phpmailer->From = SMTP_FROM;
    $phpmailer->FromName = SMTP_NAME;
    }

    Plugin Author Slava Abakumov

    (@slaffik)

    Hi,

    That’s really great that you figured that out!
    It was added by someone who wanted to set up SMTP credentials on your site via constants. Those constants are usually added in wp-config.php file, but their definitions were removed at some point.
    The use of those constants left intact though, and as PHP couldn’t find them – it assigned those values to $phpmailer as is (constants names being converted to string values) and that broke everything.

    Thread Starter Woozy Face

    (@shaady4)

    Well that explains a lot! Thank you, however the issue came back… 🙁 is there anyway i could use the log of your plugin for free and a short period of time so i can track whats going on? i don’t want the premium version just want to see whats going on…

    Thanks

    Thread Starter Woozy Face

    (@shaady4)

    Meh. it’s fine…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘E-mail stoped working?!’ is closed to new replies.