AbanteCart Community

eCommerce construction => Installation and Configuration => Configuration => Topic started by: gkrish97 on December 16, 2018, 01:34:22 PM

Title: Email Configuration Error
Post by: gkrish97 on December 16, 2018, 01:34:22 PM
Hello Friends,
I am new to AbanteCart and I have tried setting up my smtp mail. The following error occurs.

AbanteCart core v.1.2.13 fsockopen(): unable to connect to mail.saghana.in:465 (Network is unreachable) in <b>/home/saghanai/shop.saghana.in/AbanteCart/core/lib/mail.php</b> on line <b>295</b>

I have contacted my host provider They say that allow_url_fopen was disabled due to security. How could I setup my Mail. Is there any alternative or to change code ? If so how?
Title: Re: Email Configuration Error
Post by: Basara on December 17, 2018, 12:39:37 AM
Try gmail or use server's mail function https://abantecart.atlassian.net/wiki/spaces/AD/pages/7372837/Mail+Settings
Title: Re: Email Configuration Error
Post by: abolabo on December 17, 2018, 02:47:59 AM
AbanteCart core v.1.2.13 fsockopen(): unable to connect to mail.saghana.in:465 (Network is unreachable) in <b>/home/saghanai/shop.saghana.in/AbanteCart/core/lib/mail.php</b> on line <b>295</b>

I have contacted my host provider They say that allow_url_fopen was disabled due to security. How could I setup my Mail. Is there any alternative or to change code ? If so how?

hi. this issue not related to Abantecart code.
i checked connection via telnet and  port 465 closed for me too.
This is network issue. Please ask you mail hosting provider about that (mail.saghana.in)
Title: Re: Email Configuration Error
Post by: gkrish97 on December 17, 2018, 02:55:50 AM
Dear Basara,
I have tried an gmail account also. I have contacted my hosting and they say that they cannot enable allow_url_fopen function. I have tried with gmail smtp. Herewith, I have enclosed the configuration settings and the error log. I have configured my gmail as a mail client for my servers mail. It is working properly. So I have asked them that if gmail can send a mail from my mail server why can't abantecart. Kindly please tell me where the problem arises what to ask to my hosting provider and  how to solve this if they didn't allow fsockopen().

RECENT ERROR LOG
App Error: AbanteCart core v.1.2.13 AMail Errors: Error: EHLO not accepted from server!
Error: AUTH LOGIN not accepted from server!
Error: Username not accepted from server!
Error: Password not accepted from server!
Error: MAIL FROM not accepted from server!
Error: RCPT TO not accepted from server!
Error: DATA not accepted from server!
Error: DATA not accepted from server!
Error: QUIT not accepted from server!

Configuration Settings
protocol:smtp
host:ssl://smtp.gmail.com
username:<username>@gmail.com
password:<password>
port:465
timeout:10
Title: Re: Email Configuration Error
Post by: gkrish97 on December 20, 2018, 03:16:48 PM
I have contacted my host and issue has been resolved but gmail blocks my mail  as it says it as a spam mail. What to do?
Title: Re: Email Configuration Error
Post by: Basara on December 21, 2018, 12:16:33 AM
Hello.
There are many trick to avoid spam. First add DKIM keys to your domain
https://startupsventurecapital.com/why-your-marketing-email-will-land-in-my-spam-folder-the-non-marketing-guide-dkim-spf-dmarc-43f91f9c6940
Title: Re: Email Configuration Error
Post by: SAMY on December 21, 2018, 02:30:28 AM
Hello.
There are many trick to avoid spam. First add DKIM keys to your domain
https://startupsventurecapital.com/why-your-marketing-email-will-land-in-my-spam-folder-the-non-marketing-guide-dkim-spf-dmarc-43f91f9c6940

hi,

where is that should be added and how ? thanks