Removing static declaration from trySendingMail method