File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed
Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -294,16 +294,23 @@ public function debug($msg)
294294 protected function createTransport ($ type , array $ options )
295295 {
296296 switch ($ type ) {
297+ //
298+ // null transport, don't send andy mails
299+ //
297300 case 'null ' :
298301 /* @var $transport \Swift_NullTransport */
299302 $ transport = \Swift_NullTransport::newInstance ();
300303 break ;
301-
304+ //
305+ // php mail config
306+ //
302307 case 'mail ' :
303308 /* @var $transport \Swift_MailTransport */
304309 $ transport = \Swift_MailTransport::newInstance ();
305310 break ;
306-
311+ //
312+ // smtp config
313+ //
307314 case 'smtp ' :
308315 if (!isset ($ options ['smtp.host ' ])) {
309316 throw new Exception ('option \'smtp.host \' ist missing ' );
@@ -333,7 +340,9 @@ protected function createTransport($type, array $options)
333340 $ transport ->setEncryption ($ encryption );
334341 }
335342 break ;
336-
343+ //
344+ // sendmail configuration
345+ //
337346 case 'sendmail ' :
338347 if (!isset ($ options ['sendmail.path ' ])) {
339348 throw new Exception ('option \'sendmail.path \' ist missing ' );
@@ -344,7 +353,9 @@ protected function createTransport($type, array $options)
344353 /* @var $transport \Swift_SendmailTransport */
345354 $ transport = \Swift_SendmailTransport::newInstance ($ path . $ options );
346355 break ;
347-
356+ //
357+ // UPS! no transport given
358+ //
348359 default :
349360 throw new Exception ('mail transport not supported ' );
350361 break ;
You can’t perform that action at this time.
0 commit comments