mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-20 08:01:26 +00:00
12 lines
255 B
Go
12 lines
255 B
Go
package msgraph
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
)
|
|
|
|
// GetAddress renders the mailbox's RFC 5322 From value ("First Last <email>").
|
|
func (c *Client) GetAddress() string {
|
|
return fmt.Sprintf("%s <%s>", strings.TrimSpace(c.FirstName+" "+c.LastName), c.Email)
|
|
}
|