Skip to content
This repository
Browse code

Change casing of delivery method being passed to transport(), to ensu…

…re correct transport class will be loaded
  • Loading branch information...
commit acdfb483a792536604a8ceafe6db55065138f85b 1 parent 46c07ad
ceeram authored August 19, 2011
2  lib/Cake/Controller/Component/EmailComponent.php
@@ -355,7 +355,7 @@ public function send($content = null, $template = null, $layout = null) {
355 355
 			$lib->attachments($this->_formatAttachFiles());
356 356
 		}
357 357
 
358  
-		$lib->transport($this->delivery);
  358
+		$lib->transport(ucfirst($this->delivery));
359 359
 		if ($this->delivery === 'mail') {
360 360
 			$lib->config(array('eol' => $this->lineFeed, 'additionalParameters' => $this->additionalParams));
361 361
 		} elseif ($this->delivery === 'smtp') {

0 notes on commit acdfb48

Please sign in to comment.
Something went wrong with that request. Please try again.