Part of the EllisLab Network
   
3 of 3
3
Gmail SMTP using SSL/TLS
Posted: 03 May 2011 12:43 AM   [ Ignore ]   [ # 31 ]  
Summer Student
Total Posts:  1
Joined  05-02-2011

it doesn’t work for me, i get this error:

An Error Was Encountered

220 mx
.google.com ESMTP e9sm324285ann.50

hello
250-mx.google.com at your service[72.29.67.226]
250
-SIZE 35882577
250
-8BITMIME
250
-AUTH LOGIN PLAIN XOAUTH
250
-ENHANCEDSTATUSCODES
250 PIPELINING

from
250 2.1.0 OK e9sm324285ann.50

to
553-5.1.2 We weren't able to find the recipient domain. Please check for any
553-5.1.2 spelling errors, and make sure you didn'
t enter any spacesperiods,
553 5.1.2 or other punctuation after the recipient's email address. e9sm324285ann.50

The following SMTP error was encountered: 553-5.1.2 We weren'
t able to find the recipient domainPlease check for any 553-5.1.2 spelling errors, and make sure you didn't enter any spaces, periods, 553 5.1.2 or other punctuation after the recipient's email addresse9sm324285ann.50 ..... 

i’m using CodeIgniter V2.0.2, help!!

Profile
 
 
Posted: 03 May 2011 08:19 AM   [ Ignore ]   [ # 32 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1101
Joined  08-06-2006

hi rodrigortiz welcome to CI…

did you try to change the recipient domain:
“We weren’t able to find the recipient domain” is what google is telling you to do. if you are reaching google mail server and it gives you a coherent error message you should try to understand that. it looks like CI is functioning properly.

cheers.

 Signature 

peeker email (imap/pop) | site_migrate | OOCalendar | PhotoBox2 | word_limiter

Profile
 
 
Posted: 05 October 2011 02:34 PM   [ Ignore ]   [ # 33 ]  
Summer Student
Total Posts:  1
Joined  10-05-2011

///this is my code…
<?php
$this->load->library(‘email’);
       
$config[‘protocol’] = “smtp”;
$config[‘smtp_host’] = “ssl://smtp.googlemail.com”;
$config[‘smtp_port’] = “465”;
$config[‘smtp_user’] = “xyz@gmail.com”;//also valid for Google Apps Accounts
$config[‘smtp_pass’] = “abcd”;
$config[‘charset’] = “utf-8”;
$config[‘mailtype’] = “html”;
$config[‘newline’] = “\r\n”;

$this->email->initialize($config);     
     
$this->email->from(‘xyz@gmail.com’, ‘jaideep’);
$list = array(‘xyz@gmail.com’);
$this->email->to($list);
$this->email->subject(‘TESTING GMAIL’);
$this->email->message(’<h1>TEXT MSG<h1>’); //Your cool html5 ;P
$this->email->set_alt_message(strip_tags(’<h1>TEXT MSG<h1>’)); //Only text
     
if ( ! $this->email->send())
{
show_error($this->email->print_debugger());
} else {
echo(‘DONE’);     
}
?>


and this was my error..
Fatal error: Using $this when not in object context in C:\xampp\htdocs\ex\newEmptyPHP2.php on line 2

Can you please tell me how to resolv this problem..

n I dint found the line enable=php_openssl.dll in php.ini file but i found that line in php_peal.ini file in xampp/php/ folder..so iv changd it in php_pearl.ini…
therez no php_openssl.dll in my xampp/php/ but its in xampp/php/ext…
Is this thing fine..?
I will be waiting for your reply….Thank u…

Profile
 
 
Posted: 10 October 2011 08:06 AM   [ Ignore ]   [ # 34 ]  
Summer Student
Total Posts:  1
Joined  10-10-2011

Thank you all, this was useful!


I thought I would also help out a little. So..

and this was my error..
Fatal error: Using $this when not in object context in C:\xampp\htdocs\ex\newEmptyPHP2.php on line 2

Can you please tell me how to resolv this problem..

You will have to read up more on how working with classes and objects work so you know when to use $this.

Check out this for example:
http://net.tutsplus.com/articles/news/easy-development-with-codeigniter/

Profile
 
 
   
3 of 3
3