Skip to content

Instantly share code, notes, and snippets.

@davidnknight
davidnknight / send_email.php
Created July 20, 2012 12:01
PHP Send Mail (Plaintext and HTML)
<?php
/**
* Send email
* @param string|array $email
* @param object $from
* @param string $subject
* @param string $message
* @param string $headers optional
*/
function send_email($email, $from, $subject, $message, $headers = null)