email.mail_subject="#{site.site_name} has been constructed."
email.mail_content="<strong>#{site.site_name}</strong> has been constructed successfully.<br />You may access the site at <a href='#{site.domain_name}'>#{site.domain_name}</a><br /><br />For any questions, please contact R&D Team.<br />Thank you."
email.deliver
end
render:text=>"success"
else
render:text=>"Site not found. Either it is already constructed or not queued for construction."