Automating Login Process for Viewing Posts on Inixia Community Site

"We have community features setup in https://www.inixia.com We want to achieve below scenario for the community: The steps are as follows: 1) User1 in a community connect with user2 in the community. 2) User1 sends activity post message to user2. 3) User2 receives email with the post message sent by User1. 4) User2 clicks on ""View Post"" in the email. 5) Observation is: a) If the user2 is already logged in then User2 is redirected to ""Activity"" page with the view of the post message. The user can comment to the post. b) If the user2 is not logged in then user2 is redirected to ""Home"" page. Click on ""SignIn"". Login with his credentials. Goto ""Activity"" page by selecting ""Profile Drop down "" menu. After this User2 could view the post and respond to the post message. We want to automate the case (b) mentioned above. i.e. if the user is not logged in inixia site