Solved

cant send email with this provider

Posted on 2015-01-26
1
92 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
1 Comment
 
LVL 35

Accepted Solution

by:
Kimputer earned 500 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

762 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now