E-A-S-Y question php syntax with mail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

forzato
Forum Newbie
Posts: 22
Joined: Sat Mar 19, 2005 5:49 pm

Post by forzato »

Is there a fix ???

Thanks for the reply!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
forzato
Forum Newbie
Posts: 22
Joined: Sat Mar 19, 2005 5:49 pm

Post by forzato »

Sorry about that feyd...

Did I stump you guys with this one?
Post Reply