Hi All

I am trying to use the new email component in cake 1.2, but am having
problems using it with an authenticated SMTP server. I am getting the
following error:
503 5.5.2 Send hello first

How would I send the Hello using the component? FYI I can use Pear's
email script on the same SMTP server with the same credentials, so
that side of it definitely works.

Any help would be gratefully received. My test code is below.

Ian

$this->Email->to = "[EMAIL PROTECTED]";
    $this->Email->subject = 'test email';
    $this->Email->from = 'Address <[EMAIL PROTECTED]>';
    $this->Email->template = 'default';
    $this->Email->sendAs = 'text';
    $this->Email->smtpOptions = array(
        'port'=>'25',
        'timeout'=>'30',
        'host' => 'mail.xxxxx.com',
        'username'=>'xxxxxxxx',
        'password'=>'xxxxxxxx');
    $this->Email->delivery = 'smtp';
    $this->Email->send("testing");

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to