2011-05-12 3 views
-1

다음 스크립트는 이메일에 이미지를 포함하지 않습니다. 대신은 img 태그의 src 속성을 제거합니다이메일에 osCommerce 이미지 포함

require('includes/application_top.php'); 
//include(DIR_WS_CLASSES . 'mail.php'); 
$img_url ='<div style="border:1px solid black; padding:5px;"><img src="http://spottheball.designers99.com/images/logo.png" /></div>'; 
$contents = $img_url; 

$contents .= '<div style="padding:4px; border:1px solid red; background:green;font-size:50px">A test text</div>'; 
$m = new email(array('X-Mailer: osCommerce Mailer')); 
$m->add_html($contents); 
$m->image_types = 'png'; 
//$m->headers[] = "Content-Type: image/png"; 
$m->build_message(); 
$add_to = '[email protected]'; 
$m->send('Shahid', $add_to, 'Omar', '[email protected]'); 

답변

0

의 Gmail 블록 이미지를 만들면 기본적으로 이미지를 다운로드하여 표시되는 다운로드 링크를 클릭 할 때. 그래서 나는 그렇게했고 이미지가 표시되었습니다.

관련 문제