vova07 / yii2-start

Yii2-Start application
Other
273 stars 115 forks source link

Error while trying to send email on registration on Frontend #83

Closed digitlou closed 9 years ago

digitlou commented 9 years ago

Swift_TransportException

Cannot send message without a sender address if (!$reversePath = $this->_getReversePath($message)) { throw new Swift_TransportException( 'Cannot send message without a sender address' ); }

    $to = (array) $message->getTo();
    $cc = (array) $message->getCc();
    $tos = array_merge($to, $cc);
    $bcc = (array) $message->getBcc();
vova07 commented 9 years ago

I updated the application and the module README. You need to add this 2 line in your config.

'robotEmail' => 'no-reply@domain.com',
'robotName' => 'Robot'

Example can be found here, docs here.

digitlou commented 9 years ago

Tnaks a lot.