Thank you for inviting me

Thank you for inviting me.

 and Thank you for inviting us.; Thank you for having me.; Thank you for having us.
a polite expression said to a host or hostess on departure. Mary: Good-bye, glad you could come. Bill: I had a great time. Thank you for inviting me. John: I had a good time. Thank you for inviting me. Sally: Come back again, John. It was good talking to you.
See also: thank