mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #3688] [bug]: SMTP configuration not working #1273
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1273
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @skyalbrigonia on GitHub (Dec 21, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3688
Is there an existing issue for this?
Current behavior
when i try to send an invitation in the admin panel i see a failure.
LOGS:
MY_CONF:
I also tried with smtp and port 587 but it doesn't work
Steps to reproduce
1 - Go to Admin Website
2 - invite new member
Environment
Production
Version
Self-hosted
@shipko commented on GitHub (Dec 28, 2023):
@skyalbrigonia try to replace myemail@gmail.com -> myemail in MAILER_SMTP_URL parameter
@lelered commented on GitHub (Jan 1, 2024):
Hi,
can you check the "MAILER_*" values in database in
InfraConfigtable?A sample query could be:
SELECT name, value FROM "public"."InfraConfig" WHERE "name" LIKE 'MAILER_%';After configuring the final and correct environment values, you can solve it by destroying and recreating the database.
(It seems like the configuration is saved in database on first boot)
Maybe, another solution would be to try changing the values in the database (for
MAILER_SMTP_URLandMAILER_ADDRESS_FROM) and restart the server.@restmad commented on GitHub (Jan 2, 2024):
remove email dependency!!!
@skyalbrigonia commented on GitHub (Jan 2, 2024):
Hi all! i checked the DB as @lelered suggested and the error was there.
I updated the table and restarted the service and now the notification works!
I saw that in the notification email the URL is "undefined", am i missing a configuration?
this is the message:
Thanks a lot for the help!
@corelgott commented on GitHub (Jan 3, 2024):
It seems the env var is only evaluated on the first start and then copied to the db. These are the default settings that do not reflect the smtp settings in the MAILER_SMTP_URL, that was altered later. After connecting to the db with this vs extension
and running these updates:
the email was sent successfully.
@skyalbrigonia commented on GitHub (Jan 5, 2024):
Hi all!
I fixed the problem also for the undefined url in the mail message:
you need to populate these two vars also in the backend env:
VITE_BASE_URLandVITE_SHORTCODE_BASE_URLThanks a lot for the help!
@icharge commented on GitHub (Jun 16, 2024):
I didn't understand why design to using only email to get logged in.