We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a8a3f5e + c966a2d commit 6e51cdaCopy full SHA for 6e51cda
1 file changed
src/Mail/Mailer.php
@@ -124,10 +124,12 @@ protected static function validate(Mail $mail)
124
*/
125
public static function send(Mail $mail)
126
{
127
- if (static::$config['debug'] === "SERVER") {
+ $debug = static::$config['debug'] ?? SMTP::DEBUG_OFF;
128
+
129
+ if ($debug === "SERVER") {
130
static::$mailer->SMTPDebug = SMTP::DEBUG_SERVER;
131
} else {
- static::$mailer->SMTPDebug = static::$config['debug'] ?? SMTP::DEBUG_OFF;
132
+ static::$mailer->SMTPDebug = $debug;
133
}
134
135
if (static::validate($mail)) {
0 commit comments