Jump to content
  • 0
devilsown

[SOLVED] Upgraded to 1.5.6 and every email sent malformed recipient address

Question

I didn't have any issues before upgrading the store.    But now   i am getting back hundreds of emails daily.      If its auto generated by prestashop  its coming back with mean streak.

 

anyone got a clue on how to fix this. 

Share this post


Link to post
Share on other sites

84 answers to this question

Recommended Posts

  • 0

Same here.

 

Looks like it tries to send mail to "name@domain.com <name@domain.com>" instead of "name@domain.com".

Hope someone can fix this soon!

Share this post


Link to post
Share on other sites
  • 0

Hello all, please make a forge report here http://forge.prestashop.com

 

I will also check with the team about this issue. 

 

Just to clarify, are all of you having this problem after the upgrade to 1.5.6. If so, please let me know your Server Configuration and the PrestaShop version you upgraded from. 

Share this post


Link to post
Share on other sites
  • 0

Yes I only started experiencing this after upgrading in (test environment)  from 1.5.2 to 1.5.6

What in particular do you need to know about the server config?

Share this post


Link to post
Share on other sites
  • 0

 

Server information

Server information: Linux #1 SMP Tue Apr 16 15:40:06 EDT 2013 x86_64

Server software version: Apache/2

PHP version: 5.3.27

Memory limit: 128M

Max execution time: 30

 

Database information

MySQL version: 5.5.33

MySQL engine: InnoDB

Tables prefix: ps_

 

 

Mail configuration

Mail method: You are using the PHP mail function.

 

Share this post


Link to post
Share on other sites
  • 0

 

Información del servidor

Información del servidor: Linux #1 SMP Fri Jul 12 15:02:22 EEST 2013 x86_64

Versión del servidor web: Apache

Versión de PHP: 5.3.26

Límite de memoria: 128M

Tiempo Máximo de ejecución: 30

 

Configuración de la base de datos

Versión de MySQL: 5.1.70-cll

Motor MySQL: MyISAM

Prefijo de las tablas: ps_

 

Configuración la tienda

Versión de PrestaShop: 1.5.6.0

Enlace de su tienda: Deleted

Tema actual: default

 

Configuración de email

Modo de envío de emails: Utiliza la función email() de PHP

 

No problems before upgrading from version 1.5.5

 

Regards.

 

Share this post


Link to post
Share on other sites
  • 0

Just tried SMTP and that is still generating a mallformed address for me here.

 

Note that sending a test email works correctly, but placing an actual order (tried PayPal & Bank Wire) generates the malformed address error.

Share this post


Link to post
Share on other sites
  • 0

I was getting Malformed errors when email came from the Mail Alert Module alerting me of new order.

 

Emails to me about new orders (bank wire, Stripe Payment) - Malformed error

Emails to customers (Order process) - no Problems

Test mail - no Problems

 

Changed to SMTP option now no malformed errors that come from Mail alert Module (Version 2.4)

 

If similar issue maybe check the Mail alert module - reset or version number.

 

I had also just changed Server/Hosting company as well so above may not be related to your issue.

Edited by markaussie

Share this post


Link to post
Share on other sites
  • 0

Indeed I'm also using the Mail Alerts module.

 

Uninstall/Reinstall didn't seem to improve.

Removing the mail address from it's configuration and adding it, also adding a different one, no change for me.

 

 

Btw, I'm only using it's "Receive a notification when an order is placed" option.

Share this post


Link to post
Share on other sites
  • 0

In 1.5.5.0 it was working, after upgrading to 1.5.6.0 it stopped.

 

I am using PHP to send mails. Test mail is working, when changing order statusses mails are NOT sent.

Share this post


Link to post
Share on other sites
  • 0

This temporary solution works for me to get emails out

 

In /classes/Mail.php

Add this line above // Do not crash for this error...

 

            $to_name = '"' . $to_name . '"';

 

 

