SAAS-781 - password reset

This commit is contained in:
Duncan Sommerville 2015-07-22 13:48:47 -04:00
parent abdc94ccc3
commit 5c4803ddf2
8 changed files with 28 additions and 220 deletions

View file

@ -2,18 +2,20 @@
class Application_Model_Email
{
/**
* Send email
*
* @param string $subject
* @param string $message
* @param mixed $tos
* @return void
* @param mixed $to
* @return boolean
*/
public static function send($subject, $message, $tos, $from = null)
{
public static function send($subject, $message, $to) {
return mail($tos, $subject, $message);
$headers = 'From: Airtime <noreply@account.sourcefabric.com>';
return mail($to, $subject, $message, $headers);
}
}