Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Contests > PHP Programming Contests

PHP Programming Contests Everything to do with the PHP Programming Contests.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2004-04-23, 05:53 PM
Junior Member
 
Join Date: Apr 2004
Posts: 1
yiannos
Default

Help!!!

I have written the following php for a feedback form. the problem i am facing is the following:
When the
$mailto = 'yiannos@mydomain.com' ;
is written the script works perfect and the email is send.

When the
$mailto = 'yiannos@mydomain.com.cy' ;
is written and no other changes in the script the email is NOT send. the only difference is that my domain has a .cy at the end.

Please, Any help will be appreciated

My Code Follows

___________________________


<?

$mailto = 'yiannos@mydomain.com.cy' ;

$subject = "Customer Enquiry From www.erotokritou.net" ;

$formurl = "http://www.domain.com/html/contact.html" ;
$errorurl = "http://www.domain.com/html/error.htm" ;
$thankyouurl = "http://www.domain.com/html/thankyou.htm" ;


$name = $_POST['name'] ;
$mobile = $_POST['mobile'] ;
$email = $_POST['email'] ;
$homephone = $_POST['homephone'] ;
$property = $_POST['property'] ;
$area = $_POST['area'] ;
$range = $_POST['range'] ;
$type = $_POST['type'] ;
$needloan = $_POST['needloan'] ;
$nearsea = $_POST['nearsea'] ;
$nearschool = $_POST['nearschool'] ;
$airport = $_POST['airport'] ;
$comments = $_POST['comments'] ;

if (!isset($_POST['email'])) {
header( "Location: $formurl" );
exit ;
}
if (empty($name)) {
header( "Location: $errorurl" );
exit ;
}

if (empty($mobile) && empty($email) && empty($homephone)) {
header( "Location: $errorurl" );
exit ;
}


$messageproper =

"You have an enquiry From your contact page at www.domain.com the details are listed below\n\n" .

" -------------------- Request Details -----------------------\n\n" .

" -----------------------------------------------\n" .
" | Customers Details |\n" .
" -----------------------------------------------\n\n" .
" Name = " ."$name\n" .
" Mobile Telephone Number = " ."$mobile\n" .
" Home Telephone Number = " ."$homephone\n" .
" E-mail Address = " ."$email\n\n" .
" -----------------------------------------------\n" .
" | Property Details |\n" .
" -----------------------------------------------\n\n" .
" Property Required =" ."$property\n" .
" Area = " ."$area\n" .
" Price Range =" ."$range\n".
" Ready or Custom Built = "."$type\n".
" Loan Required = "."$needloan\n".
" Near The Sea = "."$nearsea\n" .
" Near School = " ."$nearschool\n" .
" Pick up from airport = " ."$airport\n\n" .
"---Any Additional Comments------------------------------------- \n\n " .
"$comments\n" .

"\n\n-End of form-----------------------------------------------------------\n" ;

mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\nReply-To: \"$name\" <$email>" );
header( "Location: $thankyouurl" );
exit ;

?>
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:26 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.