code: func SendEmail(c context.Context, task proto.Message) error {
  	appID := info.AppID(c)
  	sender := fmt.Sprintf("%s <noreply@%s.appspotmail.com>", appID, appID)
  
  	// TODO(mknyszek): Query Milo for additional build information.
  	emailTask := task.(*internal.EmailTask)
  
  	body := emailTask.Body
  	if len(emailTask.BodyGzip) > 0 {
  		r, err := gzip.NewReader(bytes.NewReader(emailTask.BodyGzip))
  		if err != nil {
  			return err
  		}
  		buf, err := ioutil.ReadAll(r)
  		if err != nil {
  			return err
  		}
  		body = string(buf)
  	}
  
  	return mail.Send(c, &mail.Message{
  		Sender:   sender,
  		To:       emailTask.Recipients,
  		Subject:  emailTask.Subject,
  		HTMLBody: body,
  	})
  }
docs: // SendEmail is a push queue handler that attempts to send an email.