projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dec77cc
)
Mailer.php
author
Edward
<edward@roojs.com>
Tue, 19 Feb 2019 09:19:59 +0000
(17:19 +0800)
committer
Edward
<edward@roojs.com>
Tue, 19 Feb 2019 09:19:59 +0000
(17:19 +0800)
Images.php
Mailer.php
patch
|
blob
|
history
diff --git
a/Mailer.php
b/Mailer.php
index
e1a1c23
..
7da09a8
100644
(file)
--- a/
Mailer.php
+++ b/
Mailer.php
@@
-393,8
+393,6
@@
class Pman_Core_Mailer {
foreach ($imgs as $i=>$img) {
$url = $img->getAttribute('src');
foreach ($imgs as $i=>$img) {
$url = $img->getAttribute('src');
- print_r($url);
- echo "\n";
if (preg_match('#^cid:#', $url)) {
continue;
}
if (preg_match('#^cid:#', $url)) {
continue;
}
@@
-405,8
+403,6
@@
class Pman_Core_Mailer {
if(!array_key_exists($url, $urls)){
$conv = $this->fetchImage($url);
if(!array_key_exists($url, $urls)){
$conv = $this->fetchImage($url);
- print_r($conv);
- echo "\n";
$urls[$url] = $conv;
$this->images[$conv['contentid']] = $conv;
} else {
$urls[$url] = $conv;
$this->images[$conv['contentid']] = $conv;
} else {
@@
-416,7
+412,7
@@
class Pman_Core_Mailer {
$img->setAttribute('src', 'cid:' . $conv['contentid']);
}
$img->setAttribute('src', 'cid:' . $conv['contentid']);
}
- exit;
+
return $dom->saveHTML();
}
return $dom->saveHTML();
}
@@
-591,8
+587,6
@@
class Pman_Core_Mailer {
require_once 'HTTP/Request.php';
$real_url = str_replace(' ', '%20', $this->mapurl($url));
require_once 'HTTP/Request.php';
$real_url = str_replace(' ', '%20', $this->mapurl($url));
- print_R($real_url);
- echo "\n";
$a = new HTTP_Request($real_url);
$a->sendRequest();
$data = $a->getResponseBody();
$a = new HTTP_Request($real_url);
$a->sendRequest();
$data = $a->getResponseBody();
@@
-604,8
+598,6
@@
class Pman_Core_Mailer {
$mt = $a->getResponseHeader('Content-Type');
$mt = $a->getResponseHeader('Content-Type');
- print_r($mt);
- echo "\n";
require_once 'File/MimeType.php';
$m = new File_MimeType();
require_once 'File/MimeType.php';
$m = new File_MimeType();