Hi @sanaamini ,
This blog contain all required steps. first create all files in your module then call "yourCustomMailSendMethod" method from helper file in action file or where you want to send mail and pass all parameters of this method in it.
for call yourCustomMailSendMethod follow step 4# :Now template is ready and we will do code for send mail.
if any doubt feel free to put it here.
Thanks