Email mail() problem |
[eluser]Kemik[/eluser]
Quote:Unable to send email using PHP mail(). Your server might not be configured to send mail using this method. My host (resellerzoom) have no idea why CI says mail() isn't working. So I thought I'd best try here. Code: $this->load->library('email'); sendmail gives an internal server error.
[eluser]Derek Allard[/eluser]
How do you send mail from PHP outside of CodeIgniter?
[eluser]woodydude[/eluser]
I'm having a similar problem to be honest... I can send an email using the following code: Code: mail("[email protected]", "Email Subject", "Message content", "From: [email protected]" ); however I'd prefer to use the CI emailing, but using the following code it's not working: Code: $this->load->library('email'); Code: print $this->email->print_debugger(); Quote:Unable to open a socket to Sendmail. Please check settings. Any ideas? Cheers Woody
[eluser]tomodian[/eluser]
I had same problem, and in my case, mailserver was unable to send mail when From: and Return-Path is blank. Try setting both From and Return-Path to check in your environment.
[eluser]druid100[/eluser]
i have the same problem, neither in From: nor in Return-Path: is the email address specified which i set with emai->from(...). any ideas why that could happen?
[eluser]druid100[/eluser]
hmm ... actually if you log the debug output to a file you probably will see that data is not blank, i made the same mistake to just echo it to the browser, so everything between < and > is not shown properly.
[eluser]Peri[/eluser]
The trouble is in restrict functions php. Probably your hosted disabled functios like popen for example. |
Welcome Guest, Not a member yet? Register Sign In |