note 107998 added to function.mail

From: Date: Wed, 21 Mar 2012 11:08:37 +0000
Subject: note 107998 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-186754@lists.php.net to get a copy of this message
Hello programmers! There is something important I want to notice about charsets here: "Content-Type: text/plain; charset = \"UTF-8\";\n" is right and not only "Content-Type: text/plain; charset=UTF-8\n" Hope I could help other people who frustrate while searching the same mistake like me. Remember also to write only \r for windows and not for Linux-Servers. And at the end of the header should be an extra blank line: $headers .= "Content-Type: text/plain; charset = \"UTF-8\";\n"; $headers .= "Content-Transfer-Encoding: 8bit\n"; $headers .= "\n"; Greetings ---- Server IP: 87.106.1.137 Probable Submitter: 217.92.162.192 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/107998 Del: integrated -- https://master.php.net/note/delete/107998/integrated Del: useless -- https://master.php.net/note/delete/107998/useless Del: bad code -- https://master.php.net/note/delete/107998/bad+code Del: spam -- https://master.php.net/note/delete/107998/spam Del: non-english -- https://master.php.net/note/delete/107998/non-english Del: in docs -- https://master.php.net/note/delete/107998/in+docs Del: other reasons-- https://master.php.net/note/delete/107998 Reject -- https://master.php.net/note/reject/107998 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186754) next »