-
-
Notifications
You must be signed in to change notification settings - Fork 302
Description
I am currently setting up a self hosted docker instance of BigCapital, however I cannot get emails to work, I have added my SMTP details to the env file (and confirmed they are correct by sending an email with a simple nodemailer script). I can also confirm that the server is in fact seeing these env variables. It never seems to actually trigger
private sendMailNotification = (
payload: IUserInviteTenantSyncedEventPayload
) => {
const { invite, authorizedUser, tenantId } = payload;
console.log("Sending scheduled email now");
this.agenda.now("user-invite-mail", { // <- this
invite,
authorizedUser,
tenantId,
});
};
Meaning the agenda is never triggered, which means the emails never gets sent - I'm not sure if this is a bug or if I missed out somewhere with the configuration, but by the look of it https://docs.bigcapital.app/deployment/env_vars I seem to have gotten all mail envs. I did leave most of the env variables as their default, since I'm just testing at the moment, but just thought to mention just in case.
To replicate my current setup, do a simple setup as per the documentation (remember to add the env variables), and then try to send an invite to your organisation