Kifebear Posted August 22, 2006 Share Posted August 22, 2006 This form works, but it sends the information in duplicates and then keeps emailing the same form information. [code]<?php@extract($_POST);$returnReason=stripslashes($returnReason); $to= $email; $subject="Maxwho Return Request for Order Number $orderNumber";$headers = "From: support@maxwho.com\r\n" . $customerMessage = "Dear $firstname,We have recieved your RMA Form and our customer service department will be back to you shortly. If you have not recieved a response from our customer service team within two businesss days, please respond to this email or call us at (360) 576-8047 (ext. 11). Thank you, Maxwho.com</html>";$maxwhoTo= "support@maxwho.com";$maxwhoSubject="Maxwho.com RMA for $orderNumber";$maxwhoHeaders = "From: $email\r\n" . $maxwhoMessage = "Order Information Order Number: $orderNumberCustomer: $firstname $lastnameOrder Date: $orderDateProduct Name: $prodNameProduct Code: $prodCodeReturn Type: $requestTypeReturn Reason: $returnReasonCustomer Information Name: $firstname $lastnameOrganization: $organizationStreet Address: $streetCity: $cityState: $stateZIP/Postal Code: $ZIPPhone: $phone </html>";mail($to, $subject, $customerMessage, $headers);mail($maxwhoTo, $maxwhoSubject, $maxwhoMessage, $maxwhoHeaders);echo ("<table cellpadding='0' cellspacing='0' border='0' class='productListings'> <tr><td class='header'><h2> RMA Form Recieved </h2></td></tr><tr><td align='left'><br><p>We have recieved your RMA Form and our customer service department will be back to you shortly. If you have not recieved a response from our customer service team within two businesss days, please respond to the email you will recieve shortly.</p> <p>Thank you,<br /> Maxwho.com<br><br><br><br></p> </td></tr></table>"); ?>[/code]This is what the email looks like that I keep receiving:[quote]Dear test,We have recieved your RMA Form and our customer service department will be back to you shortly. If you have not recieved a response from our customer service team within two businesss days, please respond to this email or call us at (360) 576-8047 (ext. 11). Thank you, Maxwho.com</html>Dear test,We have recieved your RMA Form and our customer service department will be back to you shortly. If you have not recieved a response from our customer service team within two businesss days, please respond to this email or call us at (360) 576-8047 (ext. 11). Thank you, Maxwho.com</html>[/quote]and this one:[quote]From: heather.warneke@maximoproducts.com[mailto:heather.warneke@maximoproducts.com] Sent: Tuesday, August 22, 2006 2:42 PMTo: support@maxwho.comSubject: Maxwho.com RMA for 12121212Order Information Order Number: 12121212Customer: test testOrder Date: 08/22/06Product Name: testProduct Code: testReturn Type: exchangeReturn Reason: testCustomer Information Name: test testOrganization: testStreet Address: testCity: testState: WAZIP/Postal Code: 789456Phone: </html>Order Information Order Number: 12121212Customer: test testOrder Date: 08/22/06Product Name: testProduct Code: testReturn Type: exchangeReturn Reason: testCustomer Information Name: test testOrganization: testStreet Address: testCity: testState: WAZIP/Postal Code: 789456Phone: </html>[/quote]Thank you for your help!! Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted August 22, 2006 Share Posted August 22, 2006 This line:[code]$headers = "From: support@maxwho.com\r\n" .[/code]and this line:[code]$maxwhoHeaders = "From: $email\r\n" . [/code]Should end in a semicolon, not a period. What's happening is you are concatenating your message body onto your headers, then also including it in the body, so it appears as though the message is being sent twice. Quote Link to comment Share on other sites More sharing options...
Kifebear Posted August 22, 2006 Author Share Posted August 22, 2006 That worked! Thank you so very much! 8) You rock! 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.