Client

Overview

Location

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

 

constructor

 

constructor

 

Client()

 

init()

constructor (Client)

 

constructor(value: Client)

 

Client(Client value)

 

init(_ value: Client)

Parameters:

  • value:

constructor (Reference<Conn>, Conn, Boolean, String, Map<String, String>, Slice<String>, String, Boolean, error) .NET, .NET Standard 2.0

 

constructor(aText: Reference<Conn>; aconn: Conn; atls: Boolean; aserverName: String; aext: Map<String, String>; aauth: Slice<String>; alocalName: String; adidHello: Boolean; ahelloError: error)

 

Client(Reference<Conn> aText, Conn aconn, Boolean atls, String aserverName, Map<String, String> aext, Slice<String> aauth, String alocalName, Boolean adidHello, error ahelloError)

 

init(_ aText: Reference<Conn>, _ aconn: Conn, _ atls: Boolean, _ aserverName: String, _ aext: Map<String, String>, _ aauth: Slice<String>, _ alocalName: String, _ adidHello: Boolean, _ ahelloError: error)

Parameters:

  • aText:
  • aconn:
  • atls:
  • aserverName:
  • aext:
  • aauth:
  • alocalName:
  • adidHello:
  • ahelloError:

constructor (Reference<Conn>, Conn, bool, string, Map<String, String>, Slice<String>, string, bool, error) Island, macOS

 

constructor(aText: Reference<Conn>; aconn: Conn; atls: bool; aserverName: string; aext: Map<String, String>; aauth: Slice<String>; alocalName: string; adidHello: bool; ahelloError: error)

 

Client(Reference<Conn> aText, Conn aconn, bool atls, string aserverName, Map<String, String> aext, Slice<String> aauth, string alocalName, bool adidHello, error ahelloError)

 

init(_ aText: Reference<Conn>, _ aconn: Conn, _ atls: bool, _ aserverName: string, _ aext: Map<String, String>, _ aauth: Slice<String>, _ alocalName: string, _ adidHello: bool, _ ahelloError: error)

Parameters:

  • aText:
  • aconn:
  • atls:
  • aserverName:
  • aext:
  • aauth:
  • alocalName:
  • adidHello:
  • ahelloError:

Auth

 

method Auth(a: Auth): error

 

error Auth(Auth a)

 

func Auth(_ a: Auth) -> error

 

func Auth(a Auth) error

Parameters:

  • a:

Close

 

method Close: error

 

error Close()

 

func Close() -> error

 

func Close() error

Data

 

// .NET, Island, macOS
method Data: tuple of (WriteCloser, error)
// .NET Standard 2.0
method Data: ValueTuple<WriteCloser, error>

 

// .NET, Island, macOS
(WriteCloser, error) Data()
// .NET Standard 2.0
ValueTuple<WriteCloser, error> Data()

 

// .NET, Island, macOS
func Data() -> (WriteCloser, error)
// .NET Standard 2.0
func Data() -> ValueTuple<WriteCloser, error>

 

// .NET, Island, macOS
func Data() (WriteCloser, error)
// .NET Standard 2.0
func Data() ValueTuple<WriteCloser, error>

Extension

 

// .NET, Island, macOS
method Extension(ext: string): tuple of (Boolean, String)
// .NET Standard 2.0
method Extension(ext: string): ValueTuple<Boolean, String>

 

// .NET, Island, macOS
(Boolean, String) Extension(string ext)
// .NET Standard 2.0
ValueTuple<Boolean, String> Extension(string ext)

 

// .NET, Island, macOS
func Extension(_ ext: string) -> (Boolean, String)
// .NET Standard 2.0
func Extension(_ ext: string) -> ValueTuple<Boolean, String>

 

// .NET, Island, macOS
func Extension(ext string) (Boolean, String)
// .NET Standard 2.0
func Extension(ext string) ValueTuple<Boolean, String>

Parameters:

  • ext:

Hello

 

method Hello(localName: string): error

 

error Hello(string localName)

 

func Hello(_ localName: string) -> error

 

func Hello(localName string) error

Parameters:

  • localName:

Mail

 

method Mail(from: string): error

 

error Mail(string from)

 

func Mail(_ from: string) -> error

 

func Mail(from string) error

Parameters:

  • from:

Noop

 

method Noop: error

 

error Noop()

 

func Noop() -> error

 

func Noop() error

Quit

 

method Quit: error

 

error Quit()

 

func Quit() -> error

 

func Quit() error

Rcpt

 

method Rcpt(to: string): error

 

error Rcpt(string to)

 

func Rcpt(_ to: string) -> error

 

func Rcpt(to string) error

Parameters:

  • to:

Reset

 

method Reset: error

 

error Reset()

 

func Reset() -> error

 

func Reset() error

StartTLS

 

method StartTLS(config: Reference<Config>): error

 

error StartTLS(Reference<Config> config)

 

func StartTLS(_ config: Reference<Config>) -> error

 

func StartTLS(config Reference<Config>) error

Parameters:

  • config:

Text

 

var Text: Reference<Conn>;

 

Reference<Conn> Text

 

var Text: Reference<Conn>

 

Text Reference<Conn>

TLSConnectionState

 

method TLSConnectionState: tuple of (state: ConnectionState, ok: Boolean)

 

(ConnectionState state, Boolean ok) TLSConnectionState()

 

func TLSConnectionState() -> (state:ConnectionState, ok:Boolean)

 

func TLSConnectionState() (state ConnectionState, ok Boolean)

Verify

 

method Verify(addr: string): error

 

error Verify(string addr)

 

func Verify(_ addr: string) -> error

 

func Verify(addr string) error

