erikjan Posted September 25, 2007 Share Posted September 25, 2007 Can someone please help? I built a webshop in php for wines. When a person orders wine, she/he gets automatically a mail with the order specifications etc., as does the owner of the webstore, to notify that there has been an order. Now, it seems that people having a g-mail account see the html-tags around the mail message they get. I guess it occur sbecause of the headers: $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: Wijnimport Dolvinho <[email protected]>' . "\r\n"; mail($email, $subject, $receiptMessage, $headers); mail($toAddress,$recipientSubject,$mailContent, $headers); Can somebody help me; what do I have to change in the headers? Thanks in advance!! Link to comment https://forums.phpfreaks.com/topic/70649-mail-function-gives-html-tags-with-g-mail/ Share on other sites More sharing options...
jaymc Posted September 25, 2007 Share Posted September 25, 2007 View a working example email of what you want in G-Mail and look at the headers sent Just copy them.. Link to comment https://forums.phpfreaks.com/topic/70649-mail-function-gives-html-tags-with-g-mail/#findComment-355063 Share on other sites More sharing options...
erikjan Posted September 25, 2007 Author Share Posted September 25, 2007 Sorry, don't understand what you mean . . . Link to comment https://forums.phpfreaks.com/topic/70649-mail-function-gives-html-tags-with-g-mail/#findComment-355067 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.