I have contact-us page(Episerver page). I am developing this with html so in this i need to configure email so i used mailer.php for sending but it's not working. can anybody help me?
like below i am calling,
If Epi is setup correctly you should have SMTP server settings configured already.
So you could just add a Controller or Web Form that you use that sends the e-mail from the form.
But typically a contact form can made to work using both the built in XForm support or the newer EPiServer.Forms so my advice would be to look into that and adding it to your contact-us page type instead.