Use custom smtp relay for email transport#2077
Use custom smtp relay for email transport#2077Calanas wants to merge 7 commits intotrycompai:mainfrom
Conversation
Signed-off-by: Andreas Reußner <andreas.reussner@rgigroup.com>
Signed-off-by: Andreas Reußner <andreas.reussner@rgigroup.com>
Signed-off-by: Andreas Reussner <andreas.reussner@rgigroup.com>
Signed-off-by: Andreas Reußner <andreas.reussner@rgigroup.com>
|
@Calanas is attempting to deploy a commit to the Comp AI Team on Vercel. A member of the Team first needs to authorize it. |
Signed-off-by: Andreas Reussner <andreas.reussner@rgigroup.com>
PR SummaryMedium Risk Overview Updates API/app/portal email senders to use Written by Cursor Bugbot for commit 54c651c. This will update automatically on new commits. Configure here. |
Signed-off-by: Andreas Reußner <andreas.reussner@outlook.de>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
- add warning for mail scheduling - add runtime environment variables Signed-off-by: Andreas Reußner <andreas.reussner@outlook.de>
What does this PR do?
Alternatively, it is now possible to use a custom (SMTP) mail server for email transport. The goal is to connect this application to an already existing infrastructure and to reduce the number of external (meaning outside the company boundaries) dependencies.
Resend will still be the default. But for companies who cannot use online services that easily, the SMTP relay might be a proper alternative.
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Prerequisites
Remove / comment the RESEND_API_KEY from your environment since it would be taken as the default otherwise.
Steps to reproduce
Configure a custom SMTP relay with those environment variables (use your own SMTP server):
RELAY_SMTP_HOST="smtp-relay.example.com"
RELAY_SMTP_PORT="587"
RELAY_SMTP_USER="username"
RELAY_SMTP_PASS="password"
Start the application and use the continue with email option:

In the app logs, you will recognize an information text
[next] Using SMTP-Relay as mail service.as well as the correct mail service provider
And of course, the mail will be delivered.