Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new methods and tests for handling email addresses #155

Merged
merged 2 commits into from
Nov 10, 2023

Conversation

wneessen
Copy link
Owner

Added new methods ToFromString(), CcFromString() and BccFromString() in msg.go file to handle strings of comma-separated email addresses.

Closes #152

Added new methods `ToFromString()`, `CcFromString()` and `BccFromString()` in msg.go file to handle strings of comma-separated email addresses.
Tests for new mail address handling methods have been updated to use {Name:"", Address: "[email protected]"} format for initializing the []*mail.Address slices, instead of the previous shorthand {"", "[email protected]"}. This was done to increase code clarity and explicitness.
@wneessen wneessen merged commit cdc8c37 into main Nov 10, 2023
26 checks passed
@wneessen wneessen deleted the feature/152_recipients_from_single_string branch November 10, 2023 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Req] Interface that accept To/CC with a single string
1 participant