Add user + email sending question

Hello.

I want to create a new user in user management. When user is created it sends invitation (shows no error) but email never arrives, so I fail to add user. Can I add user and manually type in the password? I don’t need invoiceninja to send out emails. If not, how to make SMTP email work. I’we been searching for solution on this forum and google but no success.

My server sends out SMPT emails from other PHP services without any problem.

Thank you
Br,
Dali

You could try setting the email driver to log in the .env file and the copying the registration link from the email in the logs.

Thank you for reply.

How to do that?

Inside .env the sesting for log is:

LOG=single

Br,
Dali

Set MAIL_DRIVER to log

I’m sorry I don’t quite get it.

I add this line to .env?

Set MAIL_DRIVER to log

or change
MAIL_DRIVER=smtp to MAIL_DRIVER=log?

Thank you
Br,
Dali

change MAIL_DRIVER=smtp to MAIL_DRIVER=log

Thank you.

Did that and cleared cache using (?clear_cache=true)

When I resend invitation for a user it will say “Successfully sent invitation” but no mail received and log storage\logs\laravel-error.log is empty.

What am I doing wrong?

Thank you

Br,
Dali

Are there any other files in storage/logs?

Also, with SMTP enabled there may be more info in your web server logs.

Are there any other files in storage/logs?

no

Also, with SMTP enabled there may be more info in your web server logs.

Yes it’s handshake failed.

“TCPIP” 4928 “2016-05-13 13:32:51.271” “TCPConnection - TLS/SSL handshake failed. Session Id: 8381, Remote IP: 93.103.7.222, Error code: 336151574, Message: sslv3 alert certificate unknown”
“TCPIP” 4928 “2016-05-13 13:32:57.550” “TCP - 93.103.7.222 connected to 93.103.7.222:465.”

Br,
Dali

this is email server log not web server log.

“TCPIP” 4928 “2016-05-13 13:32:51.271” “TCPConnection – TLS/SSL handshake failed. Session Id: 8381, Remote IP: 93.103.7.222, Error code: 336151574, Message: sslv3 alert certificate unknown”
“TCPIP” 4928 “2016-05-13 13:32:57.550” “TCP – 93.103.7.222 connected to 93.103.7.222:465.”

Br,
Dali

Maybe some of the suggestion here will help…

http://serverfault.com/questions/639837/openssl-s-client-shows-alert-certificate-unknown-but-all-server-certificates-app

Thank you Hillel.

Sadly it does not help. I remember having to click ignore and remember for certificate each time I set the Thunderbird email client for the first time. Later on it’s ok. It does not prompt for certificates anymore.

Nevertheless the email server works great using Roundcube, Osticket and foe other PHP websites similar to Invoice Ninja.

I have managed to use gmail account temporarily to activate users on Invoice Ninja. Kind of workaround but still would be good to be able to use own mail server.

Thank you

Br,
Dali