'Had' in this usage goes with the past participle of the verb, in this case, 'to send' the past participle of which is 'sent', so 'I had sent a mail to Ryan' is correct, it is past perfect. However if you are going to use past perfect in this case you need to follow it with something, 'I had sent a mail to Ryan before I received yours.' for example.
Otherwise use the simple past, 'I sent a mail to Ryan.'