• the email function suddenly dont work few days ago.
    and now i use the “Check Email” plugin,
    I cant receive the test email.

    Here is the email setting in my php.ini
    i believe i havent change that.
    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = localhost
    ; http://php.net/smtp-port
    smtp_port = 25

    ; For Win32 only.
    ; http://php.net/sendmail-from
    ;sendmail_from = me@example.com

    ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
    ; http://php.net/sendmail-path
    sendmail_path = /usr/sbin/sendmail -t -i

    ; Force the addition of the specified parameters to be passed as extra parameters
    ; to the sendmail binary. These parameters will always replace the value of
    ; the 5th parameter to mail(), even in safe mode.
    ;mail.force_extra_parameters =

    ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
    mail.add_x_header = On

    ; The path to a log file that will log all mail() calls. Log entries include
    ; the full path of the script, line number, To address and headers.
    ;mail.log =

    Is there any else setting or plug-in can help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes try With https://wordpress.org/plugins/wp-mail-smtp/
    check test email. do setting see screenshot tab of this plugin

    https://wordpress.org/plugins/postman-smtp/
    Use the setup wizard to configure your email
    Verify that your emails are sent in the email log

    Thread Starter mleung07

    (@mleung07)

    I have use the wp mail smtp to try
    It fail to sent the test mail.
    Here is the output

    [“language”:protected]=>
    array(19) {
    [“authenticate”]=>
    string(35) “SMTP Error: Could not authenticate.”
    [“connect_host”]=>
    string(43) “SMTP Error: Could not connect to SMTP host.”
    [“data_not_accepted”]=>
    string(30) “SMTP Error: data not accepted.”
    [“empty_message”]=>
    string(18) “Message body empty”
    [“encoding”]=>
    string(18) “Unknown encoding: “
    [“execute”]=>
    string(19) “Could not execute: “
    [“file_access”]=>
    string(23) “Could not access file: “
    [“file_open”]=>
    string(33) “File Error: Could not open file: “
    [“from_failed”]=>
    string(35) “The following From address failed: “
    [“instantiate”]=>
    string(36) “Could not instantiate mail function.”
    [“invalid_address”]=>
    string(15) “Invalid address”
    [“mailer_not_supported”]=>
    string(25) ” mailer is not supported.”
    [“provide_address”]=>
    string(54) “You must provide at least one recipient email address.”
    [“recipients_failed”]=>
    string(45) “SMTP Error: The following recipients failed: “
    [“signing”]=>
    string(15) “Signing Error: “
    [“smtp_connect_failed”]=>
    string(22) “SMTP connect() failed.”
    [“smtp_error”]=>
    string(19) “SMTP server error: “
    [“variable_set”]=>
    string(30) “Cannot set or reset variable: “
    [“extension_missing”]=>
    string(19) “Extension missing: “
    }
    [“error_count”:protected]=>
    int(2)
    [“sign_cert_file”:protected]=>
    string(0) “”
    [“sign_key_file”:protected]=>
    string(0) “”
    [“sign_extracerts_file”:protected]=>
    string(0) “”
    [“sign_key_pass”:protected]=>
    string(0) “”
    [“exceptions”:protected]=>
    bool(true)
    [“uniqueid”:protected]=>
    string(32) “0fcfd3d53bf2bba9d2745815aebf3850”
    }
    The SMTP debugging output is shown below:
    2015-10-29 08:10:22 Connection: opening to ssl://localhost:25, timeout=300, options=array (
    )
    2015-10-29 08:10:24 SMTP ERROR: Failed to connect to server: (0)
    2015-10-29 08:10:24 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    Is the reason of i am using an email from different domain?

    Actually what I want to do is send email to both admin and user after a form is submitted.

    Thread Starter mleung07

    (@mleung07)

    Update

    When i choose to use php mail() function to send,
    it return a true value,
    but i still cant receive that test email

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

The topic ‘cannot send email’ is closed to new replies.