Hi!

I get this error:
php_network_getaddresses: getaddrinfo failed: nodename nor servname
provided, or not known: 0

This is my controller action:

function register( ) {
        if ( !empty($this->data) ) {
                $this->Email->smtpOptions = array(
                        'port' => '25',
                        'timeout' => '30',
                        'host' => 'smpt.1und1.de',
                        'username' => '[email protected]',
                        'password' => '#########'
                );

                $this->Email->sendAs = 'text';
                $this->Email->delivery = 'smtp';
                $this->Email->from = '[email protected]';
                $this->Email->to = '[email protected]';
                $this->Email->subject = 'User Registration';
                $this->Email->send('Hello!');
                $this->Session->setFlash('Message body!');

                $this->set('smtp_errors', $this->Email->smtpError);
        }
}

--~--~---------~--~----~------------~-------~--~----~
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