unable to relay for recipients - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: unable to relay for recipients (/showthread.php?tid=26845) |
unable to relay for recipients - El Forum - 01-24-2010 [eluser]husni[/eluser] i was unable to relay for my recipient.. what is the error and how to fix it?? to: 550 5.7.1 Unable to relay for [email protected] The following SMTP error was encountered: 550 5.7.1 Unable to relay for [email protected] data: 503 No recipient(s). The following SMTP error was encountered: 503 No recipient(s). 500 5.3.3 Unrecognized command The following SMTP error was encountered: 500 5.3.3 Unrecognized command Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method. tq =) unable to relay for recipients - El Forum - 01-25-2010 [eluser]n0xie[/eluser] Too bad my crystal ball is broken today. I guess it has something to do with this: Code: data: 503 No recipient(s). Alas since you provided no code to debug, I will just say it is because the wind is coming from the West today. unable to relay for recipients - El Forum - 01-25-2010 [eluser]husni[/eluser] here is my code.. how do i fix my prob? class Email extends Controller { function __construct() { parent::Controller(); } function index() { $config = array( 'protocol' => 'smtp', 'smtp_host' => 'localhost', 'smtp_port' => 25, 'smtp_timeout' => '30', 'mailtype' => 'html', 'charset' => 'iso-8859-1', 'wordwrap' => TRUE ); $this->load->library('email', $config); $this->email->set_newline("\r\n"); $this->email->from('[email protected]', 'Jeffrey Way'); $this->email->to('east_guyz90@yahoo.com'); $this->email->subject('This is an email test'); $this->email->message('It is working. Great!'); if($this->email->send()) { echo 'Your email was sent, fool.'; } else { show_error($this->email->print_debugger()); } } } unable to relay for recipients - El Forum - 01-26-2010 [eluser]n0xie[/eluser] Did you try this? Code: $config['newline'] = "\r\n"; unable to relay for recipients - El Forum - 01-26-2010 [eluser]husni[/eluser] [quote author="n0xie" date="1264537318"]Did you try this? Code: $config['newline'] = "\r\n"; i tried that one.. i have add this code if($this->email->send()) {echo "berjaya<br>";} else {echo "gagal hantar email<br><br>"; echo $this->email->print_debugger();} still got error.. |