If your husband has female “friends”, you will have problems in your marriage. 

If your wife has male “friends” you will have problems in your life.

There is no need to socialize more than necessary with the opposite gender. It will lead to fitnah. No one is immune to fitnah, no matter how many masters or bachelors they have in their cv. That is one of the main reasons why mixing between genders is prohibited in Islam. 

If it can’t be avoided because of work, at least minimize it to the bear minimum, and be as proffesional as possible. Nothing breaks the heart of a spouse more than realizing that his / her spouse  is engaging with others in non-islamic ways. 

I can’t understand why there is any need to have friends from the other gender. These friendships ruin lives. Infatuation. Many wrongs happen when fitnah is not stopped. 

May Allah protect all marriages. And keep us pure, from having friendships with the opposite gender. And protect us from jeopardize our marriage for anything else. Aameen.