I would like to know if there was an app that can notify me whenever my mac is powered on. like IFTTT app. example if mac powered on then send a message to iphone.
You could certainly script this. There are many approaches that would work. It depends on how comfortable you are with the various tools, and if your Mac automatically logs into a user account.
If your Mac automatically logs into your account on powering on, consider using Automator or AppleScript, and Twitter.
Automator and Twitter
Consider combining this article on Automator and Twitter. You could send a private tweet when your account is logged in. Save the workflow as an application and add it your account's Login Items: System Preferences > Users & Groups
If your Mac does not automatically log into a user account, you will need to use a shell script approach. Automator and AppleScript both require an active user session.
This can all be integrated into IFTTT as a trigger.