On Tue, Oct 9, 2012 at 3:17 AM, keerthi priya
<
emailtoke...@gmail.com> wrote:
> hi all i am trying to setup mail option in my app. and when i am trying to
> send mails i got this error in my production log
>
>
> OpenSSL::SSL::SSLError (hostname was not match with the server certificate):
> __SNIP__
> my app runs on rails 2.3.5
> what is the problem what should i do to send my mails.
TLDR:
You:
domain.com
Them:
smtp.domain.com
Rails uses:
domain.com
Rails says:
domain.com does not match SSL certificate, actually
matches
smtp.domain.com.
Solution: Use
smtp.domain.com or setup your own smtp server with your
own SSL certificate.
It looks to me like you're using your domain name when your isp does
not have a certificate for your domain on their mail server, what I am
saying is that it's perfectly fine to use
domain.com but your ISP
probably has
smtp.provider.com and you should opt to use
smtp.provider.com instead of
domain.com because it will cause mismatch
domain errors unless you setup your own server and get your own SSL
certificate (this is because most ISP's will not put your certificate
on their mail servers it's just too much trouble.)