Support » Fixing WordPress » mail() function problem

  • Resolved all_good_things

    (@all_good_things)


    Hi,

    I have a problem with the mail() function that I would really appreciate some replies on:

    When I use mail-servives like «Lost password?»-link, I get this message:

    your host may have disabled the mail() function.

    I asked my web host if they could activate it, but they said that everything was already activated.
    I assume this problem also causes why form plugins isn’t working either?

    Any suggestions, please?

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Try uploading a .php page into your directory with <? phpinfo(); ?> in the code. Run the page and see what the mail settings are. Remove the page after you have run it as it can show lots of information to unwanted visitors if found.

    Thanks for your reply. I’ve used the PHPinfo-plugin. http://wordpress.org/extend/plugins/wordpress-php-info/
    But I’m not sure exactly what to look after. Suggestions?

    wp_mail() uses the php mailer and is the source of the eror message. Check the following in php info;-

    sendmail_from
    sendmail_path
    mail.force_extra_parameters

    as mail is sent via WP so try checking the following .php files in wp-includes:-

    class-phpmailer
    class-smtp
    class-simplepie
    pluggable
    ms-functions

    Try uploading the files manually.

    The php info of sendmail_from, sendmail_path and mail.force_extra_parameters all says “no value”.

    What should I do?

    When it comes to the .php-files in the wp-includes folder i got them all.

    Thanks for answering.

    No Value is OK, ther won’t be a default setting.

    Try manually uploading those files, make a copy first, as even though you might have them it doesn’t mean that they work properly.

    Has the mail() ever worked?

    If it has can you remember if anything happened around the time it stopped, new plugin, new theme etc.?

    Now I’ve uploaded the wp-includes files over again, but still no result unfortunatley.

    The mail() has never worked. I just installed WordPress at this new web host. I have installed WordPress many times before on different web servers without problems.

    I’ve tried disabling all plugins (I have just two installed), still no result.

    Suggestions?

    Resolved, thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘mail() function problem’ is closed to new replies.