"Me alegro de verte" is the correct one, but "Me alegró verte" is like you are saying it in past, like you are texting that person after you saw him/her or when you are saying bye to him/her. So both are well-spoken, but it depends on when you want to say. I hope I've helped.