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

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

Closed
michalbundyra opened this issue Jan 15, 2020 · 2 comments
Closed

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

michalbundyra opened this issue Jan 15, 2020 · 2 comments

Comments

@michalbundyra
Copy link
Member

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.


Originally posted by @r0073rr0r at zendframework/zend-mail#167

@michalbundyra
Copy link
Member Author

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

Originally posted by @samsonasik at zendframework/zend-mail#167 (comment)

@samsonasik
Copy link
Member

I am closing it since there is no code/unit test to reproduce the issue.

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