Skip to content

Commit ff28ef9

Browse files
pbdavidnperlDreamer
authored andcommittedFeb 25, 2012
#13787 issue -- and general core repair
1 parent 3b544ee commit ff28ef9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎lib/WebGUI/Mail/Send.pm

+8-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,14 @@ sub create {
343343
}
344344
}
345345
}
346-
my $from = $headers->{from} || $session->setting->get('companyName') . " <".$session->setting->get("companyEmail").">";
346+
my $from = $headers->{from};
347+
$from ||= do {
348+
my $CoNa = $session->setting->get('companyName');
349+
my $CoEm = $session->setting->get("companyEmail");
350+
$CoNa =~ s/"//g;
351+
qq{"$CoNa" <$CoEm>}
352+
};
353+
347354
my $type = $headers->{contentType} || "multipart/mixed";
348355
my $replyTo = $headers->{replyTo} || $session->setting->get("mailReturnPath");
349356

0 commit comments

Comments
 (0)