mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
feat(email/oauth): implement OAuth2 support for Gmail provider (#212)
This commit is contained in:
@@ -156,6 +156,10 @@ func (m *Manager) SendEmail(ctx context.Context, botID string, providerID string
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
if config == nil {
|
||||
config = make(map[string]any)
|
||||
}
|
||||
config["_provider_id"] = providerID
|
||||
|
||||
sender, err := m.service.registry.GetSender(providerName)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user