Skip to content

Commit

Permalink
fix(mail-service): handle cc, bcc & reply-to correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmard committed Dec 21, 2023
1 parent dc5c1da commit fd4a5f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/services/mail_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ impl MailService {
}

for cc in &saved.cc {
builder = builder.to(make_mailbox(cc))
builder = builder.cc(make_mailbox(cc))
}

for bcc in &saved.bcc {
builder = builder.to(make_mailbox(bcc))
builder = builder.bcc(make_mailbox(bcc))
}

for reply_to in &saved.reply_to {
builder = builder.to(make_mailbox(reply_to))
builder = builder.reply_to(make_mailbox(reply_to))
}

let email = builder
Expand Down

0 comments on commit fd4a5f2

Please sign in to comment.