Facing a SMTP ERROR on phpmailer all of a sudden - smtp

My PHPMAILER script has been working fine until couple days ago with the following message - nothing has changed as far as I am aware
Any idea ?
Thanks
SSL loaded Server -> Client: +OK <30126.1635064119#pop.w14.httpserveur.net> Server -> Client: +OK Server -> Client: +OK Server -> Client:
debug level 3; message: Connection: opening to ssl://46.105.44.1:465, timeout=300, options=array()
debug level 3; message: Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed [/home/clients/cineferte.fr/http/mail/phpmailer/phpmailer/src/SMTP.php line 394]
debug level 3; message: Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [/home/clients/cineferte.fr/http/mail/phpmailer/phpmailer/src/SMTP.php line 394]
debug level 3; message: Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://46.105.44.1:465 (Unknown error) [/home/clients/cineferte.fr/http/mail/phpmailer/phpmailer/src/SMTP.php line 394]
debug level 1; message: SMTP ERROR: Failed to connect to server: (0)
debug level 3; message: SMTP connect() failed.
https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Message could not be sent. Mailer Error: SMTP connect() failed.

Related

ERROR 2026 (HY000): SSL connection error: error:00000005:lib(0):func(0):DH lib

I am trying to run mysql delete script on .bat file in between of the execution getting exception as
ERROR 2026 (HY000): SSL connection error: error:00000005:lib(0):func(0):DH lib
PLease sugest. Its not happending everytime.
for query : SHOW VARIABLES LIKE '%ssl%'; getting below result as
have_ssl =YES and have_openssl=YES

phpmailer issue - smtp.office365.co.uk connection failed

I a, having issues with my phpmailer establishing a connection to office365
Can anybody help me debug this?
Thanks
2020-04-30 16:07:03 Connection: opening to ssl://smtp.office365.com:587, timeout=30, options=array ( )
2020-04-30 16:07:03 Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number [/home/useraccount/public_html/hr/application/third_party/phpmailer/class.smtp.php line 293]
2020-04-30 16:07:03 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [/home/useraccount/public_html/hr/application/third_party/phpmailer/class.smtp.php line 293]
2020-04-30 16:07:03 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtp.office365.com:587 (Unknown error) [/home/useraccount/public_html/hr/application/third_party/phpmailer/class.smtp.php line 293]
2020-04-30 16:07:03 SMTP ERROR: Failed to connect to server: (0)
2020-04-30 16:07:03 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Firstly, you are using an old version of PHPMailer, so get the latest version.
You have a TLS error because you're using ssl mode on a port expecting tls encryption mode, so change your code to this:
$mail->Host = 'smtp.office365.com';
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
Read the docs the error message points you at, since this exact problem is covered in detail.

Conn to Google Cloud SQL instance from CORE w/ proxy: A network-related or instance-specific error occurred. I CAN connect via mysql cmd

I begin by starting goole sql proxy by running following command:
./cloud_sql_proxy -instances=dauntless-gate-xxxxxx:us-central1:redacted-dev=tcp:3306
I SUCCESSFULLY connect from to it from running the following commands:
mysql --host=127.0.0.1 --user=sa --password=<redacted>
or
mysql --host=127.0.0.1 --user=sa --password=<redacted>
I attempt and fail to connect using ASP.net Core 2 w/ the follwing:
startup.cs
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<UserContext>(opt =>
opt.UseSqlServer("Server=127.0.0.1:3306; User Id=sa;Password=<redacted>;"));
...
}
Error:
SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)
I also try with the following and get slightly different error:
startup.cs
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<UserContext>(opt =>
opt.UseSqlServer("Server=127.0.0.1; User Id=sa;Password=<redacted>;"));
...
}
An unhandled exception occurred while processing the request.
SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)
An unhandled exception occurred while processing the request.
ExtendedSocketException: No such device or address
System.Net.Dns.InternalGetHostByName(string hostName)
"SQL Server" is the name for Microsoft's SQL server product, which is not the same as MySQL, which running on your instance. You will need to use the MySQL Connector/NET to connect. Check out this page for more specific guidance for Entity Framework.

pre-login handshake SQL server 2014

I am getting the following error.
A connection was successfully established with the server, but then an
error occurred during the pre-login handshake. (provider: TCP Provider
The specified network name is no longer available) ((Microsoft SQL
Server, Error: 64).

Getting error:Peer authentication failed while connecting octave to psql database

I am trying to connect to a psql database from octave but getting a peer authentication failed error.
error: FATAL: Peer authentication failed for user
error: PQ connection attempt failed
check your pg_hba.conf file I think in that file there is no entry of your current user.
or see the link