It's not a proper solution as I believe that bug is somewhere else, but it helps for now...

Edited by Ibiza2

Share this post


Link to post
Share on other sites
  • 0

I have some additional info:

 

For my case it looks like orders CREATED after the update to 1.5.6.0 are properly sending status update messages.

 

Orders that already existed don't send messages. I will do further testing, but mentioning this maybe other people have the same issue.

Edited by gcorbesier

Share this post


Link to post
Share on other sites
  • 0
A message that you sent contained one or more recipient addresses that were

incorrectly constructed:

 

 mar.xx@gmail.com <mar.xx@gmail.com>: malformed address: <mar.xx@gmail.com> may not follow mar.xx@gmail.com

 

This address has been ignored. There were no other addresses in your

message, and so no attempt at delivery was possible.

 

------ This is a copy of your message, including all the headers. ------

 

 

Did you guys get this in your inbox?

 

I have uploaded the fix and hope for the best.

Share this post


Link to post
Share on other sites
  • 0

Thanks Alot !

that realy helps, im happy :)

 

helping for error: 

Mail failure - malformed recipient address

A message that you sent contained one or more recipient addresses that were incorrectly constructed:

 

thanks

Share this post


Link to post
Share on other sites
  • 0

Mail alerts moduče not working for me. I have 6 e-mail adresses in mail alerts.

Also the name of the product in cart does not show.

Problems started after upgrading from 1.5.5. to 1.5.6.

 

Server information: Linux #1 SMP Fri May 10 08:43:19 UTC 2013 x86_64

Server software version: Apache/2.2.16 (Debian)

PHP version: 5.3.3-7+squeeze17

Memory limit: 128M

Max execution time: 63

Database information

MySQL version: 5.1.66-0+squeeze1

MySQL engine: MyISAM

Tables prefix: ps_

Store information

PrestaShop version: 1.5.6.0

Shop URL: http://www.mojaljekarna.hr/

Current theme in use: leocame

Mail configuration

Mail method: You are using your own SMTP parameters.

SMTP server: mail.mojaljekarna.hr

SMTP user: Defined

SMTP password: Defined

Encryption: off

Port: 25

 

****

After resseting the mail alerts module, it works.

Still have the problem with showing of the name of the product in the cart.

Edited by abondares

Share this post


Link to post
Share on other sites
  • 0

Updated file, and in customer service seems work fine.

 

 

But after customer placed order got 3 mails

- "New Order"

2 malformed mails (suppose they are for customer - "Payment accepted" and "new order")

 

 

Partitialy fixed.

Share this post


Link to post
Share on other sites
  • 0

hello this has fixed my issue to.

 

however when sending an email it adds in the title random char

 

example

Your message has been correctly sent #ct17 #tcKoswBzJ4VAv2

 

does anyone have a clue as to why? it seems to be script related?

Share this post


Link to post
Share on other sites
  • 0

here is part of returned message:

 

-------------------------------------------------------------

A message that you sent contained one or more recipient addresses that were

incorrectly constructed:

 

  =?UTF-8?B?w5DCpMOQwrvDkMK4w5HCgiDDkMKdw5HCg8ORwoDDkMK8w5HCg8ORwoXDkMKw?=\n =?UTF-8?B?w5DCvMOQwrXDkcKCw5DCvsOQwrI=?= <xxxxxxx@xxxxx.com>\n

-------------------------------------------------------------

Share this post


Link to post
Share on other sites
  • 0

i applied, but on my test, as a seller no problem, can receive. But as a buyer, no receive the notif or invoice.

 

mine is fresh 1.5.6

 

i don't know, it's works now it self

Share this post


Link to post
Share on other sites
  • 0

I have the same problem. I have copied the file Mail.php in the class directory but it not work. Any idea?

 

Information the system: http://www.tuverano.com/phpinfo.php

 

Mail configuration: Mail method: You are using the PHP mail function.

Edited by tuverano.com

