Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Diagnostics
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
      • Diagnostics
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • PhpGenerator
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
  • NetteModule
  • none

Classes

  • Message
  • MimePart
  • SendmailMailer
  • SmtpMailer

Interfaces

  • IMailer

Exceptions

  • SmtpException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class SmtpMailer

Sends emails via the SMTP server.

Nette\Object
Extended by Nette\Mail\SmtpMailer implements Nette\Mail\IMailer
Namespace: Nette\Mail
Author: David Grudl
Located at Mail/SmtpMailer.php
Methods summary
public
# __construct( array $options = array() )
public
# send( Nette\Mail\Message $mail )

Sends email.

Sends email.

Implementation of

Nette\Mail\IMailer::send()
protected
# connect( )

Connects and authenticates to SMTP server.

Connects and authenticates to SMTP server.

protected
# disconnect( )

Disconnects from SMTP server.

Disconnects from SMTP server.

protected
# write( string $line, integer $expectedCode = NULL, string $message = NULL )

Writes data to server and checks response.

Writes data to server and checks response.

Parameters

$line
string
$expectedCode
integer
response code
$message
string
error message
protected string
# read( )

Reads response from server.

Reads response from server.

Returns

string
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Magic properties inherited from Nette\Object
$reflection
Nette 2.1 API documentation generated by ApiGen 2.8.0