Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Swift_FailoverTransport
  • Swift_LoadBalancedTransport
  • Swift_MailTransport
  • Swift_Plugins_Loggers_ArrayLogger
  • Swift_Plugins_Loggers_EchoLogger
  • Swift_SendmailTransport
  • Swift_SmtpTransport
  • Swift_Transport_AbstractSmtpTransport
  • Swift_Transport_Esmtp_Auth_CramMd5Authenticator
  • Swift_Transport_Esmtp_Auth_LoginAuthenticator
  • Swift_Transport_Esmtp_Auth_PlainAuthenticator
  • Swift_Transport_Esmtp_AuthHandler
  • Swift_Transport_EsmtpTransport
  • Swift_Transport_FailoverTransport
  • Swift_Transport_LoadBalancedTransport
  • Swift_Transport_MailTransport
  • Swift_Transport_SendmailTransport
  • Swift_Transport_SimpleMailInvoker
  • Swift_Transport_StreamBuffer

Interfaces

  • Swift_Plugins_Logger
  • Swift_Plugins_Pop_Pop3Exception
  • Swift_Transport
  • Swift_Transport_Esmtp_Authenticator
  • Swift_Transport_EsmtpHandler
  • Swift_Transport_IoBuffer
  • Swift_Transport_MailInvoker
  • Swift_Transport_SmtpAgent
  • Swift_TransportException
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class Swift_Transport_SendmailTransport

SendmailTransport for sending mail through a sendmail/postfix (etc..) binary.

Supported modes are -bs and -t, with any additional flags desired. It is advised to use -bs mode since error reporting with -t mode is not possible.

Swift_Transport_AbstractSmtpTransport implements Swift_Transport
Extended by Swift_Transport_SendmailTransport

Direct known subclasses

Swift_SendmailTransport
Package: Swift\Transport
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/Transport/SendmailTransport.php
Methods summary
public
# __construct( Swift_Transport_IoBuffer $buf, Swift_Events_EventDispatcher $dispatcher )

Create a new SendmailTransport with $buf for I/O.

Create a new SendmailTransport with $buf for I/O.

Parameters

$buf
$dispatcher

Overrides

Swift_Transport_AbstractSmtpTransport::__construct()
public
# start( )

Start the standalone SMTP session if running in -bs mode.

Start the standalone SMTP session if running in -bs mode.

Overrides

Swift_Transport_AbstractSmtpTransport::start()
public Swift_Transport_SendmailTransport
# setCommand( string $command )

Set the command to invoke. If using -t mode you are strongly advised to include -oi or -i in the flags. For example: /usr/sbin/sendmail -oi -t Swift will append a -f flag if one is not present. The recommended mode is "-bs" since it is interactive and failure notifications are hence possible.

Set the command to invoke. If using -t mode you are strongly advised to include -oi or -i in the flags. For example: /usr/sbin/sendmail -oi -t Swift will append a -f flag if one is not present. The recommended mode is "-bs" since it is interactive and failure notifications are hence possible.

Parameters

$command

Returns

Swift_Transport_SendmailTransport
public string
# getCommand( )

Get the sendmail command which will be invoked.

Get the sendmail command which will be invoked.

Returns

string
public integer
# send( Swift_Mime_Message $message, string[] & $failedRecipients = null )

Send the given Message. Recipient/sender data will be retrieved from the Message API. The return value is the number of recipients who were accepted for delivery. NOTE: If using 'sendmail -t' you will not be aware of any failures until they bounce (i.e. send() will always return 100% success).

Send the given Message. Recipient/sender data will be retrieved from the Message API. The return value is the number of recipients who were accepted for delivery. NOTE: If using 'sendmail -t' you will not be aware of any failures until they bounce (i.e. send() will always return 100% success).

Parameters

$message
$failedRecipients
$failedRecipients to collect failures by-reference

Returns

integer

Overrides

Swift_Transport_AbstractSmtpTransport::send()
protected
# _getBufferParams( )

Get the params to initialize the buffer

Get the params to initialize the buffer

Methods inherited from Swift_Transport_AbstractSmtpTransport
__destruct(), _assertResponseCode(), _doDataCommand(), _doHeloCommand(), _doMailFromCommand(), _doRcptToCommand(), _getFullResponse(), _getReversePath(), _readGreeting(), _streamMessage(), _throwException(), executeCommand(), getBuffer(), getLocalDomain(), getSourceIp(), isStarted(), registerPlugin(), reset(), setLocalDomain(), setSourceIp(), stop()
Properties summary
private array $_params

Connection buffer parameters.

Connection buffer parameters.

# array( 'timeout' => 30, 'blocking' => 1, 'command' => '/usr/sbin/sendmail -bs', 'type' => Swift_Transport_IoBuffer::TYPE_PROCESS )
Properties inherited from Swift_Transport_AbstractSmtpTransport
$_buffer, $_domain, $_eventDispatcher, $_sourceIp, $_started
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen