Cakephp SMTP-E-Mails syntax-Fehler

Ich hab ein problem mit E-Mail-Versand in Kuchen. Meine Methode sieht wie folgt aus:

$this->Email->smtpOptions = array(
            'port'=>'465', 
            'timeout'=>'30',
            'auth' => true,
            'host' => 'ssl://smtp.gmail.com',
            'username'=>'[email protected]',
            'password'=>'mypass',
        );

        $this->Email->from    = "admin@localhost";
        $this->Email->to      = "[email protected]";
        $this->Email->subject = "Test";
        $this->Email->sendAs = "text";

        $this->Email->delivery = 'smtp';

        $this->Email->send('Hello message body!');

Aber wenn ich versuche zu senden die E-Mail habe ich bekommen:

555 5.5.2 Syntax error. l3sm512374fan.0

Was brauche ich, um chnage, um für diese zu arbeiten?

Dank

InformationsquelleAutor Elwhis | 2010-12-12
Schreibe einen Kommentar