WP Mail SMTP plugin - php

I use WP-Mail-SMTP plugin in WordPress and I added gmail email but when I send a Test Email , it gives me 500 internal server error.
note: I'm using the last version of WordPress
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster#mywebsite.com to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Please update plugin of WP Mail SMTP and version of 2.5.0. solve some bugs in new version

Related

Getting HTTP error 401 when trying to access webmail in cpanel

I am trying to access one of my emails through webmail in cPanel. But when I enter my email and password i get this error "HTTP ERROR 401 horde/index.php AppConfig for “horde,” requires that you must have one of the following features: “webmail” to access the url: “/horde/”."
I don't understand what this means and what is the cause of it.
How can I fix this?
Here's a screenshot of the full error:
Check if the Horde Webmail was enabled in WHM.
Login to WHM.
Go to Home -> Server Configuration -> Tweak Settings.
Locate the option Enable Horde webmail.
Click ON to enable.
Click Save.

What does this error mean, and what is causing it?

When using PHPMailer to send emails, I'm encountering a CN error with the message "ErrorException (E_WARNING) stream_socket_enable_crypto(): Peer certificate CN=`sinaisdeforex.com' did not match expected CN." What does this error mean, and what is causing it? How can I resolve the error and successfully send email using PHPMailer? Are there any specific configuration changes or certificate updates that I need to make to ensure that the correct CN is being used when connecting to the email server?
I have a problem with PHPMaile and SMTPMailer on my LARAVEL site to use Amazon SES SMTP email provider. Try to resolve or troubleshoot credential deletion and create a new method-paid credential rather than resolution. Contact Amazon Support and I was informed: the upload request is failing validation on the PHP side. When you enter my site https://sinaisdeforex.com/contact-us click the button: SEND MESSAGE is reported or error:
ErrorException (E_WARNING)
stream_socket_enable_crypto(): Peer certificate CN=`sinaisdeforex.com' did not match expected CN=`email-smtp.us-east-1.amazonaws.com'
This is covered in the troubleshooting guide.
You have the Host property in PHPMailer set to sinaisdeforex.com, but the mail server you are connecting to is not responding with a certificate that matches that name, so it's presumably an alias. Fix this by changing the name of the Host you're connecting to to one which matches the certificate, such as email-smtp.us-east-1.amazonaws.com.

After Drupal site migration login stopped working

I migrated a Drupal 7 site. After successfully migrating the login stopped working. I believe the previous owners used ajax for login. The site works fine but I keep getting an ajax error when trying to login.
Ajax error
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /system/ajax
StatusText: OK
ResponseText: SMTP Error: Could not connect to SMTP host.
[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"sparkly","theme_token":"bzLLfcRfRiocJx3GDZ0v8146Ktfuo0YMfghj8B5678","js":{"sites\/all\/modules\/ctools\/js\/ajax-responder.js":1}},"better_exposed_filters":{"datepicker":false,"slider":false,"settings":[]},"chosen":{"selector":"","minimum_single":25,"minimum_multiple":25,"minimum_width":800,"options":{"disable_search":false,"disable_search_threshold":1,"search_contains":false,"placeholder_text_multiple":"Choose some options","placeholder_text_single":"Choose an option","no_results_text":"No results match","inherit_select_classes":true}},"urlIsAjaxTrusted":{"\/browse":true},"jquery_ajax_load":{"trigger":".jquery_ajax_load\r","target":"#jquery_ajax_load","toggle":1,"animation":0,"base_path":"\/","module_path":"sites\/all\/..."validateOnSubmit":"1","showMessages":"0","errorElement":"span"},"rules":{"name":{"required":true,"messages":{"required":"Username or e-mail address field is required.","maxlength":"Username or e-mail address field has to have maximum 254 values."},"maxlength":254}}}},"general":{"usexregxp":0,"months":{"January":1,"Jan":1,"February":2,"Feb":2,"March":3,"Mar":3,"April":4,"Apr":4,"May":5,"June":6,"Jun":6,"July":7,"Jul":7,"August":8,"Aug":8,"September":9,"Sep":9,"October":10,"Oct":10,"November":11,"Nov":11,"December":12,"Dec":12}},"groups":{"user-pass":{}}}},"merge":true},{"command":"insert","method":"prepend","selector":"head","data":"\u003Cscript…
Any idea how to fix this?
Drush also keeps giving me this error:
"Drush command terminated abnormally due to an unrecoverable error."

ActiveMQ Remote Broker

I'm an ActiveMq - STOMP PHP- Beginner.
How can I connect to a remote Broker on STOMP, the Producer is in php.
If I connect to the broker on the same machine like this:
$stompCon = new Stomp('tcp://localhost:61613');
$stompCon->connect();
$stompCon->send('/queue/notifications.test', $mapMessage);
$stompCon->disconnect();
it connects ok, but when I try on an external server like:
$stompCon = new Stomp('tcp://181.61.50.8:61613',$user,$pass);
$stompCon->connect();
$stompCon->send('/queue/notifications.test', $mapMessage);
$stompCon->disconnect();
It doesn't connect. Does someone knows how I can connect to a remote broker on another machine?
Error messsage:
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, webmaster and inform them of
the time the error occurred, and anything you might have done that may
have caused the error.
More information about this error may be available in the server error
log.
Additionally, a 500 Internal Server Error error was encountered while
trying to use an ErrorDocument to handle the request.
Apache Server at Port 80

sending mail using php

I have seen similar questions here but , I am not beign able solve my problem .
I am trying to send mail using php... but this is not working .
<?php
$email_from="admin#crorebook.com";
ini_set("sendmail_from", $email_from);
$headers = "From: $email_from";
mail('gitudrebel94#gmail.com','Registration confirmation','Hihihihihihih','$headers');
?>
It gives me the following error on a windows server :
"SMTP server response: 550 No such user here in"
And following error on a nginx server:
"The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."
Do you have your outgoing mail server setup? If you're running in windows you need an SMTP server, if linux you need sendmail or similar configured and running locally.
The SMTP error message suggests it's NOT an open forwarder - as in it won't just let anyone ask it to send an email to someone/somewhere else... that's good, because spammers would use it if it was. It probably requires some kind of authentication (your username/password) before it will except email for delivery to anyone but those local to the machine (as in email addresses of domains hosted on the machine).
Unfortunately the PHP mail() method doesn't handle that so you need to look at a third party package - PEAR mail, or PHPMailer are good options.
To complete the task with PHPMailer:
require_once /*lib location*/"phpmailer/class.phpmailer.php";
require_once /*lib location*/"phpmailer/class.smtp.php";
$mail=new PHPMailer();
$mail->IsSMTP();
$mail->Host=/*Your host*/;
$mail->Port=465;//For SSL - use this if you can
$mail->SMTPAuth=true;
$mail->SMTPSecure="ssl";
$mail->SMTPDebug=2;//Comment once it works, but the debug info is invaluable
$mail->Username=/*Your username*/;
$mail->Password=/*Your password*/;
$mail->setFrom("admin#crorebook.com");
$mail->Subject='Registration confirmation';
$mail->Body='Hihihihihihih';
$mail->AddAddress('gitudrebel94#gmail.com');
$mail->Send();

Categories