Skip to content
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