I'm using Magento 2, and I'm getting the below error if I try to use the contact form. Does anyone have any idea what it might be?
We can't process your request right now. Sorry, that's all we know.
I'm using Magento 2, and I'm getting the below error if I try to use the contact form. Does anyone have any idea what it might be?
We can't process your request right now. Sorry, that's all we know.
You can see this message inside Post controller of contact module.
This message is display because your mail is not working. You have to configure your mail setting inside localhost for works it proper.
There is not SMTP configured on your localhost so mail is not sending and you have faced error like above.You can refer below links to configure mail sending.
Or
Might be because of the following bug in Magento: https://github.com/magento/magento2/issues/6153
Would recommend that you try to set up an e-mail template for the Contact form to see if that resolves things.
On the server I have postfix up and running and I have tested it with this php script
<?php
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "mymail@gmail.com";
$to = "target@gmail.com";
$subject = "PHP Mail Test script";
$message = "This is a test to check the PHP Mail functionality";
$headers = "From:" . $from;
mail($to,$subject,$message, $headers);
echo "Test email sent";
?>
I receive the message without problems but not from Magento.