Formal:
* "Thank you for sharing this information with Sam and me."
* "We appreciate you sharing this information with us." (Using "we" is more formal and impersonal)
Informal:
* "Thanks for sharing this info with Sam and me."
* "Thanks for letting Sam and me know."
When you want to highlight the person who shared the information:
* "Thank you [Name] for sharing this information with Sam and me."
* "We appreciate you taking the time to share this information with us, [Name]."
Important note: When using "Sam and me" or "Sam and I," remember the rule:
* "I" is used as the subject of the verb (e.g., "I went to the store.")
* "Me" is used as the object of the verb (e.g., "He gave the gift to me.") or as the object of a preposition (e.g., "He gave the gift to Sam and me.")
In all of these examples, "Sam and me" are the objects of the preposition "with."