I setting email code in over module in magento. The code is work fine but when i check email they are found in Spam or junk mail. My question is how to prevent this email where they dose not goes to junk or Spam box. thanks in advance
It is most probably due to settings of your domain and what reputation it has, not anything to do with Magento.
See this : https://support.google.com/a/answer/33786?hl=en-uk&hlrm=en And check if there are any other problems, which might lead to low domain reputation.
But considering the code and mail content in particular, try following these guidelines : http://www.activecampaign.com/help/improving-delivery/