+ Reply to Thread
Results 1 to 2 of 2

Thread: PHP mail() function not working

  1. #1
    onyxmoron is offline x10Hosting Member onyxmoron is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    37

    PHP mail() function not working

    I made a page with a contact form that posts to a file containing this code:

    PHP Code:
    mail"whatever@wherever.com"$subject$message"From: $email); 
    I have my own email address in the whatever@wherever part and the other variables are filled in correctly. It works when I test it locally but it doesn't work when I upload the files to x10. I've tried repeatedly and the messages never arrive.

    My account panel says I have intermediate php (although I didn't recieve a confirmation email after applying for the upgrade), so shouldn't this be working? Do I have to do something else to get it to work?
    Last edited by onyxmoron; 01-28-2009 at 08:44 PM.

  2. #2
    jrobert755 is offline x10Hosting Member jrobert755 is an unknown quantity at this point
    Join Date
    Jan 2009
    Posts
    15

    Re: PHP mail() function not working

    try this:

    PHP Code:
    $header 'From: email address' "\r\n";
    $message"whatever";
    mail("whatever your email is (doesnt have to be real)""subject of message"$message$header); 
    i just tried this and it worked. if it doesn't try going to your account panel, make sure its at intermediate php, and then put in a support ticket (note: took a couple of days for the upgrade to happen with me, so wait a couple of days before you submit a ticket")

+ Reply to Thread

Similar Threads

  1. PHP mail()
    By banzap in forum Free Hosting
    Replies: 3
    Last Post: 03-12-2008, 08:35 PM
  2. Replies: 3
    Last Post: 03-10-2008, 12:22 PM
  3. PHP mail() - AGAIN!
    By epoclaen in forum Free Hosting
    Replies: 16
    Last Post: 11-28-2007, 10:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers