Can't find test email script

Checklist
[X] I have read intro post: About the Installation Issues category
[X] I have read the tutorials, help and searched for similar issues
[ ] I provide relevant information about my server (component names and versions, etc.)
[ ] I provide a copy of my logs and healthcheck
[X] I describe the steps I have taken to trouble shoot the problem
[X] I describe the steps on how to reproduce the issue

Hi, I’ve tried every combination of the ```
./bin/cake passbolt send_test_email --recipient=youremail@domain.com


./bin/cake
./var/www
./usr/share/php

I've also tried other combinations in different Passbolt folders, but I still can't find it.

Hello havran,

Can you validate the the configuration in ~/config/passbolt.php then search for the Email Configuration:

// Email configuration.
'EmailTransport' => [
    'default' => [
        'host' => 'host_email@email.com',
        'port' => 25,
        'username' => 'email_username',
        'password' => 'email_password',
        // Is this a secure connection? true if yes, null if no.
        'tls' => null,
        //'timeout' => 30,
        //'client' => null,
        //'url' => null,
    ],
],
'Email' => [
    'default' => [
        // Defines the default name and email of the sender of the emails.
        'from' => ['passbolt_email@email.com' => 'Passbolt'],
        //'charset' => 'utf-8',
        //'headerCharset' => 'utf-8',
    ],
],

You can modify the “host”, “user”, “password”, “from” from the script then test the send_test_email.

Hi @havran The ./bin/cake commands must be run in the passbolt folder which also contains the bin folder - but you don’t mention which installation option you chose. Depending on the installation method, the directories are different.

For the new package-based installations, you will want to run the command while in /usr/share/php/passbolt or include that path in the command itself. The installation script method (which we are working to move away from) installs to /var/www/passbolt.

Hope this helps.