-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add mail_v3 functionality for reply_to_list (#471)
Add reply_to_list functionality to mail send api
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,6 +96,17 @@ func TestV3SetReplyTo(t *testing.T) { | |
assert.Equal(t, address, m.ReplyTo.Address, fmt.Sprintf("address should be %s, got %s", address, e.Address)) | ||
} | ||
|
||
func TestV3SetReplyToList(t *testing.T) { | ||
m := NewV3Mail() | ||
replyTos := []*Email{ | ||
NewEmail("Example User", "[email protected]"), | ||
NewEmail("Example User", "[email protected]"), | ||
} | ||
m.SetReplyToList(replyTos) | ||
|
||
assert.Equal(t, len(replyTos), len(m.ReplyToList), fmt.Sprintf("length of To should be %d, got %d", len(replyTos), len(m.ReplyToList))) | ||
} | ||
|
||
func TestV3SetTemplateID(t *testing.T) { | ||
m := NewV3Mail() | ||
|
||
|