Thanks for previous ticket. I am creating this new ticket as per Your suggestion. Actually I am developing application for my current website and most of things are done. I am just confused in giving notification to user when new email arrive in inbox. I am looking for way to give user to notification whenever new email arrive in inbox of the email which user have created. I don't know from where I can get trigger for same. Let me know what you say. Thanks!
Which application you're developing?
Are you talking of TMail or a custom app that you're developing?
Sorry for late reply. I am developing android application of tmail for me.
please let me know if you are there.
You can use fetch new emails API and see if that contains any data, if it does then push a new notification to the user.
Thanks for suggestion but its very hard to run cron for each email one by one if we have lot of emails. There any other way from which can give us trigger when any new email arrive in any email box? It will be very handy for us to handle it.
Why you want to run CRON for this?
You can't simply send push notifications once you receive new mail?
Also, this is just a suggestion, but it's upto you how to use the API
Hi! Yes I want only send push when new email arrive in inbox. let me explain. If I have 1000 users and they have created 1500 email accounts, How I can know in which email I have currently got new email? so I can send push to that user? fetch email API need to pass email as parameter and so I don't need to run cron for all this 1500 accounts one by one? I think I am missing something, Please let me know what You say.
basically I want call one PHP file whenever any new email arrive in any email's inbox, no matter for which domain or which email id it have received, Please let me know about it.
Well, you have to store sort of unique ID of your user and then map that email ID to any disposable one.
You need to put some sort of registration system where they are recorded.
I don't see any other solution but to do this via CRON.