[ASTPPCOM-436] Version 3.6 | Email is not sending automatically Created: 11/Jun/18  Updated: 08/Sep/18  Resolved: 08/Sep/18

Status: Done
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task
Reporter: whitesparrowbd Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I have tried many times in many way
E-mail on signup, forgot password or anyone is not sending automatically, i need to send it from manually from E-mail history page.

I have already enable E-mail notification from Configuration > Settings

Can you help me to solve it?



 Comments   
Comment by Samir Doshi [ 11/Jun/18 ]

Have you configured crons?

Comment by whitesparrowbd [ 11/Jun/18 ]

yes configured the given crons

Generate Invoice  

0 1 _ _ * cd /var/www/html/astpp/cron/ && php cron.php GenerateInvoice 

Low balance notification

0 1 _ _ * cd /var/www/html/astpp/cron/ && php cron.php UpdateBalance          
 # Low balance notification
0 0 _ _ * cd /var/www/html/astpp/cron/ && php cron.php LowBalance 

Low credit notification

0 0 _ _ * cd /var/www/html/astpp/cron/ && php cron.php LowCredit          
 # Update currency rate

0 0 _ _ * cd /var/www/html/astpp/cron/ && php cron.php CurrencyUpdate

i saved all data to /etc/crontab

but the main issue is all the given crons are regular usable issue, but where is the signup, forgot password, confirmation and others cron job ?

Comment by (Community) DN (Inactive) [ 14/Jun/18 ]

About 'email not sending issue', you can enable mail debug from configuration and monitor the logs in /var/log/astpp/astpp_email.log file.
About other event's cron, those event are triggered from button click and managed by calling according scripts when required/button clicked.

Comment by powerpbx [ 03/Jul/18 ]

Maybe a stupid question but have you verified that emails sent manually work?

echo testing | mail -s "test mail" somemail@somedomain.com

Comment by alexheylin [ 10/Jul/18 ]

[~whitesparrowbd] I think you've made a mistake I made when I first configured ASTPP by hand. You've put the cron entries in /etc/crontab directly - but they're in the wrong format to go directly into the master crontab as it needs a username field too so they won't run. I suggest moving them to /var/spool/cron/crontabs/astpp on Debian or /var/spool/cron/astpp on CentOS - or use the install.sh to install. The cron code is on lines 556 - 576. Using the install.sh will ensure the system is configured as it's supposed to be, as there are some other things like this that can catch you out if you try to install manually.
[~powerpbx] makes a good suggestion too - confirm email system is working, and your settings in Configuration > Settings > Email are correct.

Generated at Sat Feb 10 07:17:06 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.