I wrote a simple Email whose goal was to inform friends and family about the party.
Can the "whose" in the sentence be replaced with "with a/the" to make the sentence like:
I wrote a simple Email with the goal of informing friends and family about the party.
Is the second sentence better than the first, as "whose", no matter what, sounds wrong? I'm looking for a way to rewrite this, keeping the word "goal".