Zend Framework

Reply-To support (encoding)

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8.2
  • Fix Version/s: 1.9.0
  • Component/s: Zend_Mail
  • Labels:
    None

Description

Reply-To field, when added with addHeader, is not encoded correctly if it contains non-Latin characters (I'm using UTF-8 charset).

There is no special function to add Reply-To field, so it's impossible to set the personal name and the address separately. But if they are set together and encoded together - I don't know if that complies with the standards, but at least MS Outlook doesn't understand the value correctly.

Issue Links

Activity

Hide
Satoru Yoshida added a comment -

Hi, I hope you would use setHeaderEncoding(Zend_Mime::ENCODING_BASE64) before addHeader.

Probably, encoding problem could be solved.

Show
Satoru Yoshida added a comment - Hi, I hope you would use setHeaderEncoding(Zend_Mime::ENCODING_BASE64) before addHeader. Probably, encoding problem could be solved.
Hide
Benjamin Eberlei added a comment -

Can you explain exactly what you are calling? Although i understand the problem, i'd like to see some sample snippet to verify that i understand the behaviour correctly.

Show
Benjamin Eberlei added a comment - Can you explain exactly what you are calling? Although i understand the problem, i'd like to see some sample snippet to verify that i understand the behaviour correctly.
Hide
J?nis added a comment -

Hello!

I tried to set Reply-To field to this:

"Jānis" <mail-91-129-d61e832y789uc2fd6c@mailgate.unrppublic.com>

In Outlook the header looks like this:

Reply-To: =?UTF-8?Q?"J=C4=81nis"=20<mail-91-129-d61e832y789uc2fd6c@mailgate.?=
=?UTF-8?Q?unrppublic.com>?=

And when I click on "Reply", the receivers address is filled with this:

Jānis <mail-91-129-d61e832y789uc2fd6c@mailgate.unrppublic.com> <=?UTF-8?Q? J=C4=81nis =20<mail-91-129-d61e832y789uc2fd6c@mailgate.?= =?UTF-8?Q?unrppublic.com>?=>

I'm not sure, maybe it would even work, but at least it looks ugly and wrong.

Show
J?nis added a comment - Hello! I tried to set Reply-To field to this: "Jānis" <mail-91-129-d61e832y789uc2fd6c@mailgate.unrppublic.com> In Outlook the header looks like this: Reply-To: =?UTF-8?Q?"J=C4=81nis"=20<mail-91-129-d61e832y789uc2fd6c@mailgate.?= =?UTF-8?Q?unrppublic.com>?= And when I click on "Reply", the receivers address is filled with this: Jānis <mail-91-129-d61e832y789uc2fd6c@mailgate.unrppublic.com> <=?UTF-8?Q? J=C4=81nis =20<mail-91-129-d61e832y789uc2fd6c@mailgate.?= =?UTF-8?Q?unrppublic.com>?=> I'm not sure, maybe it would even work, but at least it looks ugly and wrong.
Hide
Benjamin Eberlei added a comment -

Added new function setReplyTo(). It correctly encodes the Reply-To header with name.

Will be included in next minor release.

Show
Benjamin Eberlei added a comment - Added new function setReplyTo(). It correctly encodes the Reply-To header with name. Will be included in next minor release.

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: