signoz/pkg/emailing/emailing.go
Vibhu Pandey 9e13245d1b
feat(emailing): add smtp and emailing (#7993)
* feat(emailing): initial commit for emailing

* feat(emailing): implement emailing

* test(integration): fix tests

* fix(emailing): fix directory path

* fix(emailing): fix email template path

* fix(emailing): copy from go-gomail

* fix(emailing): copy from go-gomail

* fix(emailing): fix smtp bugs

* test(integration): fix tests

* feat(emailing): let missing templates passthrough

* feat(emailing): let missing templates passthrough

* feat(smtp): refactor and beautify

* test(integration): fix tests

* docs(smtp): fix incorrect grammer

* feat(smtp): add to header

* feat(smtp): remove comments

* chore(smtp): address comments

---------

Co-authored-by: Vikrant Gupta <vikrant@signoz.io>
2025-05-22 18:31:52 +00:00

13 lines
305 B
Go

package emailing
import (
"context"
"github.com/SigNoz/signoz/pkg/types/emailtypes"
)
type Emailing interface {
// Sends an HTML email to the given address with the given subject and template name and data.
SendHTML(context.Context, string, string, emailtypes.TemplateName, map[string]any) error
}