Skip to content

Commit 120cced

Browse files
author
mcramer
committed
Added mail sender name to mail sending function
1 parent f652888 commit 120cced

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/lib/classes/functions.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
class functions {
3535

3636

37-
public function mail($to, $subject, $text, $from, $filepath = '', $filetype = 'application/pdf', $filename = '', $cc = '', $bcc = '') {
37+
public function mail($to, $subject, $text, $from, $filepath = '', $filetype = 'application/pdf', $filename = '', $cc = '', $bcc = '', $from_name = '') {
3838
global $app,$conf;
3939

4040
if($conf['demo_mode'] == true) $app->error("Mail sending disabled in demo mode.");
@@ -45,7 +45,7 @@ public function mail($to, $subject, $text, $from, $filepath = '', $filetype = 'a
4545
$mail_config['use_smtp'] = true;
4646
$app->ispcmail->setOptions($mail_config);
4747
}
48-
$app->ispcmail->setSender($from);
48+
$app->ispcmail->setSender($from, $from_name);
4949
$app->ispcmail->setSubject($subject);
5050
$app->ispcmail->setMailText($text);
5151

0 commit comments

Comments
 (0)