Closed Thread
Results 1 to 3 of 3

Thread: PHP Mail Code Problem

  1. #1
    Swiblet's Avatar
    Swiblet is offline x10 Elder Swiblet is an unknown quantity at this point
    Join Date
    Aug 2007
    Location
    Candyland 8D
    Posts
    1,114

    PHP Mail Code Problem

    Okiedokie, I made a mail/form request PHP and it worked before. Then I stopped using it for a few months, not changing a thing, and now, it doesn't work. My PHP has been upgraded to level 2. This is the code for the PHP:

    <html>
    <head>
    <title>Sending Email...</title>
    <meta http-equiv="Refresh"content="3;url=http://deathpie.pcriot.com/Email Sent.html">

    </head>
    <h2>Sending Request...</h1>
    <body>
    <?php

    $name=$_POST["NameTxt"];
    $email=$_POST["Emailtxt"];
    $hphone=$_POST["HousePhonetxt"];
    $cphone=$_POST["CellPhonetxt"];
    $service=$_POST["Requestedservicestxt"];
    $to="bion3d@aol.com";
    $subject="PPL Form";
    $from=$email;
    $header="From: $from";
    $message=" The PrePaid Legal Applicant is Requesting Approval" . "\n" .
    "Name: " . $name . "\n" . "Email: " . $email . "\n" . "Home Phone: " . $hphone .
    "\n" . "Cell Phone: " . $cphone . "\n" . "Service: " . $service;
    mail("$to", "$subject", "$message", "$header");
    echo "Mail Sent";
    ?>
    </body>
    </html>
    If someone who knows could please read over that and tell me what is going wrong, I would be very appreciative and probably donate points if you ask for it (if the help works >.>).

    Symptoms: The pages flow smoothly without PHP error messages. Straight from the form submit button to "mail sending" to "mail sent" to the index page. But I check my mail and the mail never comes.

    Thanks alot! =D

    ~~Ben
    "Oh muh guh, wuh tuh fuh? Lawl."

    Above meaningful quote straight from Paris Hilton. All hail.


  2. #2
    Corey's Avatar
    Corey is offline VPS Migration Professional Corey is a glorious beacon of lightCorey is a glorious beacon of light
    Join Date
    Dec 2004
    Location
    Northfield, NH
    Posts
    17,151

    Re: PHP Mail Code Problem

    Look up the mail function on http://www.php.net and try the simple example given there to see if it works. That should help you debug yours.

    -Corey
    Corey Arbogast | CEO
    █ 888-X10-9668 - corey[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  3. #3
    Swiblet's Avatar
    Swiblet is offline x10 Elder Swiblet is an unknown quantity at this point
    Join Date
    Aug 2007
    Location
    Candyland 8D
    Posts
    1,114

    Re: PHP Mail Code Problem

    Mmmm. Yeah, I copied that and tested the exact php.net mail function example and it still didn't get through to my email. My email is AOL, would that cause a problem? Either it's a problem with my server or my email account, as far as I can see now.

    ~~Ben

    EDITBOING: Never mind O.o I did it and it worked perfectly on a yahoo account. Apparently AOL is stupid. Thanks for trying to help anyway xD

    ~~Ben
    Last edited by Swiblet; 11-04-2007 at 09:06 PM.
    "Oh muh guh, wuh tuh fuh? Lawl."

    Above meaningful quote straight from Paris Hilton. All hail.


Closed Thread

Similar Threads

  1. Hybrid's HTML Lessons
    By Hybrid in forum Tutorials
    Replies: 18
    Last Post: 11-28-2009, 02:12 PM
  2. how can i convert Php pages and code into asp pages and code
    By n4tec in forum Scripts & 3rd Party Apps
    Replies: 11
    Last Post: 01-10-2009, 09:40 PM
  3. PHP Problem.............
    By MichaelSprautenJohansen in forum Free Hosting
    Replies: 3
    Last Post: 09-26-2007, 10:36 AM
  4. Ad code problem!
    By Akkarin in forum Free Hosting
    Replies: 8
    Last Post: 08-29-2005, 10:39 AM
  5. corporate ads code problem
    By ronghui in forum Free Hosting
    Replies: 5
    Last Post: 07-29-2005, 11:05 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