If your site stopped sending out emails, there could be several reasons.
STEPS TO TROUBLESHOOT ISSUES WITH EMAILS THAT ARE CONTROLLED BY CRON ( ex: mass mailing)
1. Open your database and find "ow_base_mail" table. It might or might not be empty. If it is not empty, just take a screen shot of it.
IMPORTANT: If you are going to test with activity notification, log in as the user you are going to test with>>go to "My Preferences">>email notifications>>select "Immediately" ( Otherwise you will have to wait 2 days for the email =) See "Testing with Activity Notifications" section of the post".
2. Send an email using either "Mass Mailing" feature or "Invite Friends" feature
3. Go to "ow_base_mail" table. Was the new row containing data about your last mailing created?
If new row appeared>>everything is ok. Follow step №4.
If new row didn't appear>>then it means that Oxwall didn't generate the email>>which is not ok>>report this issue on forum or PM me.
4. Wait until Cron runs or run it manually. Check "ow_base_mail" ( refresh the page) again. Was the row your saw before ( row containing data of your latest mailing) removed?
If new row was removed>>then it means that system is working ok. CRON is working ok. Follow step №5.
If new row was not removed, then it means that CRON is not working or your mail is not set correctly.
-To find out what is wrong with your CRON, you will need to run it manually via SSH client. You can find instructions here: http://docs.oxwall.org/install:cron
-If you are not sure whether your mail set correctly, contact your mail server provider ( usually provided by your hosting company). Check with them whether there are any limitation on the amount of emails sent, whether you have some kind of tool to monitor/track errors related to mailing.
5. Check the email where your mailing should have come ( again, you need to make sure that under preferences this user has "Immediately" for email notifications).
If email didn't come:
a) you have specified incorrect email in admin panel>>settings>>main settings ( applied if you tested using "mass mailing" feature)
b) email went to in spam/junk box
c) your mail server is not working/blocking/restricting you from sending emails.
Enable SMTP and try sending out emails using gmail SMTP (http://support.google.com/mail/answer/13287?hl=en). Use Outgoing Mail (SMTP)
When you are reporting your issue on forum make sure to include following info:
1. Your site URL
2. Whether you did manual or auto update
3. Whether you followed the steps listed above and where did you get stuck.
Depending on your issue you might be asked to provide:
1. admin panel access details
2. access to database
3. SSh access details
4. access to your control panel.
HOW CRON AND SMTP ARE CONNECTED TO MAILING in OXWALL?
There are different types of emails users receive: mass mailing, email notifications, verification, welcome and etc.
When you are troubleshooting mailing issue it is important to use right type of emails to check whether, for example, CRON works or not.
Brief explanation on how mailing works bellow:
Activity Notifications work only via CRON.
Immediately- means notifications will be sent when your Cron runs right away.
Auto- means notifications will be sent when your Cron runs, but only
after 2 days are passed and if user was not loged in to your site.
Mass Mailing - runs via CRON as well.
Invite users via contact importer- runs via CRON as well.
You can always see which emails are sent by cron if you check orginal .php source code.
For example, source code of email.php ( ow_plugins/contact_importer/controllers).
The code says: OW::getMailer()->addListToQueue($mails); .
Whenever you see addListToQueue - means CRON is involved in the process.
In all other cases emails don't need CRON to be sent: verificaiton and welcome emails, for example.
Important thing to remember is if you enable SMTP, ALL emails will be sent when CRON runs.
For those who have installed fresh copy of 1.5.2 or 1.5.3 :
a) since your CRON is not set, you will be getting a notice in admin panel saying that you should set it up.
b) until you set your CRON and it actually runs first time, your CRON
will be running every time somebody refreshes any page on your site.
This is the new feature that was added in 1.5.2 version to make things
easier for those who actually don't need and don't want to dig into
setting CRON manually. How does this work with notifications?
Somebody comes to your site, refreshes your page>>Cron
runs>>email notifications that were added to Queque will be
sent>> 50 emails are sent every 10 minutes.
One day you will go to your control panel and decide to set your CRON.
Once you do that, and if everything goes well, the feature that runs
CRON every time the page is refreshed will be deactivated when your
newly set CRON runs. From now on, notifications will work only
according to your CRON's settings.
TESTING WITH ACTIVITY NOTIFICATIONS.
Information listed above recommends testing with mass mailing or invite friends, because this is the easiest way to test mailing feature, since both mass mailing and invite friends don't have additional configurations.
If you are testing whether activity notifications are coming by email or not, make sure that:
1. under My Preferences">>email notifications>>"Immediately" is selected.
2. under My Preferences>>email notifications>> needed items are checked. So if you are going to test by sending a private message, make sure that user you are testing with have selected to receive email notifications about new private messages.
3. So UserA is all set, and has everything set correctly under "My Preferences" and you are ready to test by sending a Private message ( or friend request, for example) to UserA from UserB.
IMPORTANT: log out as UserA from your site using "log out" link. Don't just close browser or tab.
Only when UserA has loged out, log in as UserB and send UserA a testing message or request.
If you don't log out, system will consider that UserA is still loged in for the next 30 mins.
User who just closed the browser/tab will be loged out automatically after 30 mins, giving that CRON is running on your site.
So once again make sure to log out. Activity notifications come by email ONLY if user was not loged in when notification was generated.