Is there a fix ???
Thanks for the reply!
E-A-S-Y question php syntax with mail
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
message was improperly posted in a new thread.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); ?>