Has a strange problem with the email class in codeigniter. When I send an email directly to the email address of my gmail account, it works fine. However, if I send an email to a different email address and use POP3 to import this email address into gmail, then for some reason all the headers are included in the message.
Here is the code for sending email:
$this->email->clear(); $config['mailtype'] = "html"; $this->email->initialize($config); $this->email->set_newline("\r\n"); $this->email->from('email@example.com', 'Website'); $this->email->to('accountthatimportstogmail@url.com'); $this->email->message($message);
Here's what comes in my inbox when an email is sent to an account that is imported into gmail through POP3:
Date: Fri, 7 Jan 2011 15:07:04 +0000 From: "Website" <email@example.com> Reply-To: "email@example.com" <email@example.com> X-Sender: email@example.com X-Mailer: CodeIgniter X-Priority: 3 (Normal) Message-ID: <4d272c1835479@example.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="B_ALT_4d272c1835c46" This is a multi-part message in MIME format. Your email application may not support this format. --B_ALT_4d272c1835c46 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit this is the email message content --B_ALT_4d272c1835c46 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html> <body> <p>this is the email message content </p> </body> </html> --B_ALT_4d272c1835c46--
, , .
, . , POP3. GMail POP3, .
, , Thunderbird ( ) Squirrel Mail (-), , .
( ) - POP3 , .
, ( ), , POP3 GMail. , , - , ( ), POP3- - , CI, , .
, CodeIgniter, , - - , - . , POP3 , , , POP3, . , , , (CI), , ?
.
, $ config ['protocol'] = 'sendmail';
( pop3) codeigniter/sendmail/php/dns/smtp, , , , . , , Google Mail Fetcher pop3 , .
, , pop3 gmail, , , , .
, - Gmail. (, ) CC BCC, POP3. , , .
, ...
, : CodeIgniter