Global

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.net.smtp
  • Platforms: .NET, .NET Standard 2.0, Island

Methods


CRAMMD5Auth

 

class method CRAMMD5Auth(username: string; secret: string): Auth

 

static Auth CRAMMD5Auth(string username, string secret)

 

static func CRAMMD5Auth(_ username: string, _ secret: string) -> Auth

 

func CRAMMD5Auth(username string, secret string) Auth

Parameters:

  • username:
  • secret:

Dial

 

// .NET, Island
class method Dial(addr: string): tuple of (Reference<Client>, error)
// .NET Standard 2.0
class method Dial(addr: string): ValueTuple<Reference<Client>, error>

 

// .NET, Island
static (Reference<Client>, error) Dial(string addr)
// .NET Standard 2.0
static ValueTuple<Reference<Client>, error> Dial(string addr)

 

// .NET, Island
static func Dial(_ addr: string) -> (Reference<Client>, error)
// .NET Standard 2.0
static func Dial(_ addr: string) -> ValueTuple<Reference<Client>, error>

 

// .NET, Island
func Dial(addr string) (Reference<Client>, error)
// .NET Standard 2.0
func Dial(addr string) ValueTuple<Reference<Client>, error>

Parameters:

  • addr:

NewClient

 

// .NET, Island
class method NewClient(conn: Conn; host: string): tuple of (Reference<Client>, error)
// .NET Standard 2.0
class method NewClient(conn: Conn; host: string): ValueTuple<Reference<Client>, error>

 

// .NET, Island
static (Reference<Client>, error) NewClient(Conn conn, string host)
// .NET Standard 2.0
static ValueTuple<Reference<Client>, error> NewClient(Conn conn, string host)

 

// .NET, Island
static func NewClient(_ conn: Conn, _ host: string) -> (Reference<Client>, error)
// .NET Standard 2.0
static func NewClient(_ conn: Conn, _ host: string) -> ValueTuple<Reference<Client>, error>

 

// .NET, Island
func NewClient(conn Conn, host string) (Reference<Client>, error)
// .NET Standard 2.0
func NewClient(conn Conn, host string) ValueTuple<Reference<Client>, error>

Parameters:

  • conn:
  • host:

PlainAuth

 

class method PlainAuth(identity: string; username: string; password: string; host: string): Auth

 

static Auth PlainAuth(string identity, string username, string password, string host)

 

static func PlainAuth(_ identity: string, _ username: string, _ password: string, _ host: string) -> Auth

 

func PlainAuth(identity string, username string, password string, host string) Auth

Parameters:

  • identity:
  • username:
  • password:
  • host:

SendMail

 

class method SendMail(addr: string; a: Auth; from: string; to: Slice<string>; msg: Slice<Byte>): error

 

static error SendMail(string addr, Auth a, string from, Slice<string> to, Slice<Byte> msg)

 

static func SendMail(_ addr: string, _ a: Auth, _ from: string, _ to: Slice<string>, _ msg: Slice<Byte>) -> error

 

func SendMail(addr string, a Auth, from string, to Slice<string>, msg Slice<Byte>) error

Parameters:

  • addr:
  • a:
  • from:
  • to:
  • msg: