I have some problems with the email system for CodeIgniter:
-
First, the emails I send out (registration, confirmations) are getting caught in standard spam filters in gmail and other mail clients. How do I get around this? How do companies like Facebook get their emails through consistently?
-
Second, the mailer is working locally but once we deploy it it no longer runs (doesn’t send emails) but all the other forms run just fine. Anyone ever run into a problem like this?
Thanks for all the help!
I can’t really answer your first question – it’s not specific to CodeIgniter. You just need to make sure your email doesn’t look like spam. In short – there’s no way of guaranteeing your e-mail will not end up in a spam filter.
As for the second question, I expect your production server needs to be configured properly for email. You probably need to configure CodeIgniter to send email properly. I would suggest setting up an SMTP server (or using an existing one) rather than using the standard PHP mail which I think CodeIgniter uses by default.