Skip to content

Instantly share code, notes, and snippets.

@alexalouit
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexalouit/a94786850e896fb6843a to your computer and use it in GitHub Desktop.
Save alexalouit/a94786850e896fb6843a to your computer and use it in GitHub Desktop.
(php) DKIM test using Google.
<?php
$to = "youremail@gmail.com";
$subject = "DKIM test.";
$body = "Hi,\nThis is an DKIM test.\nGo check gmail header.;
if (mail($to, $subject, $body)) {
echo("<p>Successfully sent!</p>");
} else {
echo("<p>Failed!</p>");
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment