だが
daga

Conjunction

1. but; however; (and) yet; nevertheless; still; for all that

あなたに手紙 てがみ くつもりだったのだが。
anatani tegamio kaku tsumoridatta nodaga.
I meant to have written to you.