milbas adlı üyeden alıntı: mesajı görüntüle
yaptığım bir web çalışmasında localhostta başarı ile mail gönderebilirken web sitesi üzerinde hata alıyorum.

Message: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known

Filename: libraries/Email.php

File: /home/ilbasnet/public_html/mehmet/application/core/MY_Controller.php
Line: 121
Function: send

File: /home/ilbasnet/public_html/mehmet/application/controllers/Register.php
Line: 51

MY_Controller.php 121.satır
        $this->email->initialize($config);
        $this->email->from($from);
        $this->email->to($to);
        $this->email->subject($subject);
        $this->email->message($message);
        if ($this->email->send()) {
            return true;
        } else {
            $this->email->print_debugger();
        }
Register.php 51.satır
 $sendMessage = $this->sendMail($setting->mail, $this->input->post('email'), 'Aktivasyon', 'Aktivasyon kodunuz: '.$this->activation($enc_pass, $this->input->post('phone')));
                    if($sendMessage === true) {
                        $ayarlar['mesaj'] = "kayit";
                        $this->dumpError($ayarlar);
                    }else {
                        $ayarlar['message'] = $sendMessage;
                        $this->dumpError($ayarlar);
                        return;
                    }
deneme yapmak isteyenler için http://mehmet.ilbas.net/kayit

bu arada sistem codeigniter ile kodlanmıştır
mail fonksiyonunun açık olduğundan emin olun eğer açık değilse hata almanız normal smtp kullanabilirsiniz