posted 3 years ago
What I learned is that when addressing someone directly, their name/title is always separated from the rest of the sentence with a comma or commas. The classic example of why it's important to do this is
Let's eat Grandma.
Vs
Let's eat, Grandma.
The salutation in a letter is an exception. The comma separating the person being addressed is excluded, but the salutation is on its own line. So your example could read
Thank you Bob,
That is just what I needed to know.
Or
Thank you, Bob, that is just what I needed to know.
The second version would be incorrect because it's a run-on sentence, though. You'd need to connect the two somehow, like, "Thank you, Bob, because that's just what I needed." That sounds pretty awkward, though. Maybe change the structure entirely to, "Thank you, Bob, for giving me the information I needed." I'd just go with the salutation on its own line.