I have trouble getting the PHP script to send form data to an email.

I have a very basic contact form that I used before, and I pointed to a standard SendResults.php file. I downloaded them both on the server for the test, but I don't get the emails of the form. Can someone help me with this?

Here is the code for the form:

Contact < h1 > < / h1 >

< p > < img src = "images/contact - hands.jpg ' alt = 'hands' width ="401"height ="299"class ="left-photo-sur"align ="left"/ > < / p >

< class p = 'fax' > < / p >

< class p = 'fax' > < / p >

< class p 'fax' = > please call or use the form below to send your contact information and I will answer you as soon as possible. < /p >

< class p = 'phone number' > 541 954 2602 < /p >

< class p = "center" > Ronit Cohen < /p >

< p > < / p >

< p > < / p >

< h3 class = "center" > use the form below to send a message and I will contact you quickly. < / h3 >

< table width = "600" border = "1" align = "center" cellpadding = "22" cellspacing = "0" >

< b >

< td bgcolor = "#F0F0F0" > < form action = "sendresults.php" method = "post" name = "Contact form" id = "Contact form" > "

< P > name < span class = "red" > * </span >

< input name = "name" type = "text" id = 'name' size = "70" / >

< /p >

< P > E-mail address < span class = "red" > * </span >

< input name = "email" type = "text" id = "email" size = "65" / >

< /p >

< p > telephone number

< name input = 'phone' type = 'text' id = 'phone' size = "40" / >

< /p >

< p >

< label > Message < br / >

< name textarea = 'message' id = cols "message" = "70".

"rows ="5"> < / textarea >"

< / label >

< /p >

< class p = "center" >

< input name = "submit" type = "submit" id = "submit" onclick = "MM_openBrWindow ('thankyou.html'", 'width = 500 height = 400'); " MM_validateForm ('name', ", 'R',"email', ", 'RisEmail', 'phone'", 'NisNum'); return document. MM_returnValue"value ="Send the Message"/ >

< input type = "reset" name = 'Cancel' id = 'Cancel' value = 'Cancel' / >

< /p >

< / form > < table >

< /tr >

< /table >

< p > < / p >

< p > < / p >

< p > < / p >

<!-InstanceEndEditable--> < table >

< /tr >

< /table >

And here is the code for the sendresults.php file:

<? PHP
-Put these settings-

Subject of the email sent to you.
$subject = "Sent 'A Home to Fit You' Contact form info;"

Your email address. This is where the information on the form will be sent.
$emailadd = ' [email protected] ';

Where redirect after form is processed.
$url = ' http://www.tributewebdesign.com/home-to-fit/contact.html';

Makes all the required fields. If the value of '1' no field cannot be empty. If the '0' value any or all fields can be empty.
$req = '0';

-Do not edit below this line-
$text = "comes from the shape: \n\n";
$space = ' ';
$line = '
';
foreach ($_POST as $key = > $value)
{
If ($req is '1')
{
If ($value == ")
{echo "$key is empty"; die ;}
}
$j = strlen ($key);
If ($j > = 20)
{echo "Of the form $key name cannot be longer than 20 characters"; die ;}}
$j = 20 - $j;
for ($i = 1; $i < = $j; $i ++)
{$space. = ' ' ;}}
$value = str_replace ('\n', "$line", $value);
$conc = "{$key}: $space {$value} $line";
$text = $conc;
$space = ' ';
}
mail ($emailadd, $subject, $text, ' from: '. $emailadd. ");
echo "< META HTTP-EQUIV = CONTENT refresh ="0; " URL ='. $url. " » >';
? >

I'd appreciate any help anyone has to offer.

Jennifer

No not a yahoo and google make it much harder to send mail unless it comes from an active server

I had problems in her SCI with gmail, hotmail, ATT and others, even if you use SMTP.

Jennifer, you might check if your server ip is on a blacklist.

http://MXToolbox.com/blacklists.aspx

Tags: Dreamweaver

Similar Questions

Maybe you are looking for

  • Color bar line at startup, and then black screen, then startup is very well

    macOS Sierra - macOS 10.12 Beta (16A294a) MacBook Pro (15 inch, early 2011) 2.2 GHz MacBook Pro (MC723LL/A) Intel Core i7 Intel HD Graphics 3000 - 512 MB and AMD Radeon HD 6750 M (1024 MB) with automatic switching Processor: 2.2GHz 16GB 1333 MHz DDR3

  • iPhone charging problems

    Hello I have an iPhone 6, running iOS 9.3.4 (with the last update August 6, 2016). Problem: I had problems with the load of my iPhone from these days, I sometimes had to push little difficult cable in the port or adjust a bit kind only then it will l

  • TOSHIBA fan control program?

    Hello world! (ME again!) Any of you know what TOSHIBA Fan Control program it is? Thank you!Suddste223

  • Satellite A660-14 days - slow internet wireless

    Hello I have the Satellite A660-14 days and if I plug a cable (UTP) the speed of the internet (Firefox, IE, FTP,...) are OK (1,1 MB/s).But if I use the wireless (Broadcom adapter) network connection, speed is 0.5 MB/s. All software and drivers are up

  • where is Flash program on ma, 7 months old computer windows7?

    to see 2 windows side by side, Im told to use the snap, don't see that in my computer. I have windows7 home preium.