diff --git a/cake/libs/controller/components/email.php b/cake/libs/controller/components/email.php index 90dc72055be..7fb016d00cc 100644 --- a/cake/libs/controller/components/email.php +++ b/cake/libs/controller/components/email.php @@ -674,8 +674,8 @@ function __smtp() { return false; } - if (isset($this->smtpOptions['host'])) { - $host = $this->smtpOptions['host']; + if (isset($this->smtpOptions['client'])) { + $host = $this->smtpOptions['client']; } else { $host = env('HTTP_HOST'); }