Share this post


Link to post
Share on other sites
  • 0

update :

 

it works now.

 

Great, so what did you do to get it to work, because mine still isn't working either...

 

Installed the new mail module v2.5, replaced Mail.php, customers get their mails properly, but I don't get my copy in my mailbox.

 

When I send a test mail through the backoffice I receive a test mail, so it should work...

Edited by xEpyonx

Share this post


Link to post
Share on other sites
  • 0

here is part of returned message:

 

-------------------------------------------------------------

A message that you sent contained one or more recipient addresses that were

incorrectly constructed:

 

  =?UTF-8?B?w5DCpMOQwrvDkMK4w5HCgiDDkMKdw5HCg8ORwoDDkMK8w5HCg8ORwoXDkMKw?=\n =?UTF-8?B?w5DCvMOQwrXDkcKCw5DCvsOQwrI=?= <xxxxxxx@xxxxx.com>\n

-------------------------------------------------------------

 

I have not tested this scenario, but seems when when customer name is in cyrillic (or maybe other non-latin characters?)  it comes as "incorrectly constructed".

Share this post


Link to post
Share on other sites
  • 0

Benjamin's solution from post #18 worked for me too. I receive notifications about new orders again.

 

Many thanks!

 

Hey guys, make sure to have a backup (How to Manually Back Up your PrestaShop Database and Files)

 

Then, replace your classes/mail.php with this file attached 

 

 

 

Here is the concerning github fix for reference https://github.com/PrestaShop/PrestaShop/commit/789911184b72a2765a6faf39652506057350a021

 

I already went and uploaded the file in this post so just backup and replace your mail.php and let me know how it works.

 

 

Thanks!

 

 

Before trying this solution I deleted mailalerts folder from server completely, then installed Mail Alerts module version 2.5 from here http://www.prestashop.com/forums/topic/280410-prestashop-156-problem-mail-alerts/?view=findpost&p=1423405 and restored my language folders in mailalerts/mails/, but notifications still were not coming.

Share this post


Link to post
Share on other sites
  • 0

Fixed my problem.

 

 

EXEPT

I am not getting any mail when new orders are registred.

 

 

 

 

Thank*s

Edited by Bergum

Share this post


Link to post
Share on other sites
  • 0

Can you help me, please?

Just like tuverano.com this fix didn't work for me!

Tuverano, did you work this out?

 

I have copied the file Mail.php in the class directory but it did not work.

 

Mails to customer are ok

Testmail works ok

Order Confirmationmail to owner: still the malformed mail failure

 

Configuration:

Servergegevens

Servergegevens: Linux #1 SMP Wed Aug 28 17:19:38 UTC 2013 x86_64

Server softwareversie: Apache

PHP versie: 5.3.27

Geheugenlimiet: 74M

Maximale uitvoeringstijd: 30

Database informatie

MySQL versie: 5.5.33-31.1-log

MySQL engine: InnoDB

Tabel prefix: ps_

Winkelgegevens

Prestashop versie: 1.5.6.0

Winkel URL: http://www.stickerxpress.nl/shop/

Huidig gebruikte thema: warehouse

E-mail configuratie

Mail methode: U gebruikt de PHP mail() functie.

 

Share this post


Link to post
Share on other sites
  • 0
Mails to customer are ok

Testmail works ok

Order Confirmationmail to owner: still the malformed mail failure

 

Can you please check if customer's name have some non-latin letters (cyrillic or äüö and similar)?

 

I have the problem when some customers place orders it works fine, but those, who have non-latin letters in customer name have malformed mails.

Share this post


Link to post
Share on other sites
  • 0

Hi XJR100

Thanks for your reply.

 

No  "non-latin letters (cyrillic or äüö and similar)" in custome name.

 

I am still in testing mode and upgraded to 1.5.6

I used my own name as a test customer with just "normal" letters in it.

Share this post


Link to post
Share on other sites

×