This issue nearly took my life, its been one month I have been trying to resolve this issue. But in the last I came to know that Antivirus was blocking me to send email and hence getting "Could not reach the remote Mailgun server" issue in my project.
I just disabled AVG Antivirus and it worked fine. I hope this will help someone.
Thanks.