How to notify via email upon topic reply and @ mention

Hm. This is normal discourse functionality. You do not have to do anything, to get it running.

Keep in mind, that there is a time window between notifications and posting (which you can adjust as admin) and that users, who are online, will be not emailed, unless you configure it otherwise.