goalio / GoalioForgotPassword

A Zend Framework 2 (ZF2) Module offering forgot password via e-mail functionality to ZfcUser
BSD 3-Clause "New" or "Revised" License
42 stars 49 forks source link

Problem when sending mail #33

Open 1CASH1 opened 10 years ago

1CASH1 commented 10 years ago

Install the GoalioRememberMe with the following line: "require": { "goalio/goalio-forgotpassword": "1.*" } and when I send mail, I get the following problem:

Zend\ServiceManager\Exception\ServiceNotCreatedException: An exception was raised while creating "goaliomailservice_transport"; no instance returned

Zend\Mail\Exception\InvalidArgumentException: Zend\Mail\Transport\FileOptions::setPath expects a valid path in which to write mail files; received "data/mail/"

1CASH1 commented 10 years ago

I have installed the following:

RicardoNeves commented 10 years ago

I'm also having this problem, but I get two more exception on the same page: An exception was raised while creating "goaliomailservice_options"; no instance returned The option "options" does not have a matching setOptions setter method which must be defined

Maybe I am missing something... any help?

renewable commented 10 years ago

I'm also having the same problem as Ricardo. Original (previous) exception: -- The option "options" does not have a matching setOptions setter method which must be defined

I've temporarily got round this by adding a function to GoalioMailService\Mail\Options\TransportOptions

public function setOptions($options) { $this->transportOptions = $options; return $this; }

I've only just started trying to get the GoalioMailService module to work - Will comment further if & when I make any progress.

earlhickey commented 10 years ago

There is a typo in the config file; 'options' => array('path' => 'data/mail/') should be 'transport_options' => array('path' => 'data/mail/'). There already is a pull request for this.