WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form fails on Midphase hosting (4 posts)

  1. djpushplay
    Member
    Posted 5 years ago #

    I use "Contact-form-7" on godaddy with no problems but when I tried it on midphase, it does not send the email even though I get no errors.

    At first, I just thought that it was a configuration problem on the host, but when I tried the code below, it works fine. Now I'm confused as to where to look next. I'm using WP 2.7.1 and I've tried different versions of Contact-form-7 as well as contact-form-iii.

    If the code below had failed, I would have known where to look next but now I'm really stuck.

    Any help would be much appreciated! Thanks in advance.

    <?php
    error_reporting(E_ALL);
    $to = "myemail@domain.com";
    $subject = "This is a test subject";
    $message = "This is a test email, please ignore.";
    
    if (mail($to,$subject,$message)) {
    	echo "email send ok";
    } else {
    	echo "can't send email";
    }
    ?>
  2. nickn
    Member
    Posted 5 years ago #

    If you're still having problems with this, drop me an email at nick@midphase.com, I'd be glad to assist :)

  3. djpushplay
    Member
    Posted 5 years ago #

    Thanks Nick. I'll email you right now.

  4. djpushplay
    Member
    Posted 5 years ago #

    I was never able to fix this problem directly. However, I figured out a workaround. For some reason, maybe because my email domain is on gmail, it doesn't work directly. However, I created an email address using a regular email server, then forwarded that e-address over to the gmail one and everything worked fine.

    I have to assume that for some reason, the gmail address is not compatible to the setup on midphase. The reason I say this is because I have the exact same setup (WordPress/gmail) on godaddy and it works fine. I'm sure it's just some setting somewhere.

    The work-around is a little messy but it works.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.