hrevert / HtUserRegistration

A Zend Framework 2 module which extends the registration feature of ZfcUser with email address verification
MIT License
14 stars 12 forks source link

mail not send #3

Closed istatdi closed 10 years ago

istatdi commented 10 years ago

i use this module and i have tested it on local but the mail is not sent to new user adress mail;

what shoud i see or configure ?

thanks

ojhaujjwal commented 10 years ago

I have not tested this module for sending mail. But, this should work. This module uses MtMail for sending mails. So, configure Mtmail too. By default Zend\Mail\Transport\SendMail is the default transport. This won`t work probably in local machine.

istatdi commented 10 years ago

hi i use the Zend\Mail\Transport\Smtp. this is the config of the module :

'transport' => 'Zend\Mail\Transport\Smtp',
        'transport_options' => array(
            'host' => 'www.gmail.com',
            'connection_class' => 'login',
            'connection_config' => array(
                'username' => 'xxxx@gmail.com',
                'password' => 'xxx',
                'ssl' => 'tls',
            ),
        ),
ojhaujjwal commented 10 years ago

Okay, I will test it and try to solve it as soon as possible.

istatdi commented 10 years ago

I HAVE update the host 'host' => 'smtp.gmail.com' and i got this warning : steam_socket_enable_crypto() : this stream does not support ssl:crypto in ...library\zend\mail\protocol\smtp.php on line 186

istatdi commented 10 years ago

it work i receive the mail. thanks

istatdi commented 10 years ago

however this two thinks : the link send to confirm is whitout domaine only : http://projethtuserregistration/public/user/verify-email/8/vr2wzDF28dDIGbLh it should be http://localhost/site/public/user/verify-email/8/vr2wzDF28dDIGbLh

the second that i got : The requested URL could not be matched by routing. if i want to confirm.

ojhaujjwal commented 10 years ago

That should be fixed in 39027798786ffd0c8099779c6e140399ae453da3

ojhaujjwal commented 10 years ago

And, open a new issue for other issues.