[v2.0.0-rc1] Recover Link in E-Mail is not correct

Hi@everone

I get my email system to work (very dirty config and wrong “from” address)

No I see that the Recover link is broken
http://setup/recover/f35b7a09-09d7-4325-b5b4-6c1f6b414bac/7b37cdd5-bde9-3454-b24d-771a663a27ea

The “//setup/” is really like this as link in the mail.
And the funny thing is: This is correct in the E-Mail

This email is an automatic notification sent by https://auth.domain.cloud/. You can disable these notifications by requesting an administrator to delete your account.

Greetings,
Marco

Hi @RogueThorn

Thanks for reporting this bug. It has been fixed on the develop branch.

Additionally, we have developed a command line tool to make it less painful to test and debug the email config (on develop branch still). You can use it by typing the following command:

./bin/cake passbolt send_test_email --recipient=youremail@domain.com

Any feedback is welcome.

Cheers,
Kevin

1 Like

Thanks for the answer.
The tool helps really much. So I can see that
'className' => 'Smtp',
is missing in my configuration. (I think it’s missing in default config too ^^)

And a little info for all GSuite users with SMTP-Relay:
Username and password must be commented out (even its empty) or you’ll get this error:
Error: SMTP Error: 503 5.5.1 bad sequence of commands i12sm925425wrc.28 - gsmtp

// Email configuration.
'EmailTransport' => [
    'default' => [
        'host' => 'smtp-relay.gmail.com',
        'port' => 587,
        'timeout' => 30,
        //'username' => '',
        //'password' => '',
        //'client' => null,
        'tls' => false,
        //'url' => null,
        'className' => 'Smtp',
    ],
],

'Email' => [
    'default' => [
        // Defines the default name and email of the sender of the emails.
        'from' => ['system@domain' => 'Name'],
        //'charset' => 'utf-8',
        //'headerCharset' => 'utf-8',
    ],

],

Now everything works. Thank you ^^

It was indeed missing in the default configuration on 2.0.0-rc1. It was fixed on the same time as we introduced the debug tool.
Glad to hear that it’s helpful :slight_smile:

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.