Quantcast

Error testing out CakeEmail->send

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Error testing out CakeEmail->send

Daniel-5
I get the following error when using CakeEmail->send :
Unable to find the socket transport "https" - did you forget to enable it when you configured PHP?
 
My email.php file has the following:
class EmailConfig {
    public $test = array(
   'host' => 'https://mail.services.live.com/DeltaSync_v2.0.0/sync.aspx',
  'port' => 465,
  'username' => [hidden email],
  'password' => '**********',
  'transport' => 'Smtp',
  'tls' => true
    );
}
 
The CakeEmail is set up as follows:
  $email = new CakeEmail(array('log' => true));
  $email->config('test');
  $email->to([hidden email]);
  $email->subject('test subject');
  $email->sender([hidden email], 'test emailer');
  $email->from([hidden email]);
  return $email->send('test message');
 
I'm not sure if the host is right for the hotmail account.
 
Thanks. 

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Error testing out CakeEmail->send

Daniel-5
OK, I got further with this.  I edited my EmailConfig host as follows:
  'host' => 'ssl://pop3.live.com',
... and I enabled SSL in PHP ini.  Now I get a different error:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Error testing out CakeEmail->send

Daniel-5
In reply to this post by Daniel-5
OK, I tried:
  'host' => 'ssl://smtp.live.com', 
... but I got the same error as before:
A connection attempt failed because... 

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Error testing out CakeEmail->send

Daniel-5
In reply to this post by Daniel-5
I gave up on using a hotmail account and used gmail instead, and I got it working.

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Loading...