Skip to content

Instantly share code, notes, and snippets.

@lineharo
Created December 26, 2016 20:05
Show Gist options
  • Save lineharo/bf6bcaa76204378b40c80636b97183ec to your computer and use it in GitHub Desktop.
Save lineharo/bf6bcaa76204378b40c80636b97183ec to your computer and use it in GitHub Desktop.
Tiny mail test for php
<?php
$address="example@domain.com";
$subj="Mail Test";
$text=date("D, d.m.y, H:i");
$head="Content-type:text/plain; \n\t charset=windows-1251;";
echo "Sending to $address";
mail($address, $subj, $text, $head);
echo "Ok, it works";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment