Skip to content
This repository
Browse code

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
  • Loading branch information...
commit d335fefbee819c18cba9b33d32e65f36824b7693 1 parent e54dbd4
Joel Perras authored June 11, 2009

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  cake/libs/controller/components/email.php
4  cake/libs/controller/components/email.php
@@ -674,8 +674,8 @@ function __smtp() {
674 674
 			return false;
675 675
 		}
676 676
 
677  
-		if (isset($this->smtpOptions['host'])) {
678  
-			$host = $this->smtpOptions['host'];
  677
+		if (isset($this->smtpOptions['client'])) {
  678
+			$host = $this->smtpOptions['client'];
679 679
 		} else {
680 680
 			$host = env('HTTP_HOST');
681 681
 		}

0 notes on commit d335fef

Please sign in to comment.
Something went wrong with that request. Please try again.