noun
BAD : Thank you for the invitation for your wedding.
GOOD : Thank you for the invitation to your wedding.
◆◆◆
invitation to a party, wedding, meeting etc: 'I've just had an invitation to a New Year's Eve party.'
Note the alternative: 'Thank you for the wedding invitation.'