[GH-ISSUE #154] Email Not Working #47

Closed
opened 2026-02-26 18:45:07 +03:00 by kerem · 7 comments
Owner

Originally created by @itsahmadawais on GitHub (May 22, 2023).
Original GitHub issue: https://github.com/documenso/documenso/issues/154

I've added the SendGrid API details and also tried Google SMTP details but the email feature is not working. What could the possible issue and way to solve this issue?

Originally created by @itsahmadawais on GitHub (May 22, 2023). Original GitHub issue: https://github.com/documenso/documenso/issues/154 I've added the SendGrid API details and also tried Google SMTP details but the email feature is not working. What could the possible issue and way to solve this issue?
kerem closed this issue 2026-02-26 18:45:08 +03:00
Author
Owner

@ephraimduncan commented on GitHub (May 23, 2023):

When you set up the repo locally with docker, a local SMTP server will be available for you.

Add this to your .env and you will be good to go

SMTP_MAIL_HOST=127.0.0.1
SMTP_MAIL_PORT=2500
SMTP_MAIL_USER=documenso
SMTP_MAIL_PASSWORD=password
<!-- gh-comment-id:1558861961 --> @ephraimduncan commented on GitHub (May 23, 2023): When you set up the repo locally with docker, a local SMTP server will be available for you. Add this to your `.env` and you will be good to go ``` SMTP_MAIL_HOST=127.0.0.1 SMTP_MAIL_PORT=2500 SMTP_MAIL_USER=documenso SMTP_MAIL_PASSWORD=password ```
Author
Owner

@ashifkhn commented on GitHub (May 23, 2023):

Can you elaborate the issue??

<!-- gh-comment-id:1559712431 --> @ashifkhn commented on GitHub (May 23, 2023): Can you elaborate the issue??
Author
Owner

@itsahmadawais commented on GitHub (May 24, 2023):

Can you elaborate the issue??

I have added the SendGrid API and also tried Google SMTP for the email but none of them is working.

<!-- gh-comment-id:1560414541 --> @itsahmadawais commented on GitHub (May 24, 2023): > Can you elaborate the issue?? I have added the SendGrid API and also tried Google SMTP for the email but none of them is working.
Author
Owner

@ephraimduncan commented on GitHub (May 25, 2023):

@itsahmadawais Do you have any logs?

<!-- gh-comment-id:1562678863 --> @ephraimduncan commented on GitHub (May 25, 2023): @itsahmadawais Do you have any logs?
Author
Owner

@nikmartin commented on GitHub (May 30, 2023):

You can have either SENDGRID_API_KEY set, OR SMTP_MAIL_HOST set in .env. If you have both set, SMTP_MAIL_HOST will take precedence sicne it's the last parameter to be read in packages/lib/mail/sendMail.ts:22

<!-- gh-comment-id:1569080903 --> @nikmartin commented on GitHub (May 30, 2023): You can have either `SENDGRID_API_KEY` set, `OR SMTP_MAIL_HOST` set in .env. If you have both set, SMTP_MAIL_HOST will take precedence sicne it's the last parameter to be read in packages/lib/mail/sendMail.ts:22
Author
Owner

@Mythie commented on GitHub (Jun 1, 2023):

Hi there, as others have mentioned any elaboration would be greatly appreciated!

If you're running Documenso locally using the npm run dx command it will use Inbucket by default which captures all SMTP traffic and keep it locally.

A Web UI for this is visible at http://localhost:9000 I apologise for any confusion this may have caused and will on documenting it better.

<!-- gh-comment-id:1572139762 --> @Mythie commented on GitHub (Jun 1, 2023): Hi there, as others have mentioned any elaboration would be greatly appreciated! If you're running Documenso locally using the `npm run dx` command it will use Inbucket by default which captures all SMTP traffic and keep it locally. A Web UI for this is visible at http://localhost:9000 I apologise for any confusion this may have caused and will on documenting it better.
Author
Owner

@Mythie commented on GitHub (Jun 17, 2023):

I've updated our documentation to include a troubleshooting section for SMTP traffic while running locally 😄

If you're still encountering issues please let us know otherwise I'll close this off for now.

<!-- gh-comment-id:1595593985 --> @Mythie commented on GitHub (Jun 17, 2023): I've updated our documentation to include a troubleshooting section for SMTP traffic while running locally 😄 If you're still encountering issues please let us know otherwise I'll close this off for now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#47
No description provided.