04-30-2010, 04:38 AM
[eluser]Total Shop UK[/eluser]
If I use CI mail to send an email I get an error in Mercury SMTP as shown below.
30 Apr 10 11:33, Servicing job MO000166... 553 5.0.0 <<[email protected]> SIZE 1103... Unbalanced '<'
But if I use the standard mail() it works fine.
30 Apr 10 11:35, Servicing job MO00016E... OK.
Any ideas?
If I use CI mail to send an email I get an error in Mercury SMTP as shown below.
30 Apr 10 11:33, Servicing job MO000166... 553 5.0.0 <<[email protected]> SIZE 1103... Unbalanced '<'
Code:
$html = 'This is a <b>html</b> test';
$text = 'This is a text test';
$from_email = '[email protected]';
$to = '[email protected]';
$subject = 'Test Subject';
$this->load->library('email');
$config['charset'] = 'iso-8859-1';
$config['wordwrap'] = TRUE;
$config['mailtype'] = 'html';
$this->email->initialize($config);
$this->email->from($from_email);
$this->email->to($to);
$this->email->subject($subject);
$this->email->message($html);
$this->email->set_alt_message($text);
$this->email->send();
But if I use the standard mail() it works fine.
30 Apr 10 11:35, Servicing job MO00016E... OK.
Code:
$header = "From: [email protected]"."\r\n";
mail('[email protected]', 'Test Subject', 'This is a text test', $header);
Any ideas?