Skip to content

Commit

Permalink
Adapting interface of smtp_emailer
Browse files Browse the repository at this point in the history
Signed-off-by: Ulbrich Robert <[email protected]>
  • Loading branch information
robert-ulbrich-mercedes-benz committed Sep 11, 2024
1 parent f04c0fd commit 5da05e1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (s *SMTPEmailer) createClient(ctx context.Context) (*smtp.Client, error) {
return newClient, nil
}

func (s *SMTPEmailer) SendEmail(ctx context.Context, email admin.EmailMessage) error {
func (s *SMTPEmailer) SendEmail(ctx context.Context, email *admin.EmailMessage) error {

if s.smtpClient == nil || s.smtpClient.Noop() != nil {

Expand Down Expand Up @@ -109,7 +109,7 @@ func (s *SMTPEmailer) emailError(ctx context.Context, error string) error {
return errors.NewFlyteAdminErrorf(codes.Internal, "errors were seen while sending emails")
}

func createMailBody(emailSender string, email admin.EmailMessage) string {
func createMailBody(emailSender string, email *admin.EmailMessage) string {
headerMap := make(map[string]string)
headerMap["From"] = emailSender
headerMap["To"] = strings.Join(email.RecipientsEmail, ",")
Expand Down

0 comments on commit 5da05e1

Please sign in to comment.