Email is not going to deliever on yahoo server

245 Views Asked by At

I am using cakephp, and sending email through cakeemail with smtp. My hosting is on 1and1.com. Email is going to deliver on gmail but not on yahoo and hotmail.

Then I try the PHPMailer on same server and its email was going to deliver on gmail and hotmail as well. But unfortunatly I am unable to use PHPMailer with cakephp. I have try two tutorial but fails. One of them is here.

I will prefer to fix the problem with cakeemail, if some one can help regarding this.

Or if can get solution with PHPMailer for cakephp that is also ok.

Here is the my code

                $email = new CakeEmail();  
                $email->smtp = array(
                     'port'=>'25',
                     'timeout'=>'30',
                     'host' => 'smtp.1and1.com',
                     'username'=>'[email protected]',
                     'password'=>'xxxxxx_',
                     'client' => 'smtp.1and1.com' ,
                     'transport' => 'Smtp'
                );

                $email->from(array('[email protected]' => 'A-Best Auto Parts Quote')); 
                $email->to("[email protected]");
                //$email->bcc("[email protected]");
                $email->subject('My Test Subject');
                $email->emailFormat('html');                
                $body="the test message for email"
                $email->send($body);
0

There are 0 best solutions below