Jump to content

Problem with Email sale confirmation to client. Error: mail parameters are incorrect


Recommended Posts

Hello,

I have a problem with the last version of Prestashop.

When you buy a product and confirm the payment on the screen this sentence appears (in Spanish):

Error: los parámetros del correo electrónico son incorrectos

It means Error: mail parameters are corrupted

The selling is done, the email is sent to the shop administrator but not to the client

Any idea about what may be going on?

Thank you in advance

Link to comment
Share on other sites

  • 4 weeks later...

tiene que ver con el manejo de idiomas. la clase Validate no reconoce tildes o caracteres del idioma, en el nombre de la tienda o en el nombre del cliente. yo lo resolví colocando este código en classes/Mail.php después de la línea 29:

/*CHANGE
*-decode html special characters
*/
$fromName = htmlspecialchars_decode($fromName,ENT_QUOTES,'UTF-8');
$toName = htmlspecialchars_decode($toName,ENT_QUOTES,'UTF-8');
/*END OF CHANGE*/

Link to comment
Share on other sites

Hola Kuraga,

Al introducir las líneas que me indicas me da un error por las comillas del UTF-8, las cambio por normales. Pero al aceptar la compra me da un error:

Warning: htmlspecialchars_decode() expects at most 2 parameters, 3 given in /home/drwebtie/public_html/classes/Mail.php on line 30

Warning: htmlspecialchars_decode() expects at most 2 parameters, 3 given in /home/drwebtie/public_html/classes/Mail.php on line 30

Warning: htmlspecialchars_decode() expects at most 2 parameters, 3 given in /home/drwebtie/public_html/classes/Mail.php on line 30

Warning: htmlspecialchars_decode() expects at most 2 parameters, 3 given in /home/drwebtie/public_html/classes/Mail.php on line 30
Error: los parámetros del correo electrónico son incorrectos

(Como ves el error original sigue saliendo)

Si quito el UTF-8 el error es el de siempre:

Error: los parámetros del correo electrónico son incorrectos

Alguna idea?

Gracias

Juan.................

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...