From 2564b9953bb7bd8e90a9865962cb9e88d4cfd218 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Mon, 19 Jun 2017 23:45:03 -0400 Subject: Update function user::sendEmail() Now setting the name for email FROM field using system config 'smtpFrom'. --- app/class/user.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/class/user.class.php b/app/class/user.class.php index 01552f6..81fc29f 100644 --- a/app/class/user.class.php +++ b/app/class/user.class.php @@ -311,7 +311,7 @@ class user extends agent $mail->Password = settings::smtpPasswd(); $mail->SMTPSecure = settings::smtpSecurity(); - $mail->setFrom(settings::smtpEmailAddress()); + $mail->setFrom(settings::smtpEmailAddress(), settings::smtpFrom()); $mail->addAddress($this->email, $this->getDisplayName()); $mail->Subject = $subj; $mail->Body = $mesg; -- cgit v1.2.3