Adding a 'client' option to EmailComponent:: for specifying the host 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
This commit is contained in:
jperras 2009-06-11 03:07:38 +00:00
parent e54dbd430f
commit d335fefbee

View file

@ -674,8 +674,8 @@ class EmailComponent extends Object{
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');
}