sintonia/legacy/application/models/Email.php

21 lines
416 B
PHP
Raw Normal View History

<?php
class Application_Model_Email
{
/**
2021-10-11 16:10:47 +02:00
* Send email.
*
* @param string $subject
* @param string $message
* @param mixed $to
*
2021-10-11 16:10:47 +02:00
* @return bool
*/
2021-10-11 16:10:47 +02:00
public static function send($subject, $message, $to)
{
$headers = sprintf('From: %s <%s>', SAAS_PRODUCT_BRANDING_NAME, LIBRETIME_EMAIL_FROM);
2021-10-11 16:10:47 +02:00
return mail($to, $subject, $message, $headers);
}
}