?
Solved

cant send email with this provider

Posted on 2015-01-26
1
Medium Priority
?
104 Views
Last Modified: 2015-01-29
Hi,

My email code for cakephp worked fine when I used gmail but not for this provider below.
I am not sure what to do as I have all the correct information.
The error get is timed-out

config/email.php
	public $gmail2 = array(
	'from' => array('info@aptutoring.com.au' => 'Aptutoring'),	    
	'host' => 'mail.ecentriconline.net',
       // 'port' => 2525,
         'port' => 465,    
       'username' => 'XXX@ecentriconline.net',
        'password' => 'XXX',
        'transport' => 'Smtp'
    );
	  $Email = new CakeEmail();
                             $Email->config('gmail2');  
                             $to=$item['Tutor']['email'];
                      
                             $Email->from( array('info@aptutoring.com.au' => 'Aptutoring'));
                             $Email->to($to);
                             $Email->subject('Hello');
             
                             $Email->send($message);  
                          

Open in new window

0
Comment
Question by:jagguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 36

Accepted Solution

by:
Kimputer earned 2000 total points
ID: 40570437
Seems you use conflicting settings. Host suggest it isn't SSL (otherwise it should be prefixed with ssl://), but you use an SSL port nonetheless (465).
Please find out first if you want SSL or not, then fix it.
If yes, add ssl://, if no, change port to 25
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question