I don't know exactly when to put commas in sentences with infinitive. For example, I saw two sentences:
Mein Bruder schien im siebten Himmel zu sein.
Er hatte sogar vergessen, mir Geld zu schicken.
Why is the second sentence divided into parts by a comma whereas the first sentence isn't?