Sending Emails
Email notifications utility
Sending email notification
user, err := sp.Web().SiteUsers().
GetByEmail("[email protected]").Get()
if err != nil {
log.Fatal(err)
}
if err := sp.Utility().SendEmail(&api.EmailProps{
Subject: "Say hi to Gosip!",
Body: "Text or HTML body here...",
To: []string{user.Data().Email},
}); err != nil {
log.Fatal(err)
}Last updated
Was this helpful?
