Permalink
Browse files

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

…re correct transport class will be loaded
  • Loading branch information...
ceeram committed Aug 19, 2011
1 parent 46c07ad commit acdfb483a792536604a8ceafe6db55065138f85b
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Controller/Component/EmailComponent.php
@@ -355,7 +355,7 @@ public function send($content = null, $template = null, $layout = null) {
$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') {

0 comments on commit acdfb48

Please sign in to comment.