PHPMailer class - inline Attachements

Discussion in 'PHP' started by piernik, Dec 8, 2005.

  1. #1
    I use phpmailer.class for newsletter.

    In HTML version I've attached inline images
    $mail->AddEmbeddedImage($file, $cid, $file);

    In most of mailclients it works (outlook, opera) but not in thunderbird... Why?
    I have files attached, cid:{file} in html code, but no image.
     
    piernik, Dec 8, 2005 IP
  2. dotboost

    dotboost Peon

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Copy/paste here full email header , definitely is a problem of wrong email headers.
     
    dotboost, Dec 9, 2005 IP
  3. piernik

    piernik Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    here it is:
    
    Return-Path: 	<dobreporady@host38.nazwa.net.pl>	
    Received: 	by mx.poczta.interia.pl (Postfix, from userid 502) id 419483A94BC; Thu, 8 Dec 2005 10:36:51 +0100 (CET)	
    Received: 	from host38.nazwa.net.pl (server160002.rev.netart.pl [85.128.160.2]) by mx.poczta.interia.pl (Postfix) with ESMTP id 9CC033A94DB for <lpiernik@interia.pl>; Thu, 8 Dec 2005 10:36:44 +0100 (CET)	
    Received: 	(from dobreporady@localhost) by host38.nazwa.net.pl (8.12.11/8.12.11) id jB89ai1Q021387; Thu, 8 Dec 2005 10:36:44 +0100	
    Do: 	lpiernik@interia.pl	
    Temat: 	test34	
    Data: 	Thu, 8 Dec 2005 10:36:44 +0100	
    Od: 	High Web Profit <lukasz@highwebprofit.com>	
    Message-ID: 	<6d128df0ad38fd1be9015675718a1396@pl.highwebprofit.com>	
    X-Priority: 	3	
    X-Mailer: 	PHPMailer [version 1.73]	
    MIME-Version: 	1.0	
    Content-Type: 	multipart/related; type="text/html"; boundary="b1_6d128df0ad38fd1be9015675718a1396"	
    X-SPAM-Result: 	Innocent	
    X-SPAM-Confidence: 	0.9955	
    X-SPAM-Probability: 	0.0000
    
    Code (markup):
    And html header:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    
    <HTML><meta http-equiv="Content-type" content="text/html; charset=iso-8859-2"/><HEAD><title>High Web Profit</title>
    
    </HEAD>
    <body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
    <center>
    <div class="strona">
    <img src="cid:mail/maile/zalaczniki/nagl.jpg">
    HTML:
     
    piernik, Dec 9, 2005 IP