App system email header screwed to =?utf-8?Q??= after migrating app to new server
I have several sites with Osclass, the classifieds script. I moved them from nginx+fpm+php5.6 server to nginx+fpm+php7.1 server and I get undecoded from, to and subject fields on my email client when new system messages are sent. For example if new user is registered, etc. The fields show =?utf-8?Q??= instead of the actual data. Everything was migrated properly and works except this. Maybe I forgot to configure something? Locale is en_US.UTF-8 php is set to default_charset UTF-8, MySQL is set to UTF-8. App uses phpmailer to send mail. Now the odd thing is this is happening to some of the instances of Osclass, especially the ones with more than one language installed. Any idea what may cause this? I believe it is environment related and something I forgot to set but can't find out what. The quoted printable string should be between Q? and ? but fields show =?utf-8?Q??=
Checked the mail queue in postfix. It looks the same. So it is something before it reaches the mail server. The email sending script is also fine. It was working fine on the old server.
Example =?utf-8?Q?Hirdet=C3=A9s?= instead of =?utf-8?Q??=
What's wrong here?
php mysql character-encoding locale email-headers
add a comment |
I have several sites with Osclass, the classifieds script. I moved them from nginx+fpm+php5.6 server to nginx+fpm+php7.1 server and I get undecoded from, to and subject fields on my email client when new system messages are sent. For example if new user is registered, etc. The fields show =?utf-8?Q??= instead of the actual data. Everything was migrated properly and works except this. Maybe I forgot to configure something? Locale is en_US.UTF-8 php is set to default_charset UTF-8, MySQL is set to UTF-8. App uses phpmailer to send mail. Now the odd thing is this is happening to some of the instances of Osclass, especially the ones with more than one language installed. Any idea what may cause this? I believe it is environment related and something I forgot to set but can't find out what. The quoted printable string should be between Q? and ? but fields show =?utf-8?Q??=
Checked the mail queue in postfix. It looks the same. So it is something before it reaches the mail server. The email sending script is also fine. It was working fine on the old server.
Example =?utf-8?Q?Hirdet=C3=A9s?= instead of =?utf-8?Q??=
What's wrong here?
php mysql character-encoding locale email-headers
add a comment |
I have several sites with Osclass, the classifieds script. I moved them from nginx+fpm+php5.6 server to nginx+fpm+php7.1 server and I get undecoded from, to and subject fields on my email client when new system messages are sent. For example if new user is registered, etc. The fields show =?utf-8?Q??= instead of the actual data. Everything was migrated properly and works except this. Maybe I forgot to configure something? Locale is en_US.UTF-8 php is set to default_charset UTF-8, MySQL is set to UTF-8. App uses phpmailer to send mail. Now the odd thing is this is happening to some of the instances of Osclass, especially the ones with more than one language installed. Any idea what may cause this? I believe it is environment related and something I forgot to set but can't find out what. The quoted printable string should be between Q? and ? but fields show =?utf-8?Q??=
Checked the mail queue in postfix. It looks the same. So it is something before it reaches the mail server. The email sending script is also fine. It was working fine on the old server.
Example =?utf-8?Q?Hirdet=C3=A9s?= instead of =?utf-8?Q??=
What's wrong here?
php mysql character-encoding locale email-headers
I have several sites with Osclass, the classifieds script. I moved them from nginx+fpm+php5.6 server to nginx+fpm+php7.1 server and I get undecoded from, to and subject fields on my email client when new system messages are sent. For example if new user is registered, etc. The fields show =?utf-8?Q??= instead of the actual data. Everything was migrated properly and works except this. Maybe I forgot to configure something? Locale is en_US.UTF-8 php is set to default_charset UTF-8, MySQL is set to UTF-8. App uses phpmailer to send mail. Now the odd thing is this is happening to some of the instances of Osclass, especially the ones with more than one language installed. Any idea what may cause this? I believe it is environment related and something I forgot to set but can't find out what. The quoted printable string should be between Q? and ? but fields show =?utf-8?Q??=
Checked the mail queue in postfix. It looks the same. So it is something before it reaches the mail server. The email sending script is also fine. It was working fine on the old server.
Example =?utf-8?Q?Hirdet=C3=A9s?= instead of =?utf-8?Q??=
What's wrong here?
php mysql character-encoding locale email-headers
php mysql character-encoding locale email-headers
asked Dec 30 '18 at 8:42
user3377238user3377238
336
336
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53976266%2fapp-system-email-header-screwed-to-utf-8q-after-migrating-app-to-new-serve%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53976266%2fapp-system-email-header-screwed-to-utf-8q-after-migrating-app-to-new-serve%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown