Ich habe jetzt noch eine Änderung vorgenommen. $this->htmlMail = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Mail\\MailMessage');
                                        //$this->htmlMail = 
t3lib_div::makeInstance('\TYPO3\SwiftMailer\Message');
                                        //$this->htmlMail->start();
                                        $this->htmlMail->recipient = 
$email['address'];
                                        $this->htmlMail->subject = 
$email['subject'];
                                        $this->htmlMail->from_email = 
$email['from'];
                                        $this->htmlMail->from_name = 
$email['from_name'];
                                        $this->htmlMail->returnPath = 
$email['returnPath'];
                                        $this->htmlMail->replyto_email = 
$email['from'];
                                        $this->htmlMail->replyto_name = 
$email['from_name'];
                                       $this->htmlMail->setBody('Here is the 
message itself');
                                       $this->htmlMail->setBody(
                                       '<html><head></head><body>' .
                                       '  Here is an image <img src="' . $cid . '" 
alt="Image" />' .
                                       '  Rest of message' .
                                       ' </body></html>',
                                       'text/html' //Mark the content-type as 
HTML
                                       );
                                        
//$this->htmlMail->addPlain($email['body']);
                                        
//$this->htmlMail->encodeMsg($html_start.$email['body'].$html_end);       
                                        
//$this->htmlMail->setHTML($this->htmlMail->encodeMsg($html_start.$email['body'].$html_end));
               
                                        
$this->htmlMail->send($email['address']);

Jetzt bekomme ich folgende Fehlermeldung: Fatal error: Uncaught exception 'Swift_TransportException' with message 'Expected response code 220 but got code "", with message ""' in /var/www/htdocs/typo3/typo3_src-6.2.19/typo3/contrib/swiftmailer/classes/Swift/Transport/AbstractSmtpTransport.php on line 386

Kann mir einer sagen, was da jetzt falsch läuft?

_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an