Sent email from field now prefixed with username

This commit is contained in:
Kaleb Murphy 2008-09-09 15:09:45 +00:00
parent 4d9c57659c
commit f8f797fa24
2 changed files with 2 additions and 1 deletions

View file

@ -28,6 +28,7 @@
- fixed: Settings - Show Message On Login behaviour
- fixed: Page Layout templates generate invalid HTML with description
- fixed: Form/Integer now shows 0 in the results page
- added: Email from field now prefixed with username
7.5.22
- fixed: Layout template now gets prepared correctly

View file

@ -286,7 +286,7 @@ sub create {
}
}
}
my $from = $headers->{from} || $session->setting->get("companyEmail");
my $from = $headers->{from} || $session->user->username." <".$session->setting->get("companyEmail").">";
my $type = $headers->{contentType} || "multipart/mixed";
my $replyTo = $headers->{replyTo} || $session->setting->get("mailReturnPath");