Skip to content

Instantly share code, notes, and snippets.

@landru247
Created February 14, 2014 18:22
Show Gist options
  • Save landru247/9006213 to your computer and use it in GitHub Desktop.
Save landru247/9006213 to your computer and use it in GitHub Desktop.
PHP: Sendmail test - run script to test php sendmail function
<?php /* change to email address(s) */ ?>
<? $headers = 'From: webmaster@example.com'; mail('nobody@example.com', 'Test email using PHP', 'This is a test email message', $headers, '-fwebmaster@example.com'); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment