Last active
September 22, 2017 23:12
-
-
Save vielhuber/648600078768e77b2484 to your computer and use it in GitHub Desktop.
mail() with umlauts #php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mail( | |
"[email protected]", // recipient | |
"=?UTF-8?B?".base64_encode("ä ö ü ß")."?=", // subject | |
"ä ö ü ß", // content | |
"Content-type: text/plain; charset=utf-8\r\n" | |
."From: =?UTF-8?B?".base64_encode("ä ö ü ß")."?=<[email protected]>" // from | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment