Mail not send in contact form using codeigniter and godaddy linux server -


i designed http://gmgroups.co/ website using codeigniter. in website contact form mailing function not working. using godaddy linux server.. ask customer care in godaddy cant solve problem.. keep call on hold only.. try solve issue more 2 day cant solve problem.. can 1 pls me solve issue.

this codeing

public function contactform(){              //get form data             $name = $this->input->post('name');             $from_email = $this->input->post('email');             $subject = $this->input->post('subject');             $message = $this->input->post('msg');              //set to_email id want receive mails             $to_email = 'info@gmgroups.co';              //configure email settings             $config['protocol'] = 'smtp';              $config['smtp_user'] = 'info@gmgroups.co';             $config['smtp_pass'] = 'xxxxxx';             $config['smtp_host'] = 'smtpout.secureserver.net';             $config['smtp_port'] = '25';             $config['mailtype'] = 'html';             $config['charset'] = 'iso-8859-1';             $config['wordwrap'] = '50';             $config['newline'] = "\r\n"; //use double quotes             $this->load->library('email', $config);             $this->email->initialize($config);                                      //send mail             $this->email->from($from_email, $name);             $this->email->to($to_email);             $this->email->subject($subject);             $this->email->message($message);             if ($this->email->send())             {                 // mail sent                 $this->session->set_flashdata('msg','<div class="alert alert-danger text-center">thanks contacting us! contact                soon..</div>');             $this->load->view('layouts/head');               $this->load->view('contact');             $this->load->view('layouts/footer');             }             else             {                 //error                 $this->session->set_flashdata('msg','<div class="alert alert-danger text-center">there error in sending mail! please try again later</div>');                  $this->load->view('layouts/head');              $this->load->view('contact');             $this->load->view('layouts/footer');             } 

i believe problem not code godaddy appear require mail relay - i.e. can't connect server on port 25. have use own mail server instead.

i don't have experience of godaddy following website (a few years old now) might help: http://nickberardi.com/how-to-send-smtp-email-through-godaddy/

your solution rule out try mailing command line (i've not used http://www.binarytides.com/linux-mailx-command/) , see if can email command line. if can php/codeigniter issue - if not provider.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -