I am using Opencart 2.3.0.2
I have added the following details under system/settings/mail
Mail Protocol: smtp
Mail Parameters: -fmyemail#gmail.com
SMTP Hostname : ssl://smtp.gmail.com
SMTP Username : myemail#gmail.com
SMTP Password : my email password
SMTP Port : 465
SMTP Timeout : 5
But Still I am not able to receive the email alert and get the following error
"Warning: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Network is unreachable) in ..../store/system/library/mail.php on line 167" when i try to send the enquiry through contact form.
Could anybody please help me.
Try the below settings in Opencart
SMTP Hostname: tls://smtp.gmail.com
SMTP Port: 587
If the above doesn't work try doing below with your existing settings.
Go to Gmail and login to the account that you used for your SMTP configuration.
Once logged in, go to “https://accounts.google.com/b/0/DisplayUnlockCaptcha”
Give it access to use GMail. Go back & try again submitting the contact form.
Related
I am struggle for 2 days with this problem.
I am going to send email from my localhost using WordPress.
I am using wp_mail() function so I decided to use WP Mail SMTP plugin.
But I have a problem while configuring it.
This is screen shot of my configuration.
When I try to send test email, it fails.
Anyone please help me
From the plugins list, I've noticed you are using Postman SMTP plugin, which causes conflict with the WP Mail SMTP plugin. If you disable that plugin, it will work correctly.
Try with following SMTP setting for gmail to configure on localhost with your plugin :
HOST : smtp.gmail.com
PORT : 587
USERNAME : Your_gmail_ID
PASSWORD : Your_gamil_Password
Encryption : TLS
NOTE : Make sure your gmail account must be Allow less secure apps: ON. You can turn on less secure apps for your account using THIS URL
UPDATE
As discussed please use following setting in your plugin :
WP Mail SMTP Settings
From Email : Your_gmail_EmailID
From Name : Your_name
Mailer : Send all WordPress emails via SMTP.
Return Path : checked
After that Click on Save Changes
Now under SMTP Options
SMTP Host : smtp.gmail.com
SMTP Port : 587
Encryption : Use TLS encryption.
Authentication : Yes: Use SMTP authentication.
Username : Your_gmail_EmailID
Password : Your_gamil_EmailPassword
After that Click on Save Changes
install plugin wp mail smtp
then in general settings
From Email:your email
mailer: other smtp
SMTP Host:smtp.gmail.com
Encryption:ssl
port:456
SMTP Username: your gmail address
SMTP Password: your gmail password
save settings
after that test email by sending one to
Send To: email that you want to receive email on
and make sure your SMTP Username(your gmail) account has turn on less secure apps
hope i helped.
I'm getting an error like :
Notice
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
×
Error
Test mail could not be sent.
My Email Setting as below,
I'm able to telnet my email host. Application is hosted in Linux Server.
hi if you are using Gmail account
refer https://www.lifewire.com/what-are-the-gmail-smtp-settings-1170854
if any other smtp service ask your host provider
This image above shows the error: SMTP ERROR: Failed to connect to server: (0)
But my GMail SMTP settings are correct and working. How is this possible?
Gmail SMTP (smtp.gmail.com) use the port 587 and need a secured connection.
Otherwise it seems Google SMTP has restricted its use to Google G Suite subscriber.
You have these information and a test tool at https://www.smtper.net
I have tested myself with my G Suite mail, the test tool works great.
We presta shop 1.5 installed the smtp settings are working with php mailer but not working with prestashop smtp settings.
This is the error i am getting when sending any test email.
"Error: please check your configuration
The SMTP connection failed to start [ssl://smtp.gmail.com:465]: fsockopen returned Error Number 110 and Error String 'Connection timed out'"
I tried using ssl, tls and plain settings but didn't work with them.
Make sure you are configuring correctly smtp has some strict rules you must follow.
Mail domain name: pop.yourmail.com
SMTP server: smtp.yourmail.com
SMTP user: johndoe#yourmail.com
SMTP password: your password you use to access your mail
check those again...
hope it helps
im kinda stuck, i have read some threads where they use google smtp to send mails from localhost.
Im using xampp right now and im trying to use google smtp but it doesn't work what have i done wrong ?
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\page.php on line 48
My Code in php.ini:
sendmail_from = T***#gmail.com
Gmail SMTP server address: smtp.gmail.com
Gmail SMTP user name: T***#gmail.com
Gmail SMTP password: ****
Gmail SMTP port: 465
Gmail SMTP TLS/SSL required: yes
You have to set the SMTP-Server, Port and authentication credentials in your php.ini.
But for this it's much easier to use the wonderful PHPMailer class.
It's very easy to implement and to use.
You can easily send complex emails (HTML, Attachments) and it has a good support for external SMTP server, including e.g. encryption.
Just take a look at the examples in the "examples" folder or scroll down at the linked page where is an example using SMTP auth in the first code-block.