I need to send a card to refer to past friendship. Is
Thanks for being my friend!
grammatically correct? I would not like to use the past perfect tense to express this (e.g. had been).
If you don't mind calling attention to the fact that the friendship has now ended, you can say Thanks for having been my friend.