Page 3 of 3

Posted: Sat Mar 19, 2005 9:07 pm
by forzato
Is there a fix ???

Thanks for the reply!

Posted: Sat Mar 19, 2005 9:10 pm
by feyd
well.. first figure out which is doing the denial.. it could be both. Talk to your host, they may have some incite. Verify that you are sending the proper headers to the external address such that it'll pass their scrutiny. :roll:

Posted: Sun Mar 20, 2005 5:23 pm
by feyd
forzato wrote:The following script is on my server and works great as long as the variable 'email' is an email address on the server domain... script does not work for other email addresses. The variable 'email' is sent to the php script on server from a website flash swf. Then the script sends a simple email to the address defined in 'email'

Host support said the following...

Please try using "localhost" or "2k3mail.siteprotect.com" as the mailserver instead of using "smtp.corporatecarpricing.com" or "mail.corporatecarpricing.com". You will have to change it where the mail action is generated from. When the email is set to send out, you must use either of those two mail servers. So make the changes necessary to your PHP mail action


Anybody know how to do this to my code??? Thanks for the help. (I am an utter php neophyte as you probably can tell)

Code: Select all

<?php
$sendTo = $_POST["email"];
$subject = "*** Corporate Car Pricing  ***";
$headers = "From: CustomerService@CorporateCarPricing.com" . ">\<span style='color:blue' title='ignorance is bliss'>are</span>\n";
$headers .= "Reply-To: CustomerService@CorporateCarPricing.com" . "\<span style='color:blue' title='ignorance is bliss'>are</span>\n";
$headers .= "Return-path: CustomerService@CorporateCarPricing.com";
$message = "Congratulations ". $_POST["name"] . "!  Pending final CCP Membership confirmation"; 
mail($sendTo, $subject, $message, $headers);
?>
message was improperly posted in a new thread.

Posted: Mon Mar 21, 2005 3:26 am
by forzato
Sorry about that feyd...

Did I stump you guys with this one?