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

refactor(email): export priority type #84

Merged
merged 1 commit into from
Jul 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions email.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,18 +384,18 @@ func addAddress(addressList []string, address string, allowDuplicateAddress bool
return append(addressList, address), nil
}

type priority int
type Priority int

const (
// PriorityLow sets the email priority to Low
PriorityLow priority = iota
// PriorityHigh sets the email priority to High
// PriorityLow sets the email Priority to Low
PriorityLow Priority = iota
// PriorityHigh sets the email Priority to High
PriorityHigh
)

// SetPriority sets the email message priority. Use with
// SetPriority sets the email message Priority. Use with
// either "High" or "Low".
func (email *Email) SetPriority(priority priority) *Email {
func (email *Email) SetPriority(priority Priority) *Email {
if email.Error != nil {
return email
}
Expand Down
Loading