Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid header value detected #16

Open
kestraly opened this issue Jul 6, 2021 · 2 comments
Open

Invalid header value detected #16

kestraly opened this issue Jul 6, 2021 · 2 comments

Comments

@kestraly
Copy link

kestraly commented Jul 6, 2021

When sending to non UTF-8 customer names, the error is Invalid header value detected

To fix edit file
Sendinblue/Sendinblue/Model/Transport.php

Within public function sendMessage()

Find each instance of
$zend_mail = Message::fromString($this->_message->getRawMessage());

Add directly underneath
$zend_mail->getHeaders()->get('to')->setEncoding('utf-8');

@devphoenix2404
Copy link

Hi @kestraly
after implementing this solution, did it worked for you?

@kestraly
Copy link
Author

@devphoenix2404 - yep, resolved it perfectly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants