summaryrefslogtreecommitdiffstats
path: root/app/class/user.class.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-06-19 23:45:03 -0400
committerMalf Furious <m@lfurio.us>2017-06-19 23:57:39 -0400
commit2564b9953bb7bd8e90a9865962cb9e88d4cfd218 (patch)
treeba0e0b0c02a7c3384306a38106ac6eebdb80b4f4 /app/class/user.class.php
parentae71ff561fb0e469b00dbe0942144f8a0b771246 (diff)
downloadscrott-2564b9953bb7bd8e90a9865962cb9e88d4cfd218.tar.gz
scrott-2564b9953bb7bd8e90a9865962cb9e88d4cfd218.zip
Update function user::sendEmail()
Now setting the name for email FROM field using system config 'smtpFrom'.
Diffstat (limited to 'app/class/user.class.php')
-rw-r--r--app/class/user.class.php2
1 files changed, 1 insertions, 1 deletions
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;