Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Mailcatcher implementation and how are emails forwarded to mailcatcher in development environment in the case of no configured smtp host #1503

Answered by YuriiMotov
adham404 asked this question in Questions
Discussion options

First Check

  • I added a very descriptive title here.
  • I used the GitHub search to find a similar question and didn't find it.
  • I searched in the documentation/README.
  • I already searched in Google "How to do X" and didn't find any information.
  • I already read and followed all the tutorial in the docs/README and didn't find an answer.

Commit to Help

  • I commit to help with one of those options 👆

Example Code

# Stage 0, "build-stage", based on Node.js, to build and compile the frontend
FROM node:20 AS build-stage
WORKDIR /app
COPY package*.json /app/
RUN npm install
COPY ./ /app/
ARG VITE_API_URL=${VITE_API_URL}
RUN npm run build
# Stage 1, based on Nginx, to have only the compiled app, ready for production with Nginx
FROM nginx:1
COPY --from=build-stage /app/dist/ /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
COPY ./nginx-backend-not-found.conf /etc/nginx/extra-conf.d/backend-not-found.conf

Description

when I run docker compose watch and test the forgot password functionality I it works fine but I am curious as to how that is I looked in the frontend code and fount that it uses the loginService but how is this loginService generted if the generate client script is never run in the dockerfile of the frontend. Furthermore, once the client generation question is resolved it takes us to the next question if there is no smtp host how is mailcatcher used instead?

Operating System

Linux

Operating System Details

Ubuntu

Python Version

3.12

Additional Context

No response

You must be logged in to vote

Some parts of functionality are hardcoded (not generated by client generator).
The part related to password recovery is here

As for

if there is no smtp host how is mailcatcher used instead?

It's specified in docker-compose.override.yml:

environment:
SMTP_HOST: "mailcatcher"
SMTP_PORT: "1025"
SMTP_TLS: "false"
EMAILS_FROM_EMAIL: "noreply@example.com"

Replies: 1 comment 1 reply

Comment options

Some parts of functionality are hardcoded (not generated by client generator).
The part related to password recovery is here

As for

if there is no smtp host how is mailcatcher used instead?

It's specified in docker-compose.override.yml:

environment:
SMTP_HOST: "mailcatcher"
SMTP_PORT: "1025"
SMTP_TLS: "false"
EMAILS_FROM_EMAIL: "noreply@example.com"
You must be logged in to vote
1 reply
Comment options

Thanks for the answer this clarifies things out.😊

Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested

AltStyle によって変換されたページ (->オリジナル) /