That should fix the issue share|improve this answer answered Dec 3 '14 at 18:43 user3917663 add a comment| up vote 1 down vote Try adding port number: $ mail-> Port = Edit your php.ini file and remove comma in front of openssl. IIRC the ssl port is 995, but not 100% sure. 0 Discussion Starter hwoarang69 11 4 Years Ago i tried searching for it but all i keep on finding is phpmailer The proper solution is to fix your server rather than disabling certificate checks. http://gsbook.org/connect-to/error-smtp-error-could-not-connect-to-smtp-host-phpmailer.php
All of these functions works well when I perform in my PC. This error can also be caused if your PHP is using a libcurl compiled with libressl (a common option on homebrew) which has a bug relating to this instead of the djalmakaay commented May 25, 2015 Yes i know but is only for a project in the university, not for a real application. Check this by looking at the output of phpinfo() or php -i (look for an 'openssl' section), or openssl listed in the output of php -m, or run this line of http://stackoverflow.com/questions/27272722/phpmailer-smtp-error-could-not-connect-to-smtp-host
You can download the latest CA cert file from curl, install it somewhere accessible and point at it from your php.ini file with the openssl.cafile and curl.cainfo properties. Not the answer you're looking for? Don't use this - it's very unlikely to tell you anything useful. 2: show client -> server and server -> client messages - this is usually the setting you want 3: Thanks 10029759 commented Nov 13, 2016 Hi Synchro, could you suggest a way to fix my server settings.
Notice that the verify return code is 0, which indicates successful verification. Smtp -> Error: Failed To Connect To Server: (0) asked 2 years ago viewed 8257 times active 2 years ago Related 21PHPMailer: SMTP Error: Could not connect to SMTP host3PHPMailer could not connect to SMTP host0google phpmailer error SMTP Error: If I try to request for a new password in mobile(iPhone) (Opened the website through local ip) I get the following error SMTP Error Could not connect to smtp host Mail http://stackoverflow.com/questions/6209064/smtp-error-could-not-connect-to-smtp-host Thank You. –jwinn Aug 27 '11 at 5:57 You are my hero.
Tried changing the starting letter from capital to small. Phpmailer Smtpsecure None Note: Obviously, and also as suggested in that wiki, this should be a temporary solution! more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed For now I am testing with one number to see if I can give the row with the value a color, but for now it keeps creating a new row wich
ssl on port 587 or tls on port 465 will not work. http://stackoverflow.com/questions/30148524/how-to-resolve-smtp-error-could-not-connect-to-smtp-host-in-phpmailer Its fixed.Thanks for all who have tried to answer the issue! Smtp Error Could Not Connect To Smtp Host Wordpress Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count). Smtp Error: Could Not Connect To Smtp Host Drupal If you post a question on SO, make sure you tag it as PHPMailer so that we will see it and please don't open an issue here as well.
share|improve this answer answered Dec 3 '14 at 18:39 sailesh 499520 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign Get More Info This may be because your CA file is out of date or missing. Hide the clock on the iPhone 6+ lockscreen Why did it take longer to go to Rivendell in The Hobbit than in The Fellowship of the Ring? Shortest auto-destructive loop What is the day to day life like as a father? Phpmailer Smtpsecure
Your server is using an invalid or self-signed certificate and you're running PHP 5.6. Shortest auto-destructive loop Output the first position in your program for each input character Getting name of current structure level "There are neither" or "there are no neither"? Please don't fill out this field. useful reference Why is credit card information not stolen more often?
Take a look below at what I'm getting when I get to the "Start your Django project" section of the link. Phpmailer Smtpsecure Options Message contains the username and new password, and it is html code. Then I figured out the case sensitive is an issue.
Fix this by setting SMTPSecure = 'tls' and Port = 587 as well as setting the Username and Password properties. In my mobile while entering email first letter is capital. StackOverflow - there are a ton of PHPMailer questions on there, the vast majority of which could be fixed by reading this page! Smtp -> Error: Failed To Connect To Server: (0) Smtp Error: Could Not Connect To Smtp Host. share|improve this answer answered Jun 2 '11 at 0:07 AJ. 16.7k105473 2 I am facing the same issue, and telnet is actually working for me.
So I enabled extension=php_openssl.dll $mail->SMTPDebug = 1; also hinted towards this solution. If you are not in control of your own firewall or DNS, you probably need to raise a support ticket with your ISP to fix this (it's very common for them Tried changing the starting letter from capital to small. http://gsbook.org/connect-to/javax-mail-messagingexception-could-not-connect-to-smtp-host-smtp-gmail-com-p.php SMTPSecure is case-sensitive, as the docs and examples imply: strings should be ssl and tls, not SSL and TLS.
Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox. Make sure your form always passes the correct information across. Request for a new password works fine and mail sent successfully, new password is received in mail. Pentesting against own web service hosted on 3rd party platform Bought agency bond (FANNIE MAE 0% 04/08/2027), now what?
You may find it easier to switch to a more enlightened hosting provider. xampp->php->php.ini Edited 4 Years Ago by hwoarang69 1 Featured Reply vibhaJ 126 4 Years Ago It should be. Done enough research in google. Nearly all of them can be solved by simply reading the docs that PHPMailer provides.
You seem to have CSS turned off. You should change it to port 587. Suggestions: Verify: If you have shell/terminal access to your web hosting server, try a telnet test to verify that they are in fact blocking this. Please don't waste your time trying to figure out if the PHP is incorrect until you are sure that you can connect to the smtp using simple means (via telnet).
where to get the certificate ? You will get more useful error output if you set SMTPDebug = 2; Last edit: Marcus Bointon 2015-08-09 If you would like to refer to this comment somewhere else in this OS:- Windows 7 Web Server:- IIS 7 PHP Ver:- 5.6.0 Below is the smtp configuration in php.ini and also extension=php_openssl.dll is uncommented in php.ini file:- [mail function] ; For Win32 only. Where users can login, change password, request for a new password, logout.
php mysql phpmailer sha1 share|improve this question edited Dec 3 '14 at 13:22 asked Dec 3 '14 at 13:16 sailesh 499520 1 There are vast numbers of duplicates of this Does a byte contain 8 bits, or 9? It is based on the php session. SMTP Error: Could not connect to SMTP host.
If port 587 doesn't work, you can try port 465 or port 25, and use whichever one works - though bear in mind that port 25 often doesn't support encryption (see It would also help if you read the docs and base your code on an up-to-date example.