Parameters:

  • addr:

 

Text

 

var Text: Reference<Conn>;

 

Reference<Conn> Text

 

var Text: Reference<Conn>

 

Text Reference<Conn>

 

constructor

 

constructor

 

Client()

 

init()

constructor (Client)

 

constructor(value: Client)

 

Client(Client value)

 

init(_ value: Client)

Parameters:

  • value:

constructor (Reference<Conn>, Conn, Boolean, String, Map<String, String>, Slice<String>, String, Boolean, error) .NET, .NET Standard 2.0

 

constructor(aText: Reference<Conn>; aconn: Conn; atls: Boolean; aserverName: String; aext: Map<String, String>; aauth: Slice<String>; alocalName: String; adidHello: Boolean; ahelloError: error)

 

Client(Reference<Conn> aText, Conn aconn, Boolean atls, String aserverName, Map<String, String> aext, Slice<String> aauth, String alocalName, Boolean adidHello, error ahelloError)

 

init(_ aText: Reference<Conn>, _ aconn: Conn, _ atls: Boolean, _ aserverName: String, _ aext: Map<String, String>, _ aauth: Slice<String>, _ alocalName: String, _ adidHello: Boolean, _ ahelloError: error)

Parameters:

  • aText:
  • aconn:
  • atls:
  • aserverName:
  • aext:
  • aauth:
  • alocalName:
  • adidHello:
  • ahelloError:

constructor (Reference<Conn>, Conn, bool, string, Map<String, String>, Slice<String>, string, bool, error) Island, macOS

 

constructor(aText: Reference<Conn>; aconn: Conn; atls: bool; aserverName: string; aext: Map<String, String>; aauth: Slice<String>; alocalName: string; adidHello: bool; ahelloError: error)

 

Client(Reference<Conn> aText, Conn aconn, bool atls, string aserverName, Map<String, String> aext, Slice<String> aauth, string alocalName, bool adidHello, error ahelloError)

 

init(_ aText: Reference<Conn>, _ aconn: Conn, _ atls: bool, _ aserverName: string, _ aext: Map<String, String>, _ aauth: Slice<String>, _ alocalName: string, _ adidHello: bool, _ ahelloError: error)

Parameters:

  • aText:
  • aconn:
  • atls:
  • aserverName:
  • aext:
  • aauth:
  • alocalName:
  • adidHello:
  • ahelloError:

Auth

 

method Auth(a: Auth): error

 

error Auth(Auth a)

 

func Auth(_ a: Auth) -> error

 

func Auth(a Auth) error

Parameters:

  • a:

Close

 

method Close: error

 

error Close()

 

func Close() -> error

 

func Close() error

Data

 

// .NET, Island, macOS
method Data: tuple of (WriteCloser, error)
// .NET Standard 2.0
method Data: ValueTuple<WriteCloser, error>

 

// .NET, Island, macOS
(WriteCloser, error) Data()
// .NET Standard 2.0
ValueTuple<WriteCloser, error> Data()

 

// .NET, Island, macOS
func Data() -> (WriteCloser, error)
// .NET Standard 2.0
func Data() -> ValueTuple<WriteCloser, error>

 

// .NET, Island, macOS
func Data() (WriteCloser, error)
// .NET Standard 2.0
func Data() ValueTuple<WriteCloser, error>

Extension

 

// .NET, Island, macOS
method Extension(ext: string): tuple of (Boolean, String)
// .NET Standard 2.0
method Extension(ext: string): ValueTuple<Boolean, String>

 

// .NET, Island, macOS
(Boolean, String) Extension(string ext)
// .NET Standard 2.0
ValueTuple<Boolean, String> Extension(string ext)

 

// .NET, Island, macOS
func Extension(_ ext: string) -> (Boolean, String)
// .NET Standard 2.0
func Extension(_ ext: string) -> ValueTuple<Boolean, String>

 

// .NET, Island, macOS
func Extension(ext string) (Boolean, String)
// .NET Standard 2.0
func Extension(ext string) ValueTuple<Boolean, String>

Parameters:

  • ext:

Hello

 

method Hello(localName: string): error

 

error Hello(string localName)

 

func Hello(_ localName: string) -> error

 

func Hello(localName string) error

Parameters:

  • localName:

Mail

 

method Mail(from: string): error

 

error Mail(string from)

 

func Mail(_ from: string) -> error

 

func Mail(from string) error

Parameters:

  • from:

Noop

 

method Noop: error

 

error Noop()

 

func Noop() -> error

 

func Noop() error

Quit

 

method Quit: error

 

error Quit()

 

func Quit() -> error

 

func Quit() error

Rcpt

 

method Rcpt(to: string): error

 

error Rcpt(string to)

 

func Rcpt(_ to: string) -> error

 

func Rcpt(to string) error

Parameters:

  • to:

Reset

 

method Reset: error

 

error Reset()

 

func Reset() -> error

 

func Reset() error

StartTLS

 

method StartTLS(config: Reference<Config>): error

 

error StartTLS(Reference<Config> config)

 

func StartTLS(_ config: Reference<Config>) -> error

 

func StartTLS(config Reference<Config>) error

Parameters:

  • config:

TLSConnectionState

 

method TLSConnectionState: tuple of (state: ConnectionState, ok: Boolean)

 

(ConnectionState state, Boolean ok) TLSConnectionState()

 

func TLSConnectionState() -> (state:ConnectionState, ok:Boolean)

 

func TLSConnectionState() (state ConnectionState, ok Boolean)

Verify

 

method Verify(addr: string): error

 

error Verify(string addr)

 

func Verify(_ addr: string) -> error

 

func Verify(addr string) error

Parameters:

  • addr: