I'm not sure if this is a commerce thing. It might be rules related or even core (though I can't imagine that would've been untested).

The case:

When you use a special character - like "é" - in the welcome email templates at admin/config/people/accounts, the order will not get processed, an email is not send and nothing is logged in watchdog.

This email is triggered by rules during the buying process. So it might be a problem there. I didn't found any related issues about this in rules or core so I thought this might be the best place to get awareness for this problem and further testing/debugging.

Comments

rszrama’s picture

Project: Commerce Core » Rules
Version: 7.x-1.1 » 7.x-2.x-dev
Component: User experience » Provided Rules integration
Category: bug » support

Yeah, let's see if fago knows anything about this, as there's nothing specific to Commerce in the e-mail action.

svanderwerf’s picture

Version: 7.x-2.x-dev » 7.x-2.0

Same behaviour here.

Special characters in the email body are converted to question marks. Special characters in the email header cause the message not to be sent. Although I do get an error message.

Coincidentally, only emails sent by a rule show this behaviour. The only rules sending mail in my config are rules added by Drupal Commerce.

In my setup emails are formatted by HTMLMail and sent through SMTP using the MIME Mail module and SMTP Authentication module. Character set: UTF-8.

Since I am using HTMLMail to format the email I was able to check what was delivered to the HTMLMail template. It seems that the text in the email body delivered to the template already has special characters formatted (so before actually formatting and sending the e-mail). When I hard code special characters in the HTMLMail template they get sent without problems.

mitchell’s picture

Status: Active » Closed (duplicate)

See "Encode / decode html entities." in #745314: Action: transform text

mitchell’s picture

Component: Provided Rules integration » Provided Module Integrations

Updated component.