code-dumps/php/phpmail.php
2019-01-02 16:13:32 +08:00

12 lines
252 B
PHP

<?php
// The message
$message = "Line 1\nLine 2\nLine 3";
// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70);
// Send
mail('test@headdesk.me', 'Test from phpmail.php', $message);
?>