WordPress.org

Ready to get started?Download WordPress

Forums

The e-mail could not be sent. your host may have disabled the mail() function.. (7 posts)

  1. jwalant.baria
    Member
    Posted 3 years ago #

    While lost recovery password it sends email but it shows the following error:

    The e-mail could not be sent.
    Possible reason: your host may have disabled the mail() function...

    I read lot of same problems in this forum but i am not able to solve it.
    I want to host this blog on my laptop. I use wamp2.0i server. OS- Windows Vista.

    i even try to run simple mail program in php, its not sending mail.

    <?php
    $to = "jwalant.baria@gmail.com";
    $subject = "Hi!";
    $body = "Hi,How are you?";
    if (mail($to, $subject, $body)) {
    echo("<p>Message successfully sent!</p>");
    } else {
    echo("<p>Message delivery failed...</p>");
    }
    ?>

    so it is wrong with php.ini?
    Plz help needed to solve this. I am newbie to php.
    I use WordPress version 3.0.3.

  2. jwalant.baria
    Member
    Posted 3 years ago #

    My website link is here:
    http://globaldb.dyndns.info/blog/

  3. ClaytonJames
    Member
    Posted 3 years ago #

    (dyndns) You need an smtp/mail server.

    a)Who's mail server are you going to use?

    b)Did you configure php to to use an smtp server ( your current isp's
    mail account with your user credentials, on windows only ) in php.ini?

    c) have you considered configuring smtp support or just using a g-mail account with a mail plugin such as this one:

    http://wordpress.org/extend/plugins/configure-smtp/

  4. Bill McCabe
    Member
    Posted 3 years ago #

    Here is the message:

    The e-mail could not be sent.
    Possible reason: your host may have disabled the mail() function... This happened after I upgraded to the new patch for Word Press. I am just mind boggle. Anyone no how to get into your site if this happens. I am locked out. My site is up and running, but I cannot log in.

  5. SpankMarvin
    Member
    Posted 3 years ago #

    Have you tried using WordPress's mail function?

    if (wp_mail($to, $subject, $body)) {

  6. Bill McCabe
    Member
    Posted 3 years ago #

    SpankMarvin,

    I appreciate your response, I am not very fluent in programmer tools. I will Google the subject fill.

    Bill

  7. SpankMarvin
    Member
    Posted 3 years ago #

    I wrote a blog post about using forms and email in WP on a Windows server a while back. I don't know if it's of use to you but it might be:

    Pertains to Godaddy hosting, but this might still be of use:

    http://itchaway.net/iablog/wordpress-godaddy-windows-hosting-and-contact-forms/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags