-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
worker not sending email while using Php mailer #61
Comments
What user are you running it with for crontab? |
yes it was running under root prior then i tried with apache by using crontab -u apache -e |
what is the logged error incl stracktrace? |
I do not have access to the server right now i can get that error output in a while but how to get "logged error incl stracktrace" where is this file ? If you run it first with root you might sabotage that --- how to check this ? |
the log files are in /tmp/logs probably, or if a more severe PHP error in the apache logs. |
2015-09-20 00:29:43 Error: (line 78 in /var/www/html/beta/lib/Cake/Network/Email/MailTransport.php) this is the cake error i got from error.log file |
This is an issue with your local email setup. I recommend to always use Smtp or alike as I do. |
This is an issue with your local email setup. I recommend to always use Smtp or alike as I do. Totally wrong assumption, as i told in my comments its working when i run the worker from script } i have used non-queue mail over 10 times in the application and its working fine so it is not the case but you closed the issue without discussing for a solution :-( |
crontab != user executing your custom script. |
Sorry I do not understand your last comment. |
public $default = array(
'transport' => 'Mail',
'from' => 'test@myserver.com'
);
I am using above settings in my email config and using crontab
*/10 * * * * cd /var/www/html/beta/app/ && Console/cake Queue.Queue runworker > /tmp/queque.txt
cron tab runs every 10 minutes but email is not sending from php when i use some Smtp transport it start sending emails.
Note => when i run script manually using a web script
public function runJob(){
it sends mail with Php transport but when it is started from crontab it goes to failure
what am i doing wrong here ?
The text was updated successfully, but these errors were encountered: