Browse Source

Change casing of delivery method being passed to transport(), to ensure correct transport class will be loaded

Ceeram 14 years ago
parent
commit
acdfb483a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Controller/Component/EmailComponent.php

+ 1 - 1
lib/Cake/Controller/Component/EmailComponent.php

@@ -355,7 +355,7 @@ class EmailComponent extends Component {
 			$lib->attachments($this->_formatAttachFiles());
 		}
 
-		$lib->transport($this->delivery);
+		$lib->transport(ucfirst($this->delivery));
 		if ($this->delivery === 'mail') {
 			$lib->config(array('eol' => $this->lineFeed, 'additionalParameters' => $this->additionalParams));
 		} elseif ($this->delivery === 'smtp') {