Commits

jenschendzielorz committed 0e80ab6

swiftmailer shall not spool error mails

Comments (0)

Files changed (1)

lib/WV20/Environment/Production.php

 		//////////////////////////////////////////////////////////////////////////
 		// Send mail
 
+		if (sly_Service_Factory::getAddOnService()->isAvailable('webvariants/swiftmailer')) {
+			WV36_Swiftmailer::setForceNoSpool(true);
+		}
+
 		try {
 			$mail = sly_Mail::factory();
 			$mail->setSubject($subject);