Hi
I'm creating a site, and currently just have a basic holding page with an email subscription form. I'm hosting the site locally on a LAMP Stack for development, with a host for Production.
The current flow of events is...
User fills out 1 field form supplying email address.
Controller builds an email and sends it to admin email confirming a new subscriber
Controller writes the email address to a simple database table - done so via a Model function.
Controller builds an email and sends it to new subscriber confirming subscription.
User is shown a success page.
On my localhost, everything works as expected, and 2 emails are received - its very simply after all. It's using the Codeigniter build in email class.
But after uploading everything to the host (and changing the necessary host specific variables), every works EXCEPT sending the FIRST email, so only 1 email received and no errors are reporting in the log (with log threshold set to 1). I've tried adding in a $this->email->clear() but no change!
If no email worked, or data wasn't written, then I would have said it was a configuration difference between localhost and webhost, but the fact that SOME of it works has gotten me a little baffled.
Anyone got any suggestions? I'm happy to post code if people need to see it, I just didn't want to flood the post with stuff if someone knows exactly whats going on without needing to see it.
Thanks in advance!
DC