1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

public mail methods

This commit is contained in:
Harvey Kandola 2016-07-25 14:03:11 -07:00
parent 2e39b7a471
commit 56fe047136
2 changed files with 32 additions and 30 deletions

View file

@ -1,11 +1,11 @@
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
// by contacting <sales@documize.com>.
//
// https://documize.com
@ -45,7 +45,6 @@ import (
"encoding/base64"
"errors"
"fmt"
"github.com/documize/community/core/log"
"io"
"mime"
"mime/multipart"
@ -56,6 +55,8 @@ import (
"path/filepath"
"strings"
"time"
"github.com/documize/community/core/log"
)
const (
@ -77,8 +78,8 @@ type Email struct {
ReadReceipt []string
}
// newEmail creates an Email, and returns the pointer to it.
func newEmail() *Email {
// NewEmail creates an Email, and returns the pointer to it.
func NewEmail() *Email {
return &Email{Headers: textproto.MIMEHeader{}}
}