Solved

cant send email with this provider

Posted on 2015-01-26
1
95 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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 learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

920 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

16 Experts available now in Live!

Get 1:1 Help Now