File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1689,8 +1689,9 @@ protected function removeNLCallback($matches)
1689
1689
protected function spoolEmail ()
1690
1690
{
1691
1691
$ this ->unwrapSpecials ();
1692
- $ protocol = $ this ->getProtocol ();
1693
- $ method = 'sendWith ' . ucfirst ($ protocol );
1692
+ $ protocol = $ this ->getProtocol ();
1693
+ $ upperFirstProtocol = ucfirst ($ protocol );
1694
+ $ method = 'sendWith ' . $ upperFirstProtocol ;
1694
1695
1695
1696
try {
1696
1697
$ success = $ this ->{$ method }();
@@ -1700,7 +1701,7 @@ protected function spoolEmail()
1700
1701
}
1701
1702
1702
1703
if (! $ success ) {
1703
- $ message = lang ('Email.sendFailure ' . ($ protocol === 'mail ' ? 'PHPMail ' : ucfirst ( $ protocol ) ));
1704
+ $ message = lang ('Email.sendFailure ' . ($ protocol === 'mail ' ? 'PHPMail ' : $ upperFirstProtocol ));
1704
1705
1705
1706
log_message ('error ' , 'Email: ' . $ message );
1706
1707
log_message ('error ' , $ this ->printDebuggerRaw ());
You can’t perform that action at this time.
0 commit comments