Change default email sender

The new noreply@ address is now libretime.org and the address gets moved to contants.php rather than being hardcoded in the email model.
This commit is contained in:
Lucas Bickel 2017-03-13 20:46:39 +01:00
parent f52f0e7ff0
commit 88b3eb22a0
2 changed files with 2 additions and 1 deletions

View file

@ -13,7 +13,7 @@ class Application_Model_Email
*/
public static function send($subject, $message, $to) {
$headers = sprintf('From: %s <noreply@account.sourcefabric.com>', SAAS_PRODUCT_BRANDING_NAME);
$headers = sprintf('From: %s <%s>', SAAS_PRODUCT_BRANDING_NAME, LIBRETIME_EMAIL_FROM);
return mail($to, $subject, $message, $headers);
}