on 08-18-2015 1:10 PM
i am following this trail https://wiki.hybris.com/display/tr52/Trail+~+CronJobs when i click on start job , status shows as running and not receing email. can someone help on this. not even getting error also.
Hi,
Can you try activating "https://www.google.com/settings/security/lesssecureapps" for the gmail account which you are using?
I could send emails without any issues. Did you do the below steps,
Open the cuppy-section and edit a player Set the newsletter-attribute to true. Change the eMail address of this player to your email address. It seems the condition might not be satisfied.
If the above doesnot solve your problem You can add below code replacing the existing one in perform method of ranking job to check email is working fine.
final PlayerModel player = new PlayerModel();
player.setUid("uidtest");
player.setEMail("xxx@gmail.com");
mailService.sendConfirmationMail(player);
return new PerformResult(CronJobResult.SUCCESS, CronJobStatus.FINISHED);
This does not contain any condition. If you execute cronjob it will send confirmation email. Let me know if you face any issues.
Thanks,
Jayahar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I could send emails. Did you do the below steps,
Open the cuppy-section and edit a player Set the newsletter-attribute to true Change the eMail address of this player to your email address It seems the condition might not be satisfied or You can below code replacing the existing one in perform method of ranking job to check email is working fine. final PlayerModel player = new PlayerModel(); player.setUid("uidtest"); player.setEMail("xxx@gmail.com"); mailService.sendConfirmationMail(player); return new PerformResult(CronJobResult.SUCCESS, CronJobStatus.FINISHED);
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.