Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My webform sends email with wrong encodig in field "From" :
From: "0L3RltC5INCS0Y/Rh9C10YHQuw==?= =?UTF-8?B?0LDQs"@ktc-ua.com, "tC+0LLQuNGH?=\" <s.lyasckowets@yandex.ua>"@ktc-ua.com <"\"=?UTF-8?B?0JvRj9GB0LrQvtCy0LXRhtGMINCE0LLQs9C1"@ktc-ua.com,>
I have also the Mimemail module installed. But mails sended with it have normal encoding and look fine.
Any suggestions?
Comments
Comment #1
khiminrm CreditAttribution: khiminrm commentedI think I have found my problem. When the name has an apostrophe the "From" is broken. Names can include apostrophes in my country (Ukraine). Is there a method to properly send mails when the "E-mail from name " includes apostrophe(s)?
Comment #2
khiminrm CreditAttribution: khiminrm commentedComment #3
khiminrm CreditAttribution: khiminrm commentedI have tested some times and cannot reproduce this bug. I don't understand what the problem is.
Comment #4
khiminrm CreditAttribution: khiminrm commentedI've found the way to reproduce this bug.
1. In webform I create text field.
2. In email settings of webform "E-mail from name" I put component as this textfield.
3. Then I try to make new webform submission in cyrillic, 24+ symbols length. For example "Лясковець Євгеній Вячеславович". 23 symbols - ok, but 24+ in email you'll get an error.
Comment #5
quicksketchCould you explain what this error is? The e-mail specification requires that headers be encoded for UTF-8 characters, which is what Webform does in the event that the From name or Subject contains non-ASCII characters.
Comment #6
khiminrm CreditAttribution: khiminrm commentedI tried to say that if I input more then 24 cyrillic symbols in the text-field, which is used for "E-mail from name", the mail has broken field From: "0L3RltC5INCS0Y/Rh9C10YHQuw==?= =?UTF-8?B?0LDQs"@ktc-ua.com, "tC+0LLQuNGH?=\"
"@ktc-ua.com <"\"=?UTF-8?B?0JvRj9GB0LrQvtCy0LXRhtGMINCE0LLQs9C1"@ktc-ua.com,>Comment #7
sun-fire CreditAttribution: sun-fire commentedThe same. Subscribe.
Comment #8
quicksketchI don't think this encoding is "wrong", it's part of the official e-mail spec. I've answered this question in the past at #226790: Bad Reply-To: and From: fields in emails.
Comment #9
quicksketchSee #226790: Bad Reply-To: and From: fields in emails.
Comment #10
botanic_spark CreditAttribution: botanic_spark commentedI can confirm issue when "From" is > 24 chars.