Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

$this->headers must be an instance of Headers #167

Open
r0073rr0r opened this issue Aug 18, 2017 · 2 comments
Open

$this->headers must be an instance of Headers #167

r0073rr0r opened this issue Aug 18, 2017 · 2 comments

Comments

@r0073rr0r
Copy link

If subject is NULL (mail have no subject) I got this exception

$this->headers must be an instance of Headers

Need to handle NULL subject without error/exception.

@samsonasik
Copy link
Contributor

Please provide code and/or unit test to reproduce the error. I tried the following test and it works:

    public function testAllowMessageWithEmptySubject()
    {
        $message = new Message();
        $message->addTo('[email protected]')
                ->setSender('[email protected]', 'Ralph Schindler')
                ->setBody('This is only a test.');

        $this->transport->send($message);
    }

@michalbundyra
Copy link
Member

This repository has been closed and moved to laminas/laminas-mail; a new issue has been opened at laminas/laminas-mail#42.

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

No branches or pull requests

3 participants