zendframework / zend-mail

Mail component from Zend Framework
BSD 3-Clause "New" or "Revised" License
96 stars 111 forks source link

fix problem sending mail through SMTP transport when "composer instal… #217

Closed userator closed 6 years ago

userator commented 6 years ago

…l -no-dev"

Steps to problem:

  1. compser install --no-dev
  2. sending mail through SMTP transport
  3. return result: Fatal error: Class 'Zend \ ServiceManager \ AbstractPluginManager' not found in C: \ htdocs \ gpsman \ vendor \ zendframework \ zend-mail \ src \ Protocol \ SmtpPluginManager.php on line 20

Incorrect behavior: in file compser,json in section "require" missing directive "zendframework/zend-servicemanager": "^2.7.10 || ^3.3.1", without which, in the "--no-dev" mode, when sending a message, an error occurs.

Provide a narrative description of what you are trying to accomplish:

froschdesign commented 6 years ago

This is a documentation error, because zend-servicemanager is not strictly required for this component. Only if you want use the SMTP transport.

See also: https://github.com/zendframework/documentation/issues/7 and #62

froschdesign commented 6 years ago

I close this PR, because we have already an issue report for the documentation error.