Hi!
I had written a small mail application, but I have problem displaying
the picture in the mail. What did I make wrong? Any guys of you have an
idea? 

for any help & support would thank you. Here the source for the mail
routine and the html mail!: 

private static function Mail($ToMail,$ToName)
        {
                
                
                $mail = new Zend_Mail('utf-8');
                $mail->setBodyHtml(self::$htmlcontent);
                $mail->setFrom(self::$mailaddress,self::$mailwho);
                $mail->addTo($ToMail,$ToName);          
                $mail->createAttachment(self::$contents, 'image/gif',
Zend_Mime::DISPOSITION_ATTACHMENT,
Zend_Mime::ENCODING_BASE64 ,'logomail.gif');
                $mail->send();
        }
        
        private static function DieMail($Kopf,$Text,$Ende)
        {
                self::$htmlcontent = '
                <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd";>
                <html>
                <head>
                <meta http-equiv="content-type" content="text/html; 
charset=UTF-8">
                <title>Untitled Document</title>
                </head>
                <link type="text/css" rel="stylesheet" href="mail.css">
                <script type="text/css">
                @CHARSET "UTF-8";
                #logo {text-align:center;}
                #mail
{font-family:"Verdana";font-size:14px;border-width:1px;position:absolute;top:30px;left:30px;right:30px;width:640px;height:auto;}
        
                #mailinhalt
{position:relative;text-align:justify;direction:ltr;direction:'.self::
$ltrrtl.';}
                </script>
                <body>
                <div id="mail">
                <img src="logomail.gif">
                <div id="mailinhalt">
                <!-- Kopf Hallo... hello....-->
                <br>'.$Kopf.'
                <!-- Der Hauptteil!-->
                <br>'.$Text.'
                <br>'.$Ende.'</div>
                </div>
                </body>
                </html>';
        }

Reply via email to