php - subject length issue while sending email using codeigniter -


when subject of email long getting following error

the following smtp error encountered:   451 see http://pobox.com/~djb/docs/smtplf.html. unable send email using php smtp.  server might not configured send mail using method. 

and when shortened subject length, works fine.my smtp config setting

$config['protocol'] = 'smtp'; $config['smtp_host'] = 'host'; $config['smtp_port'] = '**'; $config['smtp_user'] = $email_id; $config['smtp_pass'] = $password; $config['charset'] = 'utf-8'; $config['newline'] = "\r\n"; $config['crlf']    = "\n";  $config['wordwrap'] = true; $config['wrapchars'] = 10; $config['mailtype'] = "html"; 

thanks in advance.

apparently known issue, caused email subject more 75 chars: http://codeigniter.com/forums/viewthread/154493/p15/#925385

it might change email config. there 2 ways go it:

  1. create separate instance of email object own separate config parameters: $email = new ci_email(array('newline' => "\r\n"));
  2. using in-line config strings: $this->email->newline = "\r\n"; , $this->email->crlf = "\n";

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -