Solved

cant send email with this provider

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

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.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

856 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