gene0 Posted January 17, 2007 Share Posted January 17, 2007 Hi GuysI am using PHP 4 on nix box.I have client fillout form then I get a copy of info from form and I want to send client something just to say thank you and I will be intouch soon. What I have come up with send mail to me and then sends a copy to client that is the same thing I get and sends it from server name not my email address.<div id="Layer1"><!-- validated tranport info --><?phpif(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,"."))) {echo "<h2>Use Back - Enter valid e-mail</h2>\n"; $badinput = "<h2>Feedback was NOT submitted</h2>\n";}if(empty($company) || empty($contact) || empty($visitormail) || empty($notes )) {echo "<h2>Use Back - fill in all fields</h2>\n";}/* here we display bad input info */echo $badinput;$todayis = date("l, F j, Y, g:i a") ;$company = $company ;$contact = $contact ; $subject = "Power Only"; $notes = stripcslashes($notes); $message = " $todayis [EST] \nCompany: $company \nContact: $contact \nEmail: $visitormail \nPhone: $phone \nTrailer Type: $trailer_type \nHitch: $hitch \nLight Bar: $lights \nInspection: $inspection \nPick Up Date: $pickup \nOrigin City: $origin_city \nOrigin: $origin_state \nDestination City $dest_city \nDestination State: $dest_state \nMessage: $notes \n Additional Info : IP = $ip \nBrowser Info: $httpagent \nReferral : $httpref \n";$from = "From: $visitormail\r\n";mail("my@email.com", $subject, $message, $from);?>/* send mail to client */<?php $from="my@email.com";mail ($visitormail, $subject, $message); Thank You We will be intouch Soon?><!-- display information on web page --> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.