I want a substitute for the sentence "The thought came to my mind". It should be a slightly formal substitute as I am writing a formal letter. Can someone help me with that?
This question is too basic; it can be definitively and permanently answered by a single link to a standard internet reference source designed specifically to find that type of information. If this question can be reworded to fit the rules in the help center, please edit the question.
If it was a good thought, you could use inspired.
I was inspired to...
oc·cur intransitive verb \ə-ˈkər\ (merriam-webster)
3 : to come to mind
"an idea that has occurred to me"