Hello, Sivakumar-- and welcome to English Forums. Use the present perfect when the action relates to now in some way, and the simple past when the action is finished and done with. When you say 'I have sent the letter today', it stresses the recentness of the action or it is said in response to a present inquiry as to the letter's status, for example.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.