Hi I am currently updating a PHP-based website on a Windows 2003 web server. Everything seems to work ok except for a form which sends an email via an Exchange SMTP server on another server machine. This worked ok when the website was on a server with an old version of PHP (3.something). It was talking to the same SMTP server which hasn't changed. Web Server: Windows 2003 SP1 IIS 6.0 PHP 5.2.0.0 The code snippet is as follows. It always executes the "else" statement. [code]$From = $_REQUEST['from']; $Subject = "White Papers Website Response"; $Body = "New User Registration \nName : " . $title . " " . $firstname . "\n" . $lastname . "\nCompany : " . $company . "\nIndustry: " . $industry . "\nEmail : " . $email . "\nPhone : " . $phone; $To = "email@domain.com"; //$_REQUEST['sendto']; if (mail($To, $Subject, $Body, "From: " . $From . "\n X-Mailer: PHP/" . "Reply-To: webmaster@{$_SERVER['SERVER_NAME']}\r\n" . phpversion() ) ){ setcookie("registered", "true", time()+31536000); header("Location: white_papers.php"); } else{ $email_error = true; }[/code] Can someone please assist? Any help much appreciated! Thanks Ash