This isn't a Cake issue, it's DNS. Search google for that error and
you'll find some information about it (that's about all I can tell you
about it).

But it may be simply that you have a typo: "smpt.1und1.de" should
probably be "smtp.1und1.de".

On Fri, Sep 4, 2009 at 7:03 PM, Benedikt R.<bened...@rossgardt.de> wrote:
>
> 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' => 'u...@domain.de',
>                        'password' => '#########'
>                );
>
>                $this->Email->sendAs = 'text';
>                $this->Email->delivery = 'smtp';
>                $this->Email->from = 'u...@domain.de';
>                $this->Email->to = 'u...@domain.de';
>                $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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to