Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go-Gomail/Gomail no longer supported #1070

Open
2 tasks done
irby opened this issue Oct 7, 2023 · 1 comment
Open
2 tasks done

Go-Gomail/Gomail no longer supported #1070

irby opened this issue Oct 7, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@irby
Copy link
Collaborator

irby commented Oct 7, 2023

Checklist

  • I could not find a solution in the existing issues or docs.
  • I agree to follow this project's Code of Conduct.

Description

As described in issue go-gomail/gomail#182, the maintainer of Gomail has passed away. The repository has not been maintained since 2016. Someone mentioned in this issue that Shopify has a fork of this repo that has been more recently updated (https://github.com/Shopify/gomail), but it may be worth looking for alternatives.

Describe your ideal solution

Research on alternative Go email SDKs

Workarounds or alternatives

No response

Hanko Version

0.8.3

Additional Context

No response

@irby irby added the enhancement New feature or request label Oct 7, 2023
@shaneHowearth
Copy link

shaneHowearth commented Feb 27, 2024

Hi

I've had a look at the Shopify fork and it doesn't seem to be actively maintained either.

I've just run into an issue where I am struggling to send html emails with inlined css using gomail, and I am wondering if the the best solution is to change the way that hanko is architected such that the mail service is determined at compile time, using Dependency Injection.

I think that it's a matter of creating an interface that has the methods that are currently used by hanko to talk to gomail, and then people can create "drivers" for an smtpd of their choice.

edit:
Apologies to gomail, the hanko code is configured to send text/plain emails
https://github.com/teamhanko/hanko/blob/c636ab916ba893b51621f6db2e45c4038450e151/backend/handler/passcode.go#L203C24-L203C29

But I still think that DI for gomail would help people choose the smtp that suits their needs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants