Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions application/libraries/MY_Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public function send($skip_job = FALSE)
'bcc' => $bcc,
'message' => $this->_body,
'headers' => serialize($this->_headers),
'attachments' => serialize($this->_attachments),
'status' => 'pending',
'date' => $date
);
Expand Down Expand Up @@ -131,6 +132,7 @@ public function send_queue()
$bcc = !empty($email->bcc) ? explode(", ", $email->bcc) : array();

$this->_headers = unserialize($email->headers);
$this->_attachments = unserialize($email->attachments);

$this->to($recipients);
$this->cc($cc);
Expand Down
1 change: 1 addition & 0 deletions schema/Schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ CREATE TABLE `email_queue` (
`cc` varchar(255) DEFAULT NULL,
`bcc` varchar(255) DEFAULT NULL,
`message` text NOT NULL,
`attachments` longtext NOT NULL,
`status` enum('pending','sending','sent','failed') DEFAULT NULL,
`date` datetime DEFAULT NULL,
`headers` text,
Expand Down