Re: Mail_Mime sending HTML-mail example

From: Date: Fri, 31 May 2002 14:04:03 +0000
Subject: Re: Mail_Mime sending HTML-mail example
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6684@lists.php.net to get a copy of this message
Markus Fischer wrote:
    Hi,
    do you *really* need the images being inline?
    I haven't seen a problem yet with sending HTML mails (for
    newsletters, e.g.) which reference the images with an
    absolute URL: <img src="http://host/images/spacer.gif" width
that's the problem, i do need them to be inline :-( wolfram
On Fri, May 31, 2002 at 01:25:18PM +0200, Wolfram Kriesing wrote :
is there a properly working example of how to send a html mail. including pictures which will be attached and sent. and their references within the html file will be converted. does someone have a working example of that? i would be glad to see one. thanks what i am currently doing is:
       $mime = &new Mail_Mime;
       $headers['From'] = $data['from'];
       $headers['Subject'] = $data['subject'];
       $to = 'wk@dvd-kunden.de';#$data['to'];
       $mime->setHTMLBody( 'http://some.com.de/index.php' , true );
       $mime->addHTMLImage('frame.gif');
       $mime->addHTMLImage('pixel.gif');
       $mbody = $mime->get();
       $headers = $mime->headers($headers);
       $mail = Mail::factory('mail');
       $mail->send($to, $headers, $mbody);
or is there any mistake in there? the html mail i am getting has the iamge names replaced in the html file by those "cid:...." thingys but my mail client (kmail) doesnt show the html-mails properly, the images are always "empty" and the attached files still have to old names. any hints/solutions/examples? -- Wolfram ... translating template engine .... http://sf.net/projects/simpletpl ... authentication system .... http://sf.net/projects/auth -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Wolfram ... translating template engine .... http://sf.net/projects/simpletpl ... authentication system .... http://sf.net/projects/auth

« previous php.pear.dev (#6684) next »