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_MailTransport

Sends Messages using the mail() function.

It is advised that users do not use this transport if at all possible since a number of plugin features cannot be used in conjunction with this transport due to the internal interface in PHP itself.

The level of error reporting with this transport is incredibly weak, again due to limitations of PHP's internal mail() function. You'll get an all-or-nothing result from sending.

Swift_Transport_MailTransport implements Swift_Transport

Direct known subclasses

Swift_MailTransport
Package: Swift\Transport
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/Transport/MailTransport.php
Methods summary
public
# __construct( Swift_Transport_MailInvoker $invoker, Swift_Events_EventDispatcher $eventDispatcher )

Create a new MailTransport with the $log.

Create a new MailTransport with the $log.

Parameters

$invoker
$log
$eventDispatcher
public boolean
# isStarted( )

Not used.

Not used.

Returns

boolean

Implementation of

Swift_Transport::isStarted()
public
# start( )

Not used.

Not used.

Implementation of

Swift_Transport::start()
public
# stop( )

Not used.

Not used.

Implementation of

Swift_Transport::stop()
public Swift_Transport_MailTransport
# setExtraParams( string $params )

Set the additional parameters used on the mail() function.

Set the additional parameters used on the mail() function.

This string is formatted for sprintf() where %s is the sender address.

Parameters

$params

Returns

Swift_Transport_MailTransport
public string
# getExtraParams( )

Get the additional parameters used on the mail() function.

Get the additional parameters used on the mail() function.

This string is formatted for sprintf() where %s is the sender address.

Returns

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

Send the given Message.

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.

Parameters

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

Returns

integer

Implementation of

Swift_Transport::send()
public
# registerPlugin( Swift_Events_EventListener $plugin )

Register a plugin.

Register a plugin.

Parameters

$plugin

Implementation of

Swift_Transport::registerPlugin()
private
# _getReversePath( Swift_Mime_Message $message )

Determine the best-use reverse path for this message

Determine the best-use reverse path for this message

Properties summary
private string $_extraParams

Addtional parameters to pass to mail()

Addtional parameters to pass to mail()

# '-f%s'
private $_eventDispatcher

The event dispatcher from the plugin API

The event dispatcher from the plugin API

#
private $_invoker

An invoker that calls the mail() function

An invoker that calls the mail() function

#
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen