Skip to content

Invalid header value detected #16

@kestraly

Description

@kestraly

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');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions