mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Remove comments, and fix debug transport for email.
This commit is contained in:
parent
2844f4a477
commit
212028cda2
3 changed files with 2 additions and 4 deletions
|
@ -32,7 +32,7 @@ class DebugTransport extends AbstractTransport {
|
|||
* @return array
|
||||
*/
|
||||
public function send(CakeEmail $email) {
|
||||
$headers = $email->getHeaders(array('from', 'sender', 'replyTo', 'readReceipt', 'returnPath', 'to', 'cc', 'bcc', 'subject'));
|
||||
$headers = $email->getHeaders(array('from', 'sender', 'replyTo', 'readReceipt', 'returnPath', 'to', 'cc', 'subject'));
|
||||
$headers = $this->_headersToString($headers);
|
||||
$message = implode("\r\n", (array)$email->message());
|
||||
return array('headers' => $headers, 'message' => $message);
|
||||
|
|
|
@ -54,14 +54,13 @@ class DebugTransportTest extends CakeTestCase {
|
|||
$headers = "From: CakePHP Test <noreply@cakephp.org>\r\n";
|
||||
$headers .= "To: CakePHP <cake@cakephp.org>\r\n";
|
||||
$headers .= "Cc: Mark Story <mark@cakephp.org>, Juan Basso <juan@cakephp.org>\r\n";
|
||||
$headers .= "Bcc: phpnut@cakephp.org\r\n";
|
||||
$headers .= "X-Mailer: CakePHP Email\r\n";
|
||||
$headers .= "Date: " . date(DATE_RFC2822) . "\r\n";
|
||||
$headers .= "Message-ID: <4d9946cf-0a44-4907-88fe-1d0ccbdd56cb@localhost>\r\n";
|
||||
$headers .= "Subject: Testing Message\r\n";
|
||||
$headers .= "MIME-Version: 1.0\r\n";
|
||||
$headers .= "Content-Type: text/plain; charset=UTF-8\r\n";
|
||||
$headers .= "Content-Transfer-Encoding: 7bit";
|
||||
$headers .= "Content-Transfer-Encoding: 8bit";
|
||||
|
||||
$data = "First Line\r\n";
|
||||
$data .= "Second Line\r\n";
|
||||
|
|
|
@ -224,7 +224,6 @@ class SmtpTransportTest extends CakeTestCase {
|
|||
$data = "From: CakePHP Test <noreply@cakephp.org>\r\n";
|
||||
$data .= "To: CakePHP <cake@cakephp.org>\r\n";
|
||||
$data .= "Cc: Mark Story <mark@cakephp.org>, Juan Basso <juan@cakephp.org>\r\n";
|
||||
//$data .= "Bcc: phpnut@cakephp.org\r\n";
|
||||
$data .= "X-Mailer: CakePHP Email\r\n";
|
||||
$data .= "Date: " . date(DATE_RFC2822) . "\r\n";
|
||||
$data .= "Message-ID: <4d9946cf-0a44-4907-88fe-1d0ccbdd56cb@localhost>\r\n";
|
||||
|
|
Loading…
Add table
Reference in a new issue