Skip to content

Commit

Permalink
Adding a 'client' option to EmailComponent:: for specifying the host …
Browse files Browse the repository at this point in the history
…to be used in the SMTP HELO request; defaults to env('HTTP_HOST'). Fixes #6264.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8194 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
jperras committed Jun 11, 2009
1 parent e54dbd4 commit d335fef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/controller/components/email.php
Expand Up @@ -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');
}
Expand Down

0 comments on commit d335fef

Please sign in to comment.