Drupal’s core contact module provides a contact page and a form with it. Lately one of my project had requirement to publish the ajax contact form as a block in any region of any page. So I wrote this small module that will alter the core contact module that adds a contact block containing ajax form.
You can give it a try.
Module Documentation Page: https://www.drupal.org/node/2239821
Git clone URL:
git clone git://git.drupal.org/sandbox/boyron/2239821.git