Send Mail, only if online state changed from no to yes!

Doesn't send a mail every 5 Minutes anymore, only when the users get's
only one time!
Send Mail every 5 min, fixed
changes