Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Tags for this Thread

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    David's Avatar
    Senior Member

    Status
    Offline
    Join Date
    May 2009
    Posts
    2,979
    Downloads
    0
    Uploads
    0

    My sendmail.php form is not sending out any emails, i tried 2 different emails, no luck?

    Ok so i set up my form, it says it works, but its not. I am not receiving the emails in my inbox or spam box how do i make it work??

    http://204.12.217.114/~frankrem/

    and

    http://204.12.217.114/~frankrem/sendmail.php
    thought you could access it, but here is the part that matters i guess

    <?php
    $property = (isset($_POST["property"])?trim($_POST["property"]):"");
    $Location = (isset($_POST["Location"])?trim($_POST["Location"]):"");
    $MaximumPrice = (isset($_POST["MaximumPrice"])?trim($_POST["MaximumPrice"]):"");
    $Contact = (isset($_POST["Contact"])?trim($_POST["Contact"]):"");
    $FromName = (isset($_POST["FromName"])?trim($_POST["FromName"]):"");
    $PhoneNbr = (isset($_POST["PhoneNbr"])?trim($_POST["PhoneNbr"]):"");
    $FromEmail = (isset($_POST["FromEmail"])?trim($_POST["FromEmail"]):"");
    $Moving = (isset($_POST["Moving"])?trim($_POST["Moving"]):"");
    $Realtor = (isset($_POST["Realtor"])?trim($_POST["Realtor"]):"");
    $Remarks = (isset($_POST["Remarks"])?trim($_POST["Remarks"]):"");


    if(!empty($FromName)||!empty($FromEmail)||!empty($ PhoneNbr)){
    mail("[email protected]", $property, $Location, $MaximumPrice, "From: $email");
    header("Location: http://204.12.217.114/~frankrem/success.htm");
    exit;
    }
    ?>
    its on linux and here is the rest of sendmail.php

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Send email</title>
    </head>
    <body>
    <?php
    echo "<h1>Error</h1>\n<p>You did not fill in all fields.</p>\n";
    ?>
    </body>
    </html>
    OR TRY

    http://204.12.217.114/~frankrem/sendmail.txt

  2. #2
    skynet
    skynet's Avatar
    Guest
    how could we check the php if you don't give source code?

    copy sendmail.php to sendmail.whatever on the server and give the link.

 

 

Quick Reply Quick Reply

Click here to log in


What color is our footer?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 10-14-2011, 07:00 AM
  2. Replies: 0
    Last Post: 12-12-2009, 01:51 AM
  3. Replies: 0
    Last Post: 03-14-2009, 12:00 PM
  4. Replies: 1
    Last Post: 12-21-2008, 02:06 PM
  5. php problem with sending emails?
    By XloveX in forum Discuss PHP
    Replies: 0
    Last Post: 12-20-2008, 04:17 PM

Bookmarks

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •