Email is not working in Joomla Site [SMTP] - php

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

Related

Opencart email configure error

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.

GMail SMTP test mail sending failed

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.

PHP Send Email, HOST Address not Match Domain Address detected as spam mail

I am having some problem on sending email through my company's website.
My company is using an Exchange Server for mailing.
Therefore, the email sent from my website HOST address not match the DOMAIN address and yahoo detected my mail as a spam or some mail service blocked and rejected.
Received-SPF: none (domain of xxxxx.com does not designate permitted
sender hosts)
Php Mailer return the following:
SMTP ERROR: Failed to connect to server: Connection refused (111) SMTP
connect() failed. Mailer Error: SMTP connect() failed.
i would like to prevent spam and able to send email through SMTP authentication, what can i do in this situation,? Thanks.
Run your domain through this, and fix everything that's wrong or missing. In PHPMailer, set $mail->SMTPDebug = 3;, to see why your rejections are happening, and read the other advice in the troubleshooting guide.
You have to configura SPF and DKIM at your server.
You need to configure SMTP credentials at phpmailer.

Send emails through SMTP using authentication in magento

I am working on a website where after enabling the authentication on SMTP server emails stop working.I installed the SMTP pro extension and on running self test it shows me
ASchroder.com SMTP Pro Self-test results
Testing outbound connectivity to Server:
Using SMTP configuration options
Connection to Host SMTP server successful.
Sending test email to your contact form address donotreply#example.com
Unable to send test email. Exception message was: Sender address is not valid for your login. Check your email program settings. ...
Please check and double check your username and password.
Contact Form test email used SMTPPro to send correctly.
Testing failed,
But this email address works on contact us form and valid email address.Emails are working on contact us form but not for forget password etc .Guide me so that i can fix the issue.Thanks

SMTP server local send mail php [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
mail(): SMTP server response: 550 The address is not valid error on hmailserver
I would like test my class senderMail.php.
For to have, a smtp server, I use hMailServer. I have created a domaine, I have created a account, and now I configure SMTP settings.
hMailServer would like a configuration "SMTP RELAYER". I test with the information:
smtp.gmail.com on port 587 and I enter my identifier too.
When, I have tested this with my class senderMail.php I have this error:
SMTP server response: 550 The address is not valid
Where come my error ? It's from SMTP RELAYER or a other config ?
why don't you try it to send it directly from localhost.
Go to your php.ini file and change SMTP = localhost to SMTP = aspmx.l.google.com and uncomment sendmail_from and put in your sending gmail address.
In php, test it with mail("youremail]#gmail.com", "subject", "body");
Note: This only works when sending email to google hosted email addresses.
OR
try above if its not work use swiftmailer its php mail sending library which also allow to send mail through SMTP its really helpful during development.

Categories