My boss needs the contact email adress or prospect/account, to be checked as invalid after the sending of the campaign’s emails ( when an email doesn’t reach the contact email adress ) so I need to know where to code that, and how to code that.
I know i’m not the first to be in need if this functionnality.
You can try with a custom scheduler.
The drawback would be that between one run and the other of the scheduler invalid emails will not be marked as invalid until the scheduler run. In any case you can run this scheduler quite often because it shouldn’t be a long query to perform and, unless you are constantly sending emails to the same lists, it will be unlikely that an invalid email will be picked for sending.
we actually use sendgrid to manage our emails, and I saw that sendgrid has an api to get the returns of the emails ( open, invalid etc…) I now have to find how to implement this api and get the json datas to deal with my problem, I’ll use the sugarcrm function to do this.
I still have an issue, when I try to create my own job like described in suitecrmfordevelopers ( with the same example page 70 ) and then repair, I don’t see my new task in the scheduler page.
I also had to create the folders in custom (custom/Extension/modules/[strong]Schedulers/Ext/ScheduledTasks[/strong] ) because they didn’t exist in my project, is it normal ?
Actually, I thought that I could see my task directly when accessing the scheduler’page, but I saw my task in the task list when creating one.
But I was wondering if it is appropriate to do a custom scheduled task to manage my need, I actually need an action to happen whenever I send an email.
More presicely about my tools now, I will use 2 SendGrid GET API’s to get Jsons with the invalid and bounced emails and with these emails I will set the “invalid” column in the email table to 1, so that the invalid chechbox next to the person’s email can be checked.
But we won’t send emails all the time, so is the scheduler a good solution or is there another solution easier ?
I have never done it myself but I believe that you can create a custom entry point that is called directly by your external script.
It’s something like a webtolead form which calls from an external application an entry point that updates some data in the CRM.
If possible, please share your solution in the Forum so that, if someone has the same requirement in the future, he can also benefit from your findings.