Skip to content

Commit

Permalink
Merge pull request #42 from eiicon-company/smtp-headers
Browse files Browse the repository at this point in the history
Add headers param into smtp mail interface
  • Loading branch information
kaitosawada authored Jan 25, 2024
2 parents 20d11ab + ab42248 commit e27c800
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/mail/mail.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type (
Subject string
Text []byte
HTML []byte
Headers map[string][]string
}

// Mail provides interface for sends some of kinda E-Mail.
Expand Down
1 change: 1 addition & 0 deletions data/mail/smtp.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func (m *smtpMail) Send(data *Data) error {
e.Cc = data.Cc
e.From = data.From
e.Subject = data.Subject
e.Headers = data.Headers
if data.Text != nil {
e.Text = data.Text
}
Expand Down

0 comments on commit e27c800

Please sign in to comment.