Php Email & MS Exchange Problem

Hello, I’m hoping someone here can help as I’ve become desperate (how many times have we heard that before :nerd:).

I’ve developed a Flash site for a client of mine, and the Flash site has a contact form that communicates with a php script. The script works flawlessly with all email addresses except the client’s actual email address, which is part of an Exchange email service hosted by Intermedia.

The Php version is 4.7.8, and I have a sneaking suspicion this has to do with the php.ini file, as well as my needing to add something to the script which opens a connection with the Intermedia SMTP server.

Does anyone have any experience with this. If needed I can post the Php script.

–Keith

whoever is hosting the exchange server needs to turn on the smtp services

This is the code I am using. It is triggered by, and receives variables from a Flash movie. Another thing I neglected to mention is that the client’s email address is hyphenated, which may be another reason this isn’t working. Thanks for your help.

<?

$adminaddress = "email@hyphenated-email.com";
$siteaddress =“http://www.hyphenated-email.com”;
$sitename = “Website”;

//No need to change anything below …
// Gets the date and time from your server
$date = date(“m/d/Y H:i:s”);

// Gets the IP Address
if ($REMOTE_ADDR == “”) $ip = “no ip”;
else $ip = getHostByAddr($REMOTE_ADDR);

// Gets the POST Headers - the Flash variables
$action = $HTTP_POST_VARS[‘action’] ;
$firstName = $HTTP_POST_VARS[‘firstName’] ;
$lastName = $HTTP_POST_VARS[‘lastName’] ;
$company = $HTTP_POST_VARS[‘company’] ;
$emailAddress = $HTTP_POST_VARS[‘emailAddress’] ;
$password = $HTTP_POST_VARS[‘password’] ;
$passwordVer = $HTTP_POST_VARS[‘passwordVer’] ;
$addressLine1 = $HTTP_POST_VARS[‘addressLine1’] ;
$addressLine2 = $HTTP_POST_VARS[‘addressLine2’] ;
$city = $HTTP_POST_VARS[‘city’] ;
$state = $HTTP_POST_VARS[‘state’] ;
$zip = $HTTP_POST_VARS[‘zip’] ;
$country = $HTTP_POST_VARS[‘country’] ;
$telephone = $HTTP_POST_VARS[‘telephone’] ;
$fax = $HTTP_POST_VARS[‘fax’] ;
$comments = $HTTP_POST_VARS[‘comments’] ;

//Process the form data!
// and send the information collected in the Flash form to Your nominated email address

if ($action == “send”) {
//
mail ("$adminaddress",“Accreditation Approval Request”,
"A visitor at $sitename has requested access:

First Name: $firstName 
Last Name: $lastName
Company: $company

Email Address: $emailAddress

Address Line 1: $addressLine1
Address Line 2: $addressLine2
City: $city
State or Province: $state
Postal Code: $zip

Telephone: $telephone
Fax: $fax


The visitor has requested the following password:
------------------------------
Password: $password
Verified Password: $passwordVer


The visitor has left the following comments:
------------------------------
$comments

Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time:  $date","FROM:$adminaddress" ) ; 

//This sends a confirmation to your visitor
mail ("$emailAddress","Thank You for visiting $sitename", 
"Hi $firstName,

Thank you for your interest in $sitename!

We will review your information and get back to you shortly.

Thank You,
$sitename
$siteaddress","FROM:$adminaddress") ; 

//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Thank you. We will review your information and you will receive a reply shortly.";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo $send_answer;

} //

?>