Skip to content

Commit

Permalink
Switch to SetAttachments method
Browse files Browse the repository at this point in the history
Switch to SetAttachments from deprecated SetAttachements method.
  • Loading branch information
wneessen committed Oct 7, 2024
1 parent 988bf91 commit f7eca5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openpgp/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (m *Middleware) pgpInline(msg *mail.Msg) *mail.Msg {
buf.Reset()
}
af := msg.GetAttachments()
msg.SetAttachements(nil)
msg.SetAttachments(nil)
for _, f := range af {
_, err := f.Writer(&buf)
if err != nil {
Expand Down

0 comments on commit f7eca5e

Please sign in to comment.