I have Opencart Version 2.3.0.3_rc. for my website https://thebeautyroomhi.com
When I submit 'Contact us' form, I received error bellow
Warning: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Permission denied) in /var/www/html/system/library/mail.php on line 167
Here is my setting for SMTP Port Gmail
I tried the setting with port 25, 465, 587 but all not work. Someone can help me?
Thanks so much.
--- please reply only with verified data, that is: no 'I think', 'maybe' etc. ---
When posting here, always tell your version of OC
--- please reply only with verified data, that is: no 'I think', 'maybe' etc. ---
Thanks for your answer, michael2820. I have already told this on the first post. I have Opencart Version 2.3.0.3_rc. Here is the my website https://thebeautyroomhi.com.michael2820 wrote:you set your email in System > Settings > Shop/Store > in the field = Email.
When posting here, always tell your version of OC
Regards,
If you are using other email address, then it will not work.
If it is still not working, make sure that imap is installed on your server and there is no security alert in your Gmail account.
Regards,
Knowband Team
Opencart Plugins: Knowband Store
Email: support@knowband.com
I want to clarify some point?
1. 'you are using other email address, then it will not work'.
I set mail in Store like this:
Does the Store email need to be the same as in Mail setting or it just need to be a Gmail?
2. 'Make sure that imap is installed on your server and there is no security alert in your Gmail account'.
I set Less Security on Gmail, so app is allowed to send via Gmail. I guess no security issue with Gmail.
For 'imap', can you explain more on this, I don't know how to setup.
Thanks.
Chances are either imap is disabled or is not installed on your server. If you are using Linux to host your site then use following commands to install and enable imap.
For nginx server
sudo apt-get install php5-imap
sudo php5enmod imap
service nginx restart
service php5-fpm restart
For apache server
sudo apt-get install php5-imap
sudo php5enmod imap
sudo service apache2 restart
If you are not sure what to do, please contact your hosting provider to ensure that imap is installed and enabled.
Regards,
Knowband Team
Opencart Plugins: Knowband Store
Email: support@knowband.com
2. Once you have opened up the Mail Settings tab you should complete the form using the following data:
Mail Protocol should be set to SMTP
Mail Parameters is an optional field we will not be discussing. You can leave it blank for now.
SMTP Host should be set to “ssl://smtp.gmail.com”
It is very important you include “ssl://” or your customers will receive errors when completing actions on your store that use the mail feature.
SMTP Username should be set to the account username for the Gmail account you would like to use. “yourusername@gmail.com”
SMTP Password should be the corresponding password for your Google Account
SMTP Port should be “465"
This is also important as it’s a great feature of Google’s SMTP service. As it does not use port 20 it keeps your emails from being marked as spam.
SMTP Timeout you can leave set to the default of 5.
The alert email options can be turned on if you would like the store owner to be emailed every time an account is created or an order is processed. They are turned off by default and I suggest leaving them this way, especially if your store has a high volume of orders. These emails are sent to the email account specified from the General tab on the same settings page you are on now.
The additional alert email fields just specify other email address that you would like these alerts to be sent to if you did have them turned on.
That is all that must be completed from the Opencart admin. You can now hit save and move on to the next step.
3. Go to Gmail and login to the account that you used for your SMTP configuration in Step 2.
Once logged in, go to “https://accounts.google.com/b/0/DisplayUnlockCaptcha"
Click continue. This will authenticate the next app or device that tries to access your Gmail Account within the next 10 minutes.
Now you must go to your Opencart store front end and register for a new account. When this is done Opencart will attempt to access your Gmail Account for SMTP and Google will Authenticate it.
You should be sent to a confirmation page that your account was created on your site, and an email should be sent to your email address you used to register your account, using your Google SMTP configuration.
That’s it! You’re all set up!
If you receive any errors, make sure you completed step 3 to have your store authenticated with Google, as well as used ssl:// before your hostname in the Opencart admin mail settings.
I followed step by step this website and It's working very well now.
https://www.opencart-templates.co.uk/ma ... nformation
I saved that link in my sheet. It's very helpful sometimes.
Be careful with step 2,3,4.
The Gmail SMTP setup settings are given as follows:
1.SMTP username: Your Gmail address.
2.SMTP password: Your Gmail password.
3.SMTP server address: smtp.gmail.com.
4.Gmail SMTP port (TLS): 587.
5.SMTP port (SSL): 465.
6.SMTP TLS/SSL required: yes
Regards,
Mika Hawkins
Also ensure that crypto is enabled on your domain when using port 587 and to follow your cPanel's email settings instructions.mikahawkins wrote: ↑Mon Oct 12, 2020 12:31 pmHello,
The Gmail SMTP setup settings are given as follows:
1.SMTP username: Your Gmail address.
2.SMTP password: Your Gmail password.
3.SMTP server address: smtp.gmail.com.
4.Gmail SMTP port (TLS): 587.
5.SMTP port (SSL): 465.
6.SMTP TLS/SSL required: yes
Regards,
Mika Hawkins
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Notice: Error: MAIL FROM not accepted from server! in /home/username/mydomain.com/system/library/mail.php on line 328
smtp is sending secured emails, that is the one you should use. Ensure the hostname has: ssl:// in front of your SMTP hostname address , as well as your port number set to 587, and to follow your host's email settings description on your host console.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
What error?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Your OC mail form settings are misconfigured. Ensure to follow your host's settings in your cPanel > Email > Your Email > Settings left-bottom corner page (SSL). The hostname must begin with: ssl:// in the hostname text box of the OC mail form settings. Port number: 587 .
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
What form are you sending from? Register, order, contact, etc.?
Does you email in System -> Settings -> Store (tab) -> E-mail match System -> Settings -> Mail (tab) -> SMTP Username?
Users browsing this forum: No registered users and 4 guests