Last active
June 15, 2017 09:54
-
-
Save mpodaniev/caa7dbd0245ce6c178c0444838e545f7 to your computer and use it in GitHub Desktop.
Проверка отправки почты с сайта
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
$to="mpodanev@gmail.com"; // заменить на свою почту | |
$headers = "Content-type: text/html; charset=utf-8 \r\n"; | |
$headers.= "From: ".$_SERVER['SERVER_NAME']." \r\n"; | |
$subject="Сообщение с сайта ".$_SERVER['SERVER_NAME']; | |
$message="Тест"; | |
mail("mpodanev@gmail.com", "Test", "Test message"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment