You are not calling any send method, how do you expect the mail to be dispatched! All i can see is you are collecting contacts!