Showing preview only (3,994K chars total). Download the full file or copy to clipboard to get everything.
Repository: swiftmailer/swiftmailer
Branch: master
Commit: 47a449111b9c
Files: 364
Total size: 3.7 MB
Directory structure:
gitextract_gp3ij5u3/
├── .gitattributes
├── .github/
│ ├── ISSUE_TEMPLATE.md
│ ├── PULL_REQUEST_TEMPLATE.md
│ └── workflows/
│ └── tests.yml
├── .gitignore
├── .php_cs.dist
├── CHANGES
├── LICENSE
├── README.md
├── composer.json
├── doc/
│ ├── headers.rst
│ ├── index.rst
│ ├── introduction.rst
│ ├── japanese.rst
│ ├── messages.rst
│ ├── notes/
│ │ ├── CHARSETS
│ │ ├── rfc/
│ │ │ ├── rfc0821.txt
│ │ │ ├── rfc0822.txt
│ │ │ ├── rfc1341.txt
│ │ │ ├── rfc1521.txt
│ │ │ ├── rfc1854.txt
│ │ │ ├── rfc2015.txt
│ │ │ ├── rfc2045.txt
│ │ │ ├── rfc2046.txt
│ │ │ ├── rfc2047.txt
│ │ │ ├── rfc2048.txt
│ │ │ ├── rfc2049.txt
│ │ │ ├── rfc2183.txt
│ │ │ ├── rfc2222.txt
│ │ │ ├── rfc2231.txt
│ │ │ ├── rfc2234.txt
│ │ │ ├── rfc2440.txt
│ │ │ ├── rfc2487.txt
│ │ │ ├── rfc2554.txt
│ │ │ ├── rfc2821.txt
│ │ │ ├── rfc2822.txt
│ │ │ ├── rfc3156.txt
│ │ │ ├── rfc3676.txt
│ │ │ ├── rfc4505.txt
│ │ │ ├── rfc4616.txt
│ │ │ ├── rfc4870.txt
│ │ │ ├── rfc4871.txt
│ │ │ ├── rfc4880.txt
│ │ │ ├── rfc4954.txt
│ │ │ ├── rfc5751.txt
│ │ │ └── whats_where.txt
│ │ ├── rfc5672.txt
│ │ ├── rfc6376.txt
│ │ └── smtp.txt
│ ├── plugins.rst
│ └── sending.rst
├── lib/
│ ├── classes/
│ │ ├── Swift/
│ │ │ ├── AddressEncoder/
│ │ │ │ ├── IdnAddressEncoder.php
│ │ │ │ └── Utf8AddressEncoder.php
│ │ │ ├── AddressEncoder.php
│ │ │ ├── AddressEncoderException.php
│ │ │ ├── Attachment.php
│ │ │ ├── ByteStream/
│ │ │ │ ├── AbstractFilterableInputStream.php
│ │ │ │ ├── ArrayByteStream.php
│ │ │ │ ├── FileByteStream.php
│ │ │ │ └── TemporaryFileByteStream.php
│ │ │ ├── CharacterReader/
│ │ │ │ ├── GenericFixedWidthReader.php
│ │ │ │ ├── UsAsciiReader.php
│ │ │ │ └── Utf8Reader.php
│ │ │ ├── CharacterReader.php
│ │ │ ├── CharacterReaderFactory/
│ │ │ │ └── SimpleCharacterReaderFactory.php
│ │ │ ├── CharacterReaderFactory.php
│ │ │ ├── CharacterStream/
│ │ │ │ ├── ArrayCharacterStream.php
│ │ │ │ └── NgCharacterStream.php
│ │ │ ├── CharacterStream.php
│ │ │ ├── ConfigurableSpool.php
│ │ │ ├── DependencyContainer.php
│ │ │ ├── DependencyException.php
│ │ │ ├── EmbeddedFile.php
│ │ │ ├── Encoder/
│ │ │ │ ├── Base64Encoder.php
│ │ │ │ ├── QpEncoder.php
│ │ │ │ └── Rfc2231Encoder.php
│ │ │ ├── Encoder.php
│ │ │ ├── Events/
│ │ │ │ ├── CommandEvent.php
│ │ │ │ ├── CommandListener.php
│ │ │ │ ├── Event.php
│ │ │ │ ├── EventDispatcher.php
│ │ │ │ ├── EventListener.php
│ │ │ │ ├── EventObject.php
│ │ │ │ ├── ResponseEvent.php
│ │ │ │ ├── ResponseListener.php
│ │ │ │ ├── SendEvent.php
│ │ │ │ ├── SendListener.php
│ │ │ │ ├── SimpleEventDispatcher.php
│ │ │ │ ├── TransportChangeEvent.php
│ │ │ │ ├── TransportChangeListener.php
│ │ │ │ ├── TransportExceptionEvent.php
│ │ │ │ └── TransportExceptionListener.php
│ │ │ ├── FailoverTransport.php
│ │ │ ├── FileSpool.php
│ │ │ ├── FileStream.php
│ │ │ ├── Filterable.php
│ │ │ ├── IdGenerator.php
│ │ │ ├── Image.php
│ │ │ ├── InputByteStream.php
│ │ │ ├── IoException.php
│ │ │ ├── KeyCache/
│ │ │ │ ├── ArrayKeyCache.php
│ │ │ │ ├── DiskKeyCache.php
│ │ │ │ ├── KeyCacheInputStream.php
│ │ │ │ ├── NullKeyCache.php
│ │ │ │ └── SimpleKeyCacheInputStream.php
│ │ │ ├── KeyCache.php
│ │ │ ├── LoadBalancedTransport.php
│ │ │ ├── Mailer/
│ │ │ │ ├── ArrayRecipientIterator.php
│ │ │ │ └── RecipientIterator.php
│ │ │ ├── Mailer.php
│ │ │ ├── MemorySpool.php
│ │ │ ├── Message.php
│ │ │ ├── Mime/
│ │ │ │ ├── Attachment.php
│ │ │ │ ├── CharsetObserver.php
│ │ │ │ ├── ContentEncoder/
│ │ │ │ │ ├── Base64ContentEncoder.php
│ │ │ │ │ ├── NativeQpContentEncoder.php
│ │ │ │ │ ├── NullContentEncoder.php
│ │ │ │ │ ├── PlainContentEncoder.php
│ │ │ │ │ ├── QpContentEncoder.php
│ │ │ │ │ ├── QpContentEncoderProxy.php
│ │ │ │ │ └── RawContentEncoder.php
│ │ │ │ ├── ContentEncoder.php
│ │ │ │ ├── EmbeddedFile.php
│ │ │ │ ├── EncodingObserver.php
│ │ │ │ ├── Header.php
│ │ │ │ ├── HeaderEncoder/
│ │ │ │ │ ├── Base64HeaderEncoder.php
│ │ │ │ │ └── QpHeaderEncoder.php
│ │ │ │ ├── HeaderEncoder.php
│ │ │ │ ├── Headers/
│ │ │ │ │ ├── AbstractHeader.php
│ │ │ │ │ ├── DateHeader.php
│ │ │ │ │ ├── IdentificationHeader.php
│ │ │ │ │ ├── MailboxHeader.php
│ │ │ │ │ ├── OpenDKIMHeader.php
│ │ │ │ │ ├── ParameterizedHeader.php
│ │ │ │ │ ├── PathHeader.php
│ │ │ │ │ └── UnstructuredHeader.php
│ │ │ │ ├── IdGenerator.php
│ │ │ │ ├── MimePart.php
│ │ │ │ ├── SimpleHeaderFactory.php
│ │ │ │ ├── SimpleHeaderSet.php
│ │ │ │ ├── SimpleMessage.php
│ │ │ │ └── SimpleMimeEntity.php
│ │ │ ├── MimePart.php
│ │ │ ├── NullTransport.php
│ │ │ ├── OutputByteStream.php
│ │ │ ├── Plugins/
│ │ │ │ ├── AntiFloodPlugin.php
│ │ │ │ ├── BandwidthMonitorPlugin.php
│ │ │ │ ├── Decorator/
│ │ │ │ │ └── Replacements.php
│ │ │ │ ├── DecoratorPlugin.php
│ │ │ │ ├── ImpersonatePlugin.php
│ │ │ │ ├── Logger.php
│ │ │ │ ├── LoggerPlugin.php
│ │ │ │ ├── Loggers/
│ │ │ │ │ ├── ArrayLogger.php
│ │ │ │ │ └── EchoLogger.php
│ │ │ │ ├── MessageLogger.php
│ │ │ │ ├── Pop/
│ │ │ │ │ ├── Pop3Connection.php
│ │ │ │ │ └── Pop3Exception.php
│ │ │ │ ├── PopBeforeSmtpPlugin.php
│ │ │ │ ├── RedirectingPlugin.php
│ │ │ │ ├── Reporter.php
│ │ │ │ ├── ReporterPlugin.php
│ │ │ │ ├── Reporters/
│ │ │ │ │ ├── HitReporter.php
│ │ │ │ │ └── HtmlReporter.php
│ │ │ │ ├── Sleeper.php
│ │ │ │ ├── ThrottlerPlugin.php
│ │ │ │ └── Timer.php
│ │ │ ├── Preferences.php
│ │ │ ├── ReplacementFilterFactory.php
│ │ │ ├── RfcComplianceException.php
│ │ │ ├── SendmailTransport.php
│ │ │ ├── Signer.php
│ │ │ ├── Signers/
│ │ │ │ ├── BodySigner.php
│ │ │ │ ├── DKIMSigner.php
│ │ │ │ ├── DomainKeySigner.php
│ │ │ │ ├── HeaderSigner.php
│ │ │ │ ├── OpenDKIMSigner.php
│ │ │ │ └── SMimeSigner.php
│ │ │ ├── SmtpTransport.php
│ │ │ ├── Spool.php
│ │ │ ├── SpoolTransport.php
│ │ │ ├── StreamFilter.php
│ │ │ ├── StreamFilters/
│ │ │ │ ├── ByteArrayReplacementFilter.php
│ │ │ │ ├── StringReplacementFilter.php
│ │ │ │ └── StringReplacementFilterFactory.php
│ │ │ ├── SwiftException.php
│ │ │ ├── Transport/
│ │ │ │ ├── AbstractSmtpTransport.php
│ │ │ │ ├── Esmtp/
│ │ │ │ │ ├── Auth/
│ │ │ │ │ │ ├── CramMd5Authenticator.php
│ │ │ │ │ │ ├── LoginAuthenticator.php
│ │ │ │ │ │ ├── NTLMAuthenticator.php
│ │ │ │ │ │ ├── PlainAuthenticator.php
│ │ │ │ │ │ └── XOAuth2Authenticator.php
│ │ │ │ │ ├── AuthHandler.php
│ │ │ │ │ ├── Authenticator.php
│ │ │ │ │ ├── EightBitMimeHandler.php
│ │ │ │ │ └── SmtpUtf8Handler.php
│ │ │ │ ├── EsmtpHandler.php
│ │ │ │ ├── EsmtpTransport.php
│ │ │ │ ├── FailoverTransport.php
│ │ │ │ ├── IoBuffer.php
│ │ │ │ ├── LoadBalancedTransport.php
│ │ │ │ ├── NullTransport.php
│ │ │ │ ├── SendmailTransport.php
│ │ │ │ ├── SmtpAgent.php
│ │ │ │ ├── SpoolTransport.php
│ │ │ │ └── StreamBuffer.php
│ │ │ ├── Transport.php
│ │ │ └── TransportException.php
│ │ └── Swift.php
│ ├── dependency_maps/
│ │ ├── cache_deps.php
│ │ ├── message_deps.php
│ │ ├── mime_deps.php
│ │ └── transport_deps.php
│ ├── mime_types.php
│ ├── preferences.php
│ ├── swift_required.php
│ └── swiftmailer_generate_mimes_config.php
├── phpunit.xml.dist
└── tests/
├── IdenticalBinaryConstraint.php
├── StreamCollector.php
├── SwiftMailerSmokeTestCase.php
├── SwiftMailerTestCase.php
├── _samples/
│ ├── charsets/
│ │ ├── iso-2022-jp/
│ │ │ └── one.txt
│ │ ├── iso-8859-1/
│ │ │ └── one.txt
│ │ └── utf-8/
│ │ ├── one.txt
│ │ ├── three.txt
│ │ └── two.txt
│ ├── dkim/
│ │ ├── dkim.test.priv
│ │ └── dkim.test.pub
│ ├── files/
│ │ └── data.txt
│ └── smime/
│ ├── CA.srl
│ ├── ca.crt
│ ├── ca.key
│ ├── create-cert.sh
│ ├── encrypt.crt
│ ├── encrypt.key
│ ├── encrypt2.crt
│ ├── encrypt2.key
│ ├── intermediate.crt
│ ├── intermediate.key
│ ├── sign.crt
│ ├── sign.key
│ ├── sign2.crt
│ └── sign2.key
├── acceptance/
│ └── Swift/
│ ├── AttachmentAcceptanceTest.php
│ ├── ByteStream/
│ │ └── FileByteStreamAcceptanceTest.php
│ ├── CharacterReaderFactory/
│ │ └── SimpleCharacterReaderFactoryAcceptanceTest.php
│ ├── DependencyContainerAcceptanceTest.php
│ ├── EmbeddedFileAcceptanceTest.php
│ ├── Encoder/
│ │ ├── Base64EncoderAcceptanceTest.php
│ │ ├── QpEncoderAcceptanceTest.php
│ │ └── Rfc2231EncoderAcceptanceTest.php
│ ├── KeyCache/
│ │ ├── ArrayKeyCacheAcceptanceTest.php
│ │ └── DiskKeyCacheAcceptanceTest.php
│ ├── MessageAcceptanceTest.php
│ ├── Mime/
│ │ ├── AttachmentAcceptanceTest.php
│ │ ├── ContentEncoder/
│ │ │ ├── Base64ContentEncoderAcceptanceTest.php
│ │ │ ├── NativeQpContentEncoderAcceptanceTest.php
│ │ │ ├── PlainContentEncoderAcceptanceTest.php
│ │ │ └── QpContentEncoderAcceptanceTest.php
│ │ ├── EmbeddedFileAcceptanceTest.php
│ │ ├── HeaderEncoder/
│ │ │ └── Base64HeaderEncoderAcceptanceTest.php
│ │ ├── MimePartAcceptanceTest.php
│ │ └── SimpleMessageAcceptanceTest.php
│ ├── MimePartAcceptanceTest.php
│ └── Transport/
│ └── StreamBuffer/
│ ├── AbstractStreamBufferAcceptanceTest.php
│ ├── BasicSocketAcceptanceTest.php
│ ├── ProcessAcceptanceTest.php
│ ├── SocketTimeoutTest.php
│ ├── SslSocketAcceptanceTest.php
│ └── TlsSocketAcceptanceTest.php
├── acceptance.conf.php.default
├── bootstrap.php
├── bug/
│ └── Swift/
│ ├── Bug111Test.php
│ ├── Bug118Test.php
│ ├── Bug206Test.php
│ ├── Bug274Test.php
│ ├── Bug34Test.php
│ ├── Bug35Test.php
│ ├── Bug38Test.php
│ ├── Bug518Test.php
│ ├── Bug51Test.php
│ ├── Bug534Test.php
│ ├── Bug650Test.php
│ ├── Bug71Test.php
│ ├── Bug76Test.php
│ └── BugFileByteStreamConsecutiveReadCallsTest.php
├── fixtures/
│ └── MimeEntityFixture.php
├── smoke/
│ └── Swift/
│ └── Smoke/
│ ├── AttachmentSmokeTest.php
│ ├── BasicSmokeTest.php
│ ├── HtmlWithAttachmentSmokeTest.php
│ └── InternationalSmokeTest.php
├── smoke.conf.php.default
└── unit/
└── Swift/
├── ByteStream/
│ └── ArrayByteStreamTest.php
├── CharacterReader/
│ ├── GenericFixedWidthReaderTest.php
│ ├── UsAsciiReaderTest.php
│ └── Utf8ReaderTest.php
├── CharacterStream/
│ └── ArrayCharacterStreamTest.php
├── DependencyContainerTest.php
├── Encoder/
│ ├── Base64EncoderTest.php
│ ├── QpEncoderTest.php
│ └── Rfc2231EncoderTest.php
├── Events/
│ ├── CommandEventTest.php
│ ├── EventObjectTest.php
│ ├── ResponseEventTest.php
│ ├── SendEventTest.php
│ ├── SimpleEventDispatcherTest.php
│ ├── TransportChangeEventTest.php
│ └── TransportExceptionEventTest.php
├── KeyCache/
│ ├── ArrayKeyCacheTest.php
│ └── SimpleKeyCacheInputStreamTest.php
├── Mailer/
│ └── ArrayRecipientIteratorTest.php
├── MailerTest.php
├── MessageTest.php
├── Mime/
│ ├── AbstractMimeEntityTest.php
│ ├── AttachmentTest.php
│ ├── ContentEncoder/
│ │ ├── Base64ContentEncoderTest.php
│ │ ├── PlainContentEncoderTest.php
│ │ └── QpContentEncoderTest.php
│ ├── EmbeddedFileTest.php
│ ├── HeaderEncoder/
│ │ ├── Base64HeaderEncoderTest.php
│ │ └── QpHeaderEncoderTest.php
│ ├── Headers/
│ │ ├── DateHeaderTest.php
│ │ ├── IdentificationHeaderTest.php
│ │ ├── MailboxHeaderTest.php
│ │ ├── ParameterizedHeaderTest.php
│ │ ├── PathHeaderTest.php
│ │ └── UnstructuredHeaderTest.php
│ ├── IdGeneratorTest.php
│ ├── MimePartTest.php
│ ├── SimpleHeaderFactoryTest.php
│ ├── SimpleHeaderSetTest.php
│ ├── SimpleMessageTest.php
│ └── SimpleMimeEntityTest.php
├── Plugins/
│ ├── AntiFloodPluginTest.php
│ ├── BandwidthMonitorPluginTest.php
│ ├── DecoratorPluginTest.php
│ ├── LoggerPluginTest.php
│ ├── Loggers/
│ │ ├── ArrayLoggerTest.php
│ │ └── EchoLoggerTest.php
│ ├── PopBeforeSmtpPluginTest.php
│ ├── RedirectingPluginTest.php
│ ├── ReporterPluginTest.php
│ ├── Reporters/
│ │ ├── HitReporterTest.php
│ │ └── HtmlReporterTest.php
│ └── ThrottlerPluginTest.php
├── Signers/
│ ├── DKIMSignerTest.php
│ ├── OpenDKIMSignerTest.php
│ └── SMimeSignerTest.php
├── StreamFilters/
│ ├── ByteArrayReplacementFilterTest.php
│ ├── StringReplacementFilterFactoryTest.php
│ └── StringReplacementFilterTest.php
└── Transport/
├── AbstractSmtpEventSupportTest.php
├── AbstractSmtpTest.php
├── Esmtp/
│ ├── Auth/
│ │ ├── CramMd5AuthenticatorTest.php
│ │ ├── LoginAuthenticatorTest.php
│ │ ├── NTLMAuthenticatorTest.php
│ │ └── PlainAuthenticatorTest.php
│ └── AuthHandlerTest.php
├── EsmtpTransport/
│ └── ExtensionSupportTest.php
├── EsmtpTransportTest.php
├── FailoverTransportTest.php
├── LoadBalancedTransportTest.php
├── SendmailTransportTest.php
└── StreamBufferTest.php
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitattributes
================================================
*.crt -crlf
*.key -crlf
*.srl -crlf
*.pub -crlf
*.priv -crlf
*.txt -crlf
# ignore directories in the git-generated distributed .zip archive
/doc/notes export-ignore
/tests export-ignore
/phpunit.xml.dist export-ignore
================================================
FILE: .github/ISSUE_TEMPLATE.md
================================================
<!-- Please fill in this template according to your issue. -->
| Q | A
| ------------------- | -----
| Bug report? | yes/no
| Feature request? | yes/no
| RFC? | yes/no
| How used? | Standalone/Symfony/3party
| Swiftmailer version | x.y.z
| PHP version | x.y.z
### Observed behaviour
<!-- What does the code do? -->
### Expected behaviour
<!-- What should the code do? -->
### Example
<!-- Example to reproduce the issue. -->
================================================
FILE: .github/PULL_REQUEST_TEMPLATE.md
================================================
<!-- Please fill in this template according to the PR you're about to submit. -->
| Q | A
| ------------- | ---
| Bug fix? | yes/no
| New feature? | yes/no
| Doc update? | yes/no
| BC breaks? | yes/no
| Deprecations? | yes/no
| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->
| License | MIT
<!-- Replace this comment by the description of your issue. -->
================================================
FILE: .github/workflows/tests.yml
================================================
name: tests
on:
push:
pull_request:
jobs:
linux_tests:
runs-on: ubuntu-20.04
services:
mailcatcher:
image: dockage/mailcatcher:0.7.1
ports:
- 4456:1025
strategy:
fail-fast: true
matrix:
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
name: PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, intl
tools: composer:v2
coverage: none
- name: Prepare test config files
run: |
cp tests/acceptance.conf.php.default tests/acceptance.conf.php
cp tests/smoke.conf.php.default tests/smoke.conf.php
- name: Require Symfony PHPUnit Bridge 5.4 for PHP 8.1
if: ${{ matrix.php >= 8.1 }}
run: composer require symfony/phpunit-bridge:^5.4 --dev --prefer-dist --no-interaction --no-progress
- name: Install dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: vendor/bin/simple-phpunit --verbose
env:
SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT: 1
================================================
FILE: .gitignore
================================================
/.php_cs.cache
/.phpunit
/.phpunit.result.cache
/build/*
/composer.lock
/phpunit.xml
/tests/acceptance.conf.php
/tests/smoke.conf.php
/vendor/
================================================
FILE: .php_cs.dist
================================================
<?php
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHPUnit75Migration:risky' => true,
'php_unit_dedicate_assert' => ['target' => '5.6'],
'array_syntax' => ['syntax' => 'short'],
'php_unit_fqcn_annotation' => true,
'no_unreachable_default_argument_value' => false,
'braces' => ['allow_single_line_closure' => true],
'heredoc_to_nowdoc' => false,
'ordered_imports' => true,
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'all'],
'fopen_flags' => false,
])
->setRiskyAllowed(true)
->setFinder(PhpCsFixer\Finder::create()->in(__DIR__))
;
================================================
FILE: CHANGES
================================================
Changelog
=========
**Swiftmailer will stop being maintained at the end of November 2021.**
Please, move to Symfony Mailer at your earliest convenience.
Symfony Mailer is the next evolution of Swiftmailer.
It provides the same features with support for modern PHP code and support for third-party providers.
See https://symfony.com/doc/current/mailer.html for more information.
6.3.0 (2021-10-18)
------------------
* Fix support for PHP 8.1
6.2.7 (2021-03-09)
------------------
* Allow egulias/email-validator 3.1+
6.2.6 (2021-03-05)
------------------
* Fix Bcc support
6.2.5 (2021-01-12)
------------------
* Don't trust properties at destruct time
* Remove invalid PHPDocs param in EventDispatcher interface
* Bump license year
* Removes PHP version from README
6.2.4 (2020-12-08)
------------------
* Prevent flushing of the bubble queue when event handler raises another event
* Add support for PHP 8
* Code cleanups
6.2.3 (2019-11-12)
------------------
* no changes
6.2.2 (2019-11-12)
------------------
* fixed compat with PHP 7.4
* fixed error message when connecting to a stream raises an error before connect()
6.2.1 (2019-04-21)
------------------
* reverted "deprecated Swift_CharacterStream_ArrayCharacterStream and Swift_CharacterStream_NgCharacterStream in favor of Swift_CharacterStream_CharacterStream"
6.2.0 (2019-03-10)
------------------
* added support for symfony/polyfill-intl-dn
* deprecated Swift_CharacterStream_ArrayCharacterStream and Swift_CharacterStream_NgCharacterStream in favor of Swift_CharacterStream_CharacterStream
6.1.3 (2018-09-11)
------------------
* added auto-start to the SMTP transport when sending a message
* tweaked error message when the response from an SMTP server is empty
* fixed missing property in Swift_Mime_IdGenerator
* exposed original body content type with Swift_Mime_SimpleMimeEntity::getBodyContentType()
* fixed typo in variable name in Swift_AddressEncoder_IdnAddressEncoder
* fixed return type in MessageLogger
* fixed missing property addressEncoder in SimpleHeaderFactory class
6.1.2 (2018-07-13)
------------------
* handled recipient errors when pipelining
6.1.1 (2018-07-04)
------------------
* removed hard dependency on an IDN encoder
6.1.0 (2018-07-02)
------------------
* added address encoder exceptions during send
* added support for bubbling up authenticator error messages
* added support for non-ASCII email addresses
* introduced new dependencies: transport.smtphandlers and transport.authhandlers
* deprecated Swift_Signers_OpenDKIMSigner; use Swift_Signers_DKIMSigner instead
* added support for SMTP pipelining
* added Swift_Transport_Esmtp_EightBitMimeHandler
* fixed startTLS only allowed tls1.0, now allowed: tls1.0, tls1.1, tls1.2
6.0.2 (2017-09-30)
------------------
* fixed DecoratorPlugin
* removed usage of getmypid()
6.0.1 (2017-05-20)
------------------
* fixed BC break that can be avoided easily
6.0.0 (2017-05-19)
------------------
* added Swift_Transport::ping()
* removed Swift_Mime_HeaderFactory, Swift_Mime_HeaderSet, Swift_Mime_Message, Swift_Mime_MimeEntity,
and Swift_Mime_ParameterizedHeader interfaces
* removed Swift_MailTransport and Swift_Transport_MailTransport
* removed Swift_Encoding
* removed the Swift_Transport_MailInvoker interface and Swift_Transport_SimpleMailInvoker class
* removed the Swift_SignedMessage class
* removed newInstance() methods everywhere
* methods operating on Date header now use DateTimeImmutable object instead of Unix timestamp;
Swift_Mime_Headers_DateHeader::getTimestamp()/setTimestamp() renamed to getDateTime()/setDateTime()
* bumped minimum version to PHP 7.0
* removed Swift_Validate and replaced by egulias/email-validator
5.4.9 (2018-01-23)
------------------
* no changes, last version of the 5.x series
5.4.8 (2017-05-01)
------------------
* fixed encoding inheritance in addPart()
* fixed sorting MIME children when their types are equal
5.4.7 (2017-04-20)
------------------
* fixed NTLMAuthenticator clobbering bcmath scale
5.4.6 (2017-02-13)
------------------
* removed exceptions thrown in destructors as they lead to fatal errors
* switched to use sha256 by default in DKIM as per the RFC
* fixed an 'Undefined variable: pipes' PHP notice
* fixed long To headers when using the mail transport
* fixed NTLMAuthenticator when no domain is passed with the username
* prevented fatal error during unserialization of a message
* fixed a PHP warning when sending a message that has a length of a multiple of 8192
5.4.5 (2016-12-29)
------------------
* SECURITY FIX: fixed CVE-2016-10074 by disallowing potentially unsafe shell characters
Prior to 5.4.5, the mail transport (Swift_Transport_MailTransport) was vulnerable to passing
arbitrary shell arguments if the "From", "ReturnPath" or "Sender" header came
from a non-trusted source, potentially allowing Remote Code Execution
* deprecated the mail transport
5.4.4 (2016-11-23)
------------------
* reverted escaping command-line args to mail (PHP mail() function already does it)
5.4.3 (2016-07-08)
------------------
* fixed SimpleHeaderSet::has()/get() when the 0 index is removed
* removed the need to have mcrypt installed
* fixed broken MIME header encoding with quotes/colons and non-ascii chars
* allowed mail transport send for messages without To header
* fixed PHP 7 support
5.4.2 (2016-05-01)
------------------
* fixed support for IPv6 sockets
* added auto-retry when sending messages from the memory spool
* fixed consecutive read calls in Swift_ByteStream_FileByteStream
* added support for iso-8859-15 encoding
* fixed PHP mail extra params on missing reversePath
* added methods to set custom stream context options
* fixed charset changes in QpContentEncoderProxy
* added return-path header to the ignoredHeaders list of DKIMSigner
* fixed crlf for subject using mail
* fixed add soft line break only when necessary
* fixed escaping command-line args to mail
5.4.1 (2015-06-06)
------------------
* made Swiftmailer exceptions confirm to PHP base exception constructor signature
* fixed MAIL FROM & RCPT TO headers to be RFC compliant
5.4.0 (2015-03-14)
------------------
* added the possibility to add extra certs to PKCS#7 signature
* fix base64 encoding with streams
* added a new RESULT_SPOOLED status for SpoolTransport
* fixed getBody() on attachments when called more than once
* removed dots from generated filenames in filespool
5.3.1 (2014-12-05)
------------------
* fixed cloning of messages with attachments
5.3.0 (2014-10-04)
------------------
* fixed cloning when using signers
* reverted removal of Swift_Encoding
* drop support for PHP 5.2.x
5.2.2 (2014-09-20)
------------------
* fixed Japanese support
* fixed the memory spool when the message changes when in the pool
* added support for cloning messages
* fixed PHP warning in the redirect plugin
* changed the way to and cc-ed email are sent to only use one transaction
5.2.1 (2014-06-13)
------------------
* SECURITY FIX: fixed CLI escaping when using sendmail as a transport
Prior to 5.2.1, the sendmail transport (Swift_Transport_SendmailTransport)
was vulnerable to an arbitrary shell execution if the "From" header came
from a non-trusted source and no "Return-Path" is configured.
* fixed parameter in DKIMSigner
* fixed compatibility with PHP < 5.4
5.2.0 (2014-05-08)
------------------
* fixed Swift_ByteStream_FileByteStream::read() to match to the specification
* fixed from-charset and to-charset arguments in mbstring_convert_encoding() usages
* fixed infinite loop in StreamBuffer
* fixed NullTransport to return the number of ignored emails instead of 0
* Use phpunit and mockery for unit testing (realityking)
5.1.0 (2014-03-18)
------------------
* fixed data writing to stream when sending large messages
* added support for libopendkim (https://github.com/xdecock/php-opendkim)
* merged SignedMessage and Message
* added Gmail XOAuth2 authentication
* updated the list of known mime types
* added NTLM authentication
5.0.3 (2013-12-03)
------------------
* fixed double-dot bug
* fixed DKIM signer
5.0.2 (2013-08-30)
------------------
* handled correct exception type while reading IoBuffer output
5.0.1 (2013-06-17)
------------------
* changed the spool to only start the transport when a mail has to be sent
* fixed compatibility with PHP 5.2
* fixed LICENSE file
5.0.0 (2013-04-30)
------------------
* changed the license from LGPL to MIT
4.3.1 (2013-04-11)
------------------
* removed usage of the native QP encoder when the charset is not UTF-8
* fixed usage of uniqid to avoid collisions
* made a performance improvement when tokenizing large headers
* fixed usage of the PHP native QP encoder on PHP 5.4.7+
4.3.0 (2013-01-08)
------------------
* made the temporary directory configurable via the TMPDIR env variable
* added S/MIME signer and encryption support
4.2.2 (2012-10-25)
------------------
* added the possibility to throttle messages per second in ThrottlerPlugin (mostly for Amazon SES)
* switched mime.qpcontentencoder to automatically use the PHP native encoder on PHP 5.4.7+
* allowed specifying a whitelist with regular expressions in RedirectingPlugin
4.2.1 (2012-07-13)
------------------
* changed the coding standards to PSR-1/2
* fixed issue with autoloading
* added NativeQpContentEncoder to enhance performance (for PHP 5.3+)
4.2.0 (2012-06-29)
------------------
* added documentation about how to use the Japanese support introduced in 4.1.8
* added a way to override the default configuration in a lazy way
* changed the PEAR init script to lazy-load the initialization
* fixed a bug when calling Swift_Preferences before anything else (regression introduced in 4.1.8)
4.1.8 (2012-06-17)
------------------
* added Japanese iso-2022-jp support
* changed the init script to lazy-load the initialization
* fixed docblocks (@id) which caused some problems with libraries parsing the dobclocks
* fixed Swift_Mime_Headers_IdentificationHeader::setId() when passed an array of ids
* fixed encoding of email addresses in headers
* added replacements setter to the Decorator plugin
4.1.7 (2012-04-26)
------------------
* fixed QpEncoder safeMapShareId property
4.1.6 (2012-03-23)
------------------
* reduced the size of serialized Messages
4.1.5 (2012-01-04)
------------------
* enforced Swift_Spool::queueMessage() to return a Boolean
* made an optimization to the memory spool: start the transport only when required
* prevented stream_socket_client() from generating an error and throw a Swift_TransportException instead
* fixed a PHP warning when calling to mail() when safe_mode is off
* many doc tweaks
4.1.4 (2011-12-16)
------------------
* added a memory spool (Swift_MemorySpool)
* fixed too many opened files when sending emails with attachments
4.1.3 (2011-10-27)
------------------
* added STARTTLS support
* added missing @return tags on fluent methods
* added a MessageLogger plugin that logs all sent messages
* added composer.json
4.1.2 (2011-09-13)
------------------
* fixed wrong detection of magic_quotes_runtime
* fixed fatal errors when no To or Subject header has been set
* fixed charset on parameter header continuations
* added documentation about how to install Swiftmailer from the PEAR channel
* fixed various typos and markup problem in the documentation
* fixed warning when cache directory does not exist
* fixed "slashes are escaped" bug
* changed require_once() to require() in autoload
4.1.1 (2011-07-04)
------------------
* added missing file in PEAR package
4.1.0 (2011-06-30)
------------------
* documentation has been converted to ReST
4.1.0 RC1 (2011-06-17)
----------------------
New features:
* changed the Decorator Plugin to allow replacements in all headers
* added Swift_Mime_Grammar and Swift_Validate to validate an email address
* modified the autoloader to lazy-initialize Swiftmailer
* removed Swift_Mailer::batchSend()
* added NullTransport
* added new plugins: RedirectingPlugin and ImpersonatePlugin
* added a way to send messages asynchronously (Spool)
================================================
FILE: LICENSE
================================================
Copyright (c) 2013-2021 Fabien Potencier
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
================================================
FILE: README.md
================================================
Swift Mailer
------------
**Swiftmailer will stop being maintained at the end of November 2021.**
Please, move to [Symfony Mailer](https://symfony.com/doc/current/mailer.html) at your earliest convenience.
[Symfony Mailer](https://symfony.com/doc/current/mailer.html) is the next evolution of Swiftmailer.
It provides the same features with support for modern PHP code and support for third-party providers.
Swift Mailer is a component based mailing solution for PHP.
It is released under the MIT license.
Swift Mailer is highly object-oriented by design and lends itself
to use in complex web application with a great deal of flexibility.
For full details on usage, read the [documentation](https://swiftmailer.symfony.com/docs/introduction.html).
Sponsors
--------
<div>
<a href="https://blackfire.io/docs/introduction?utm_source=swiftmailer&utm_medium=github_readme&utm_campaign=logo">
<img src="https://static.blackfire.io/assets/intemporals/logo/png/blackfire-io_secondary_horizontal_transparent.png?1" width="255px" alt="Blackfire.io">
</a>
</div>
================================================
FILE: composer.json
================================================
{
"name": "swiftmailer/swiftmailer",
"type": "library",
"description": "Swiftmailer, free feature-rich PHP mailer",
"keywords": ["mail","mailer","email"],
"homepage": "https://swiftmailer.symfony.com",
"license": "MIT",
"authors": [
{
"name": "Chris Corbyn"
},
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
}
],
"require": {
"php": ">=7.0.0",
"egulias/email-validator": "^2.0|^3.1",
"symfony/polyfill-iconv": "^1.0",
"symfony/polyfill-mbstring": "^1.0",
"symfony/polyfill-intl-idn": "^1.10"
},
"require-dev": {
"mockery/mockery": "^1.0",
"symfony/phpunit-bridge": "^4.4|^5.4"
},
"suggest": {
"ext-intl": "Needed to support internationalized email addresses"
},
"autoload": {
"files": ["lib/swift_required.php"]
},
"autoload-dev": {
"psr-0": { "Swift_": "tests/unit" }
},
"extra": {
"branch-alias": {
"dev-master": "6.2-dev"
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
================================================
FILE: doc/headers.rst
================================================
Message Headers
===============
Sometimes you'll want to add your own headers to a message or modify/remove
headers that are already present. You work with the message's HeaderSet to do
this.
Header Basics
-------------
All MIME entities in Swift Mailer -- including the message itself -- store
their headers in a single object called a HeaderSet. This HeaderSet is
retrieved with the ``getHeaders()`` method.
As mentioned in the previous chapter, everything that forms a part of a message
in Swift Mailer is a MIME entity that is represented by an instance of
``Swift_Mime_SimpleMimeEntity``. This includes -- most notably -- the message
object itself, attachments, MIME parts and embedded images. Each of these MIME
entities consists of a body and a set of headers that describe the body.
For all of the "standard" headers in these MIME entities, such as the
``Content-Type``, there are named methods for working with them, such as
``setContentType()`` and ``getContentType()``. This is because headers are a
moderately complex area of the library. Each header has a slightly different
required structure that it must meet in order to comply with the standards that
govern email (and that are checked by spam blockers etc).
You fetch the HeaderSet from a MIME entity like so::
$message = new Swift_Message();
// Fetch the HeaderSet from a Message object
$headers = $message->getHeaders();
$attachment = Swift_Attachment::fromPath('document.pdf');
// Fetch the HeaderSet from an attachment object
$headers = $attachment->getHeaders();
The job of the HeaderSet is to contain and manage instances of Header objects.
Depending upon the MIME entity the HeaderSet came from, the contents of the
HeaderSet will be different, since an attachment for example has a different
set of headers to those in a message.
You can find out what the HeaderSet contains with a quick loop, dumping out the
names of the headers::
foreach ($headers->getAll() as $header) {
printf("%s<br />\n", $header->getFieldName());
}
/*
Content-Transfer-Encoding
Content-Type
MIME-Version
Date
Message-ID
From
Subject
To
*/
You can also dump out the rendered HeaderSet by calling its ``toString()``
method::
echo $headers->toString();
/*
Message-ID: <1234869991.499a9ee7f1d5e@swift.generated>
Date: Tue, 17 Feb 2009 22:26:31 +1100
Subject: Awesome subject!
From: sender@example.org
To: recipient@example.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
*/
Where the complexity comes in is when you want to modify an existing header.
This complexity comes from the fact that each header can be of a slightly
different type (such as a Date header, or a header that contains email
addresses, or a header that has key-value parameters on it!). Each header in
the HeaderSet is an instance of ``Swift_Mime_Header``. They all have common
functionality, but knowing exactly what type of header you're working with will
allow you a little more control.
You can determine the type of header by comparing the return value of its
``getFieldType()`` method with the constants ``TYPE_TEXT``,
``TYPE_PARAMETERIZED``, ``TYPE_DATE``, ``TYPE_MAILBOX``, ``TYPE_ID`` and
``TYPE_PATH`` which are defined in ``Swift_Mime_Header``::
foreach ($headers->getAll() as $header) {
switch ($header->getFieldType()) {
case Swift_Mime_Header::TYPE_TEXT: $type = 'text';
break;
case Swift_Mime_Header::TYPE_PARAMETERIZED: $type = 'parameterized';
break;
case Swift_Mime_Header::TYPE_MAILBOX: $type = 'mailbox';
break;
case Swift_Mime_Header::TYPE_DATE: $type = 'date';
break;
case Swift_Mime_Header::TYPE_ID: $type = 'ID';
break;
case Swift_Mime_Header::TYPE_PATH: $type = 'path';
break;
}
printf("%s: is a %s header<br />\n", $header->getFieldName(), $type);
}
/*
Content-Transfer-Encoding: is a text header
Content-Type: is a parameterized header
MIME-Version: is a text header
Date: is a date header
Message-ID: is a ID header
From: is a mailbox header
Subject: is a text header
To: is a mailbox header
*/
Headers can be removed from the set, modified within the set, or added to the
set.
The following sections show you how to work with the HeaderSet and explain the
details of each implementation of ``Swift_Mime_Header`` that may exist within
the HeaderSet.
Header Types
------------
Because all headers are modeled on different data (dates, addresses, text!)
there are different types of Header in Swift Mailer. Swift Mailer attempts to
categorize all possible MIME headers into more general groups, defined by a
small number of classes.
Text Headers
~~~~~~~~~~~~
Text headers are the simplest type of Header. They contain textual information
with no special information included within it -- for example the Subject
header in a message.
There's nothing particularly interesting about a text header, though it is
probably the one you'd opt to use if you need to add a custom header to a
message. It represents text just like you'd think it does. If the text contains
characters that are not permitted in a message header (such as new lines, or
non-ascii characters) then the header takes care of encoding the text so that
it can be used.
No header -- including text headers -- in Swift Mailer is vulnerable to
header-injection attacks. Swift Mailer breaks any attempt at header injection
by encoding the dangerous data into a non-dangerous form.
It's easy to add a new text header to a HeaderSet. You do this by calling the
HeaderSet's ``addTextHeader()`` method::
$message = new Swift_Message();
$headers = $message->getHeaders();
$headers->addTextHeader('Your-Header-Name', 'the header value');
Changing the value of an existing text header is done by calling it's
``setValue()`` method::
$subject = $message->getHeaders()->get('Subject');
$subject->setValue('new subject');
When output via ``toString()``, a text header produces something like the
following::
$subject = $message->getHeaders()->get('Subject');
$subject->setValue('amazing subject line');
echo $subject->toString();
/*
Subject: amazing subject line
*/
If the header contains any characters that are outside of the US-ASCII range
however, they will be encoded. This is nothing to be concerned about since mail
clients will decode them back::
$subject = $message->getHeaders()->get('Subject');
$subject->setValue('contains – dash');
echo $subject->toString();
/*
Subject: contains =?utf-8?Q?=E2=80=93?= dash
*/
Parameterized Headers
~~~~~~~~~~~~~~~~~~~~~
Parameterized headers are text headers that contain key-value parameters
following the textual content. The Content-Type header of a message is a
parameterized header since it contains charset information after the content
type.
The parameterized header type is a special type of text header. It extends the
text header by allowing additional information to follow it. All of the methods
from text headers are available in addition to the methods described here.
Adding a parameterized header to a HeaderSet is done by using the
``addParameterizedHeader()`` method which takes a text value like
``addTextHeader()`` but it also accepts an associative array of key-value
parameters::
$message = new Swift_Message();
$headers = $message->getHeaders();
$headers->addParameterizedHeader(
'Header-Name', 'header value',
['foo' => 'bar']
);
To change the text value of the header, call it's ``setValue()`` method just as
you do with text headers.
To change the parameters in the header, call the header's ``setParameters()``
method or the ``setParameter()`` method (note the pluralization)::
$type = $message->getHeaders()->get('Content-Type');
// setParameters() takes an associative array
$type->setParameters([
'name' => 'file.txt',
'charset' => 'iso-8859-1'
]);
// setParameter() takes two args for $key and $value
$type->setParameter('charset', 'iso-8859-1');
When output via ``toString()``, a parameterized header produces something like
the following::
$type = $message->getHeaders()->get('Content-Type');
$type->setValue('text/html');
$type->setParameter('charset', 'utf-8');
echo $type->toString();
/*
Content-Type: text/html; charset=utf-8
*/
If the header contains any characters that are outside of the US-ASCII range
however, they will be encoded, just like they are for text headers. This is
nothing to be concerned about since mail clients will decode them back.
Likewise, if the parameters contain any non-ascii characters they will be
encoded so that they can be transmitted safely::
$attachment = new Swift_Attachment();
$disp = $attachment->getHeaders()->get('Content-Disposition');
$disp->setValue('attachment');
$disp->setParameter('filename', 'report–may.pdf');
echo $disp->toString();
/*
Content-Disposition: attachment; filename*=utf-8''report%E2%80%93may.pdf
*/
Date Headers
~~~~~~~~~~~~
Date headers contains an RFC 2822 formatted date (i.e. what PHP's ``date('r')``
returns). They are used anywhere a date or time is needed to be presented as a
message header.
The data on which a date header is modeled as a DateTimeImmutable object. The
object is used to create a correctly structured RFC 2822 formatted date with
timezone such as ``Tue, 17 Feb 2009 22:26:31 +1100``.
The obvious place this header type is used is in the ``Date:`` header of the
message itself.
It's easy to add a new date header to a HeaderSet. You do this by calling the
HeaderSet's ``addDateHeader()`` method::
$message = new Swift_Message();
$headers = $message->getHeaders();
$headers->addDateHeader('Your-Header', new DateTimeImmutable('3 days ago'));
Changing the value of an existing date header is done by calling it's
``setDateTime()`` method::
$date = $message->getHeaders()->get('Date');
$date->setDateTime(new DateTimeImmutable());
When output via ``toString()``, a date header produces something like the
following::
$date = $message->getHeaders()->get('Date');
echo $date->toString();
/*
Date: Wed, 18 Feb 2009 13:35:02 +1100
*/
Mailbox (e-mail address) Headers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mailbox headers contain one or more email addresses, possibly with personalized
names attached to them. The data on which they are modeled is represented by an
associative array of email addresses and names.
Mailbox headers are probably the most complex header type to understand in
Swift Mailer because they accept their input as an array which can take various
forms, as described in the previous chapter.
All of the headers that contain e-mail addresses in a message -- with the
exception of ``Return-Path:`` which has a stricter syntax -- use this header
type. That is, ``To:``, ``From:`` etc.
You add a new mailbox header to a HeaderSet by calling the HeaderSet's
``addMailboxHeader()`` method::
$message = new Swift_Message();
$headers = $message->getHeaders();
$headers->addMailboxHeader('Your-Header-Name', [
'person1@example.org' => 'Person Name One',
'person2@example.org',
'person3@example.org',
'person4@example.org' => 'Another named person'
]);
Changing the value of an existing mailbox header is done by calling it's
``setNameAddresses()`` method::
$to = $message->getHeaders()->get('To');
$to->setNameAddresses([
'joe@example.org' => 'Joe Bloggs',
'john@example.org' => 'John Doe',
'no-name@example.org'
]);
If you don't wish to concern yourself with the complicated accepted input
formats accepted by ``setNameAddresses()`` as described in the previous chapter
and you only want to set one or more addresses (not names) then you can just
use the ``setAddresses()`` method instead::
$to = $message->getHeaders()->get('To');
$to->setAddresses([
'joe@example.org',
'john@example.org',
'no-name@example.org'
]);
.. note::
Both methods will accept the above input format in practice.
If all you want to do is set a single address in the header, you can use a
string as the input parameter to ``setAddresses()`` and/or
``setNameAddresses()``::
$to = $message->getHeaders()->get('To');
$to->setAddresses('joe-bloggs@example.org');
When output via ``toString()``, a mailbox header produces something like the
following::
$to = $message->getHeaders()->get('To');
$to->setNameAddresses([
'person1@example.org' => 'Name of Person',
'person2@example.org',
'person3@example.org' => 'Another Person'
]);
echo $to->toString();
/*
To: Name of Person <person1@example.org>, person2@example.org, Another Person
<person3@example.org>
*/
Internationalized domains are automatically converted to IDN encoding::
$to = $message->getHeaders()->get('To');
$to->setAddresses('joe@ëxämple.org');
echo $to->toString();
/*
To: joe@xn--xmple-gra1c.org
*/
ID Headers
~~~~~~~~~~
ID headers contain identifiers for the entity (or the message). The most
notable ID header is the Message-ID header on the message itself.
An ID that exists inside an ID header looks more-or-less less like an email
address. For example, ``<1234955437.499becad62ec2@example.org>``. The part to
the left of the @ sign is usually unique, based on the current time and some
random factor. The part on the right is usually a domain name.
Any ID passed to the header's ``setId()`` method absolutely MUST conform to
this structure, otherwise you'll get an Exception thrown at you by Swift Mailer
(a ``Swift_RfcComplianceException``). This is to ensure that the generated
email complies with relevant RFC documents and therefore is less likely to be
blocked as spam.
It's easy to add a new ID header to a HeaderSet. You do this by calling the
HeaderSet's ``addIdHeader()`` method::
$message = new Swift_Message();
$headers = $message->getHeaders();
$headers->addIdHeader('Your-Header-Name', '123456.unqiue@example.org');
Changing the value of an existing ID header is done by calling its ``setId()``
method::
$msgId = $message->getHeaders()->get('Message-ID');
$msgId->setId(time() . '.' . uniqid('thing') . '@example.org');
When output via ``toString()``, an ID header produces something like the
following::
$msgId = $message->getHeaders()->get('Message-ID');
echo $msgId->toString();
/*
Message-ID: <1234955437.499becad62ec2@example.org>
*/
Path Headers
~~~~~~~~~~~~
Path headers are like very-restricted mailbox headers. They contain a single
email address with no associated name. The Return-Path header of a message is a
path header.
You add a new path header to a HeaderSet by calling the HeaderSet's
``addPathHeader()`` method::
$message = new Swift_Message();
$headers = $message->getHeaders();
$headers->addPathHeader('Your-Header-Name', 'person@example.org');
Changing the value of an existing path header is done by calling its
``setAddress()`` method::
$return = $message->getHeaders()->get('Return-Path');
$return->setAddress('my-address@example.org');
When output via ``toString()``, a path header produces something like the
following::
$return = $message->getHeaders()->get('Return-Path');
$return->setAddress('person@example.org');
echo $return->toString();
/*
Return-Path: <person@example.org>
*/
Header Operations
-----------------
Working with the headers in a message involves knowing how to use the methods
on the HeaderSet and on the individual Headers within the HeaderSet.
Adding new Headers
~~~~~~~~~~~~~~~~~~
New headers can be added to the HeaderSet by using one of the provided
``add..Header()`` methods.
The added header will appear in the message when it is sent::
// Adding a custom header to a message
$message = new Swift_Message();
$headers = $message->getHeaders();
$headers->addTextHeader('X-Mine', 'something here');
// Adding a custom header to an attachment
$attachment = Swift_Attachment::fromPath('/path/to/doc.pdf');
$attachment->getHeaders()->addDateHeader('X-Created-Time', time());
Retrieving Headers
~~~~~~~~~~~~~~~~~~
Headers are retrieved through the HeaderSet's ``get()`` and ``getAll()``
methods::
$headers = $message->getHeaders();
// Get the To: header
$toHeader = $headers->get('To');
// Get all headers named "X-Foo"
$fooHeaders = $headers->getAll('X-Foo');
// Get the second header named "X-Foo"
$foo = $headers->get('X-Foo', 1);
// Get all headers that are present
$all = $headers->getAll();
When using ``get()`` a single header is returned that matches the name (case
insensitive) that is passed to it. When using ``getAll()`` with a header name,
an array of headers with that name are returned. Calling ``getAll()`` with no
arguments returns an array of all headers present in the entity.
.. note::
It's valid for some headers to appear more than once in a message (e.g.
the Received header). For this reason ``getAll()`` exists to fetch all
headers with a specified name. In addition, ``get()`` accepts an optional
numerical index, starting from zero to specify which header you want more
specifically.
.. note::
If you want to modify the contents of the header and you don't know for
sure what type of header it is then you may need to check the type by
calling its ``getFieldType()`` method.
Check if a Header Exists
~~~~~~~~~~~~~~~~~~~~~~~~
You can check if a named header is present in a HeaderSet by calling its
``has()`` method::
$headers = $message->getHeaders();
// Check if the To: header exists
if ($headers->has('To')) {
echo 'To: exists';
}
// Check if an X-Foo header exists twice (i.e. check for the 2nd one)
if ($headers->has('X-Foo', 1)) {
echo 'Second X-Foo header exists';
}
If the header exists, ``true`` will be returned or ``false`` if not.
.. note::
It's valid for some headers to appear more than once in a message (e.g.
the Received header). For this reason ``has()`` accepts an optional
numerical index, starting from zero to specify which header you want to
check more specifically.
Removing Headers
~~~~~~~~~~~~~~~~
Removing a Header from the HeaderSet is done by calling the HeaderSet's
``remove()`` or ``removeAll()`` methods::
$headers = $message->getHeaders();
// Remove the Subject: header
$headers->remove('Subject');
// Remove all X-Foo headers
$headers->removeAll('X-Foo');
// Remove only the second X-Foo header
$headers->remove('X-Foo', 1);
When calling ``remove()`` a single header will be removed. When calling
``removeAll()`` all headers with the given name will be removed. If no headers
exist with the given name, no errors will occur.
.. note::
It's valid for some headers to appear more than once in a message (e.g.
the Received header). For this reason ``remove()`` accepts an optional
numerical index, starting from zero to specify which header you want to
check more specifically. For the same reason, ``removeAll()`` exists to
remove all headers that have the given name.
Modifying a Header's Content
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To change a Header's content you should know what type of header it is and then
call it's appropriate setter method. All headers also have a
``setFieldBodyModel()`` method that accepts a mixed parameter and delegates to
the correct setter::
The header will be updated inside the HeaderSet and the changes will be seen
when the message is sent::
$headers = $message->getHeaders();
// Change the Subject: header
$subj = $headers->get('Subject');
$subj->setValue('new subject here');
// Change the To: header
$to = $headers->get('To');
$to->setNameAddresses([
'person@example.org' => 'Person',
'thing@example.org'
]);
// Using the setFieldBodyModel() just delegates to the correct method
// So here to calls setNameAddresses()
$to->setFieldBodyModel([
'person@example.org' => 'Person',
'thing@example.org'
]);
================================================
FILE: doc/index.rst
================================================
Swiftmailer
===========
.. toctree::
:maxdepth: 2
introduction
messages
headers
sending
plugins
japanese
================================================
FILE: doc/introduction.rst
================================================
Swift Mailer: A feature-rich PHP Mailer
=======================================
Swift Mailer is a component based library for sending e-mails from PHP applications.
**Swift Mailer will stop being maintained at the end of November 2021.**
Please, move to `Symfony Mailer <https://symfony.com/doc/current/mailer.html>`_ at your earliest convenience.
`Symfony Mailer <https://symfony.com/doc/current/mailer.html>`_ is the next evolution of Swift Mailer.
It provides the same features with support for modern PHP code and support for third-party providers.
System Requirements
-------------------
Swift Mailer supports PHP 7.0 to PHP 8.1 included (``proc_*`` functions must be
available).
Swift Mailer does not work when used with function overloading as implemented
by ``mbstring`` when ``mbstring.func_overload`` is set to ``2``.
Installation
------------
The recommended way to install Swiftmailer is via Composer:
.. code-block:: bash
$ composer require "swiftmailer/swiftmailer:^6.0"
Basic Usage
-----------
Here is the simplest way to send emails with Swift Mailer::
require_once '/path/to/vendor/autoload.php';
// Create the Transport
$transport = (new Swift_SmtpTransport('smtp.example.org', 25))
->setUsername('your username')
->setPassword('your password')
;
// Create the Mailer using your created Transport
$mailer = new Swift_Mailer($transport);
// Create a message
$message = (new Swift_Message('Wonderful Subject'))
->setFrom(['john@doe.com' => 'John Doe'])
->setTo(['receiver@domain.org', 'other@domain.org' => 'A name'])
->setBody('Here is the message itself')
;
// Send the message
$result = $mailer->send($message);
You can also use Sendmail as a transport::
// Sendmail
$transport = new Swift_SendmailTransport('/usr/sbin/sendmail -bs');
Getting Help
------------
For general support, use `Stack Overflow <https://stackoverflow.com>`_.
For bug reports and feature requests, create a new ticket in `GitHub
<https://github.com/swiftmailer/swiftmailer/issues>`_.
================================================
FILE: doc/japanese.rst
================================================
Using Swift Mailer for Japanese Emails
======================================
To send emails in Japanese, you need to tweak the default configuration.
Call the ``Swift::init()`` method with the following code as early as possible
in your code::
Swift::init(function () {
Swift_DependencyContainer::getInstance()
->register('mime.qpheaderencoder')
->asAliasOf('mime.base64headerencoder');
Swift_Preferences::getInstance()->setCharset('iso-2022-jp');
});
/* rest of code goes here */
That's all!
================================================
FILE: doc/messages.rst
================================================
Creating Messages
=================
Creating messages in Swift Mailer is done by making use of the various MIME
entities provided with the library. Complex messages can be quickly created
with very little effort.
Quick Reference
---------------
You can think of creating a Message as being similar to the steps you perform
when you click the Compose button in your mail client. You give it a subject,
specify some recipients, add any attachments and write your message::
// Create the message
$message = (new Swift_Message())
// Give the message a subject
->setSubject('Your subject')
// Set the From address with an associative array
->setFrom(['john@doe.com' => 'John Doe'])
// Set the To addresses with an associative array (setTo/setCc/setBcc)
->setTo(['receiver@domain.org', 'other@domain.org' => 'A name'])
// Give it a body
->setBody('Here is the message itself')
// And optionally an alternative body
->addPart('<q>Here is the message itself</q>', 'text/html')
// Optionally add any attachments
->attach(Swift_Attachment::fromPath('my-document.pdf'))
;
Message Basics
--------------
A message is a container for anything you want to send to somebody else. There
are several basic aspects of a message that you should know.
An e-mail message is made up of several relatively simple entities that are
combined in different ways to achieve different results. All of these entities
have the same fundamental outline but serve a different purpose. The Message
itself can be defined as a MIME entity, an Attachment is a MIME entity, all
MIME parts are MIME entities -- and so on!
The basic units of each MIME entity -- be it the Message itself, or an
Attachment -- are its Headers and its body:
.. code-block:: text
Header-Name: A header value
Other-Header: Another value
The body content itself
The Headers of a MIME entity, and its body must conform to some strict
standards defined by various RFC documents. Swift Mailer ensures that these
specifications are followed by using various types of object, including
Encoders and different Header types to generate the entity.
The Structure of a Message
~~~~~~~~~~~~~~~~~~~~~~~~~~
Of all of the MIME entities, a message -- ``Swift_Message`` is the largest and
most complex. It has many properties that can be updated and it can contain
other MIME entities -- attachments for example -- nested inside it.
A Message has a lot of different Headers which are there to present information
about the message to the recipients' mail client. Most of these headers will be
familiar to the majority of users, but we'll list the basic ones. Although it's
possible to work directly with the Headers of a Message (or other MIME entity),
the standard Headers have accessor methods provided to abstract away the
complex details for you. For example, although the Date on a message is written
with a strict format, you only need to pass a DateTimeInterface instance to
``setDate()``.
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------+
| Header | Description | Accessors |
+===============================+====================================================================================================================================+=============================================+
| ``Message-ID`` | Identifies this message with a unique ID, usually containing the domain name and time generated | ``getId()`` / ``setId()`` |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------+
| ``Return-Path`` | Specifies where bounces should go (Swift Mailer reads this for other uses) | ``getReturnPath()`` / ``setReturnPath()`` |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------+
| ``From`` | Specifies the address of the person who the message is from. This can be multiple addresses if multiple people wrote the message. | ``getFrom()`` / ``setFrom()`` |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------+
| ``Sender`` | Specifies the address of the person who physically sent the message (higher precedence than ``From:``) | ``getSender()`` / ``setSender()`` |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------+
| ``To`` | Specifies the addresses of the intended recipients | ``getTo()`` / ``setTo()`` |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------+
| ``Cc`` | Specifies the addresses of recipients who will be copied in on the message | ``getCc()`` / ``setCc()`` |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------+
| ``Bcc`` | Specifies the addresses of recipients who the message will be blind-copied to. Other recipients will not be aware of these copies. | ``getBcc()`` / ``setBcc()`` |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------+
| ``Reply-To`` | Specifies the address where replies are sent to | ``getReplyTo()`` / ``setReplyTo()`` |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------+
| ``Subject`` | Specifies the subject line that is displayed in the recipients' mail client | ``getSubject()`` / ``setSubject()`` |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------+
| ``Date`` | Specifies the date at which the message was sent | ``getDate()`` / ``setDate()`` |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------+
| ``Content-Type`` | Specifies the format of the message (usually ``text/plain`` or ``text/html``) | ``getContentType()`` / ``setContentType()`` |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------+
| ``Content-Transfer-Encoding`` | Specifies the encoding scheme in the message | ``getEncoder()`` / ``setEncoder()`` |
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------+
Working with a Message Object
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Although there are a lot of available methods on a message object, you only
need to make use of a small subset of them. Usually you'll use
``setSubject()``, ``setTo()`` and ``setFrom()`` before setting the body of your
message with ``setBody()``::
$message = new Swift_Message();
$message->setSubject('My subject');
All MIME entities (including a message) have a ``toString()`` method that you
can call if you want to take a look at what is going to be sent. For example,
if you ``echo $message->toString();`` you would see something like this:
.. code-block:: text
Message-ID: <1230173678.4952f5eeb1432@swift.generated>
Date: Thu, 25 Dec 2008 13:54:38 +1100
Subject: Example subject
From: Chris Corbyn <chris@w3style.co.uk>
To: Receiver Name <recipient@example.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Here is the message
We'll take a closer look at the methods you use to create your message in the
following sections.
Adding Content to Your Message
------------------------------
Rich content can be added to messages in Swift Mailer with relative ease by
calling methods such as ``setSubject()``, ``setBody()``, ``addPart()`` and
``attach()``.
Setting the Subject Line
~~~~~~~~~~~~~~~~~~~~~~~~
The subject line, displayed in the recipients' mail client can be set with the
``setSubject()`` method, or as a parameter to ``new Swift_Message()``::
// Pass it as a parameter when you create the message
$message = new Swift_Message('My amazing subject');
// Or set it after like this
$message->setSubject('My amazing subject');
Setting the Body Content
~~~~~~~~~~~~~~~~~~~~~~~~
The body of the message -- seen when the user opens the message -- is specified
by calling the ``setBody()`` method. If an alternative body is to be included,
``addPart()`` can be used.
The body of a message is the main part that is read by the user. Often people
want to send a message in HTML format (``text/html``), other times people want
to send in plain text (``text/plain``), or sometimes people want to send both
versions and allow the recipient to choose how they view the message.
As a rule of thumb, if you're going to send a HTML email, always include a
plain-text equivalent of the same content so that users who prefer to read
plain text can do so.
If the recipient's mail client offers preferences for displaying text vs. HTML
then the mail client will present that part to the user where available. In
other cases the mail client will display the "best" part it can - usually HTML
if you've included HTML::
// Pass it as a parameter when you create the message
$message = new Swift_Message('Subject here', 'My amazing body');
// Or set it after like this
$message->setBody('My <em>amazing</em> body', 'text/html');
// Add alternative parts with addPart()
$message->addPart('My amazing body in plain text', 'text/plain');
Attaching Files
---------------
Attachments are downloadable parts of a message and can be added by calling the
``attach()`` method on the message. You can add attachments that exist on disk,
or you can create attachments on-the-fly.
Although we refer to files sent over e-mails as "attachments" -- because
they're attached to the message -- lots of other parts of the message are
actually "attached" even if we don't refer to these parts as attachments.
File attachments are created by the ``Swift_Attachment`` class and then
attached to the message via the ``attach()`` method on it. For all of the
"every day" MIME types such as all image formats, word documents, PDFs and
spreadsheets you don't need to explicitly set the content-type of the
attachment, though it would do no harm to do so. For less common formats you
should set the content-type -- which we'll cover in a moment.
Attaching Existing Files
~~~~~~~~~~~~~~~~~~~~~~~~
Files that already exist, either on disk or at a URL can be attached to a
message with just one line of code, using ``Swift_Attachment::fromPath()``.
You can attach files that exist locally, or if your PHP installation has
``allow_url_fopen`` turned on you can attach files from other
websites.
The attachment will be presented to the recipient as a downloadable file with
the same filename as the one you attached::
// Create the attachment
// * Note that you can technically leave the content-type parameter out
$attachment = Swift_Attachment::fromPath('/path/to/image.jpg', 'image/jpeg');
// Attach it to the message
$message->attach($attachment);
// The two statements above could be written in one line instead
$message->attach(Swift_Attachment::fromPath('/path/to/image.jpg'));
// You can attach files from a URL if allow_url_fopen is on in php.ini
$message->attach(Swift_Attachment::fromPath('http://site.tld/logo.png'));
Setting the Filename
~~~~~~~~~~~~~~~~~~~~
Usually you don't need to explicitly set the filename of an attachment because
the name of the attached file will be used by default, but if you want to set
the filename you use the ``setFilename()`` method of the Attachment.
The attachment will be attached in the normal way, but meta-data sent inside
the email will rename the file to something else::
// Create the attachment and call its setFilename() method
$attachment = Swift_Attachment::fromPath('/path/to/image.jpg')
->setFilename('cool.jpg');
// Because there's a fluid interface, you can do this in one statement
$message->attach(
Swift_Attachment::fromPath('/path/to/image.jpg')->setFilename('cool.jpg')
);
Attaching Dynamic Content
~~~~~~~~~~~~~~~~~~~~~~~~~
Files that are generated at runtime, such as PDF documents or images created
via GD can be attached directly to a message without writing them out to disk.
Use ``Swift_Attachment`` directly.
The attachment will be presented to the recipient as a downloadable file
with the filename and content-type you specify::
// Create your file contents in the normal way, but don't write them to disk
$data = create_my_pdf_data();
// Create the attachment with your data
$attachment = new Swift_Attachment($data, 'my-file.pdf', 'application/pdf');
// Attach it to the message
$message->attach($attachment);
// You can alternatively use method chaining to build the attachment
$attachment = (new Swift_Attachment())
->setFilename('my-file.pdf')
->setContentType('application/pdf')
->setBody($data)
;
.. note::
If you would usually write the file to disk anyway you should just attach
it with ``Swift_Attachment::fromPath()`` since this will use less memory.
Changing the Disposition
~~~~~~~~~~~~~~~~~~~~~~~~
Attachments just appear as files that can be saved to the Desktop if desired.
You can make attachment appear inline where possible by using the
``setDisposition()`` method of an attachment.
The attachment will be displayed within the email viewing window if the mail
client knows how to display it::
// Create the attachment and call its setDisposition() method
$attachment = Swift_Attachment::fromPath('/path/to/image.jpg')
->setDisposition('inline');
// Because there's a fluid interface, you can do this in one statement
$message->attach(
Swift_Attachment::fromPath('/path/to/image.jpg')->setDisposition('inline')
);
.. note::
If you try to create an inline attachment for a non-displayable file type
such as a ZIP file, the mail client should just present the attachment as
normal.
Embedding Inline Media Files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Often, people want to include an image or other content inline with a HTML
message. It's easy to do this with HTML linking to remote resources, but this
approach is usually blocked by mail clients. Swift Mailer allows you to embed
your media directly into the message.
Mail clients usually block downloads from remote resources because this
technique was often abused as a mean of tracking who opened an email. If
you're sending a HTML email and you want to include an image in the message
another approach you can take is to embed the image directly.
Swift Mailer makes embedding files into messages extremely streamlined. You
embed a file by calling the ``embed()`` method of the message,
which returns a value you can use in a ``src`` or
``href`` attribute in your HTML.
Just like with attachments, it's possible to embed dynamically generated
content without having an existing file available.
The embedded files are sent in the email as a special type of attachment that
has a unique ID used to reference them within your HTML attributes. On mail
clients that do not support embedded files they may appear as attachments.
Although this is commonly done for images, in theory it will work for any
displayable (or playable) media type. Support for other media types (such as
video) is dependent on the mail client however.
Embedding Existing Files
........................
Files that already exist, either on disk or at a URL can be embedded in a
message with just one line of code, using ``Swift_EmbeddedFile::fromPath()``.
You can embed files that exist locally, or if your PHP installation has
``allow_url_fopen`` turned on you can embed files from other websites.
The file will be displayed with the message inline with the HTML wherever its ID
is used as a ``src`` attribute::
// Create the message
$message = new Swift_Message('My subject');
// Set the body
$message->setBody(
'<html>' .
' <body>' .
' Here is an image <img src="' . // Embed the file
$message->embed(Swift_Image::fromPath('image.png')) .
'" alt="Image" />' .
' Rest of message' .
' </body>' .
'</html>',
'text/html' // Mark the content-type as HTML
);
// You can embed files from a URL if allow_url_fopen is on in php.ini
$message->setBody(
'<html>' .
' <body>' .
' Here is an image <img src="' .
$message->embed(Swift_Image::fromPath('http://site.tld/logo.png')) .
'" alt="Image" />' .
' Rest of message' .
' </body>' .
'</html>',
'text/html'
);
.. note::
``Swift_Image`` and ``Swift_EmbeddedFile`` are just aliases of one another.
``Swift_Image`` exists for semantic purposes.
.. note::
You can embed files in two stages if you prefer. Just capture the return
value of ``embed()`` in a variable and use that as the ``src`` attribute::
// If placing the embed() code inline becomes cumbersome
// it's easy to do this in two steps
$cid = $message->embed(Swift_Image::fromPath('image.png'));
$message->setBody(
'<html>' .
' <body>' .
' Here is an image <img src="' . $cid . '" alt="Image" />' .
' Rest of message' .
' </body>' .
'</html>',
'text/html' // Mark the content-type as HTML
);
Embedding Dynamic Content
.........................
Images that are generated at runtime, such as images created via GD can be
embedded directly to a message without writing them out to disk. Use the
standard ``new Swift_Image()`` method.
The file will be displayed with the message inline with the HTML wherever its ID
is used as a ``src`` attribute::
// Create your file contents in the normal way, but don't write them to disk
$img_data = create_my_image_data();
// Create the message
$message = new Swift_Message('My subject');
// Set the body
$message->setBody(
'<html>' .
' <body>' .
' Here is an image <img src="' . // Embed the file
$message->embed(new Swift_Image($img_data, 'image.jpg', 'image/jpeg')) .
'" alt="Image" />' .
' Rest of message' .
' </body>' .
'</html>',
'text/html' // Mark the content-type as HTML
);
.. note::
``Swift_Image`` and ``Swift_EmbeddedFile`` are just aliases of one another.
``Swift_Image`` exists for semantic purposes.
.. note::
You can embed files in two stages if you prefer. Just capture the return
value of ``embed()`` in a variable and use that as the ``src`` attribute::
// If placing the embed() code inline becomes cumbersome
// it's easy to do this in two steps
$cid = $message->embed(new Swift_Image($img_data, 'image.jpg', 'image/jpeg'));
$message->setBody(
'<html>' .
' <body>' .
' Here is an image <img src="' . $cid . '" alt="Image" />' .
' Rest of message' .
' </body>' .
'</html>',
'text/html' // Mark the content-type as HTML
);
Adding Recipients to Your Message
---------------------------------
Recipients are specified within the message itself via ``setTo()``, ``setCc()``
and ``setBcc()``. Swift Mailer reads these recipients from the message when it
gets sent so that it knows where to send the message to.
Message recipients are one of three types:
* ``To:`` recipients -- the primary recipients (required)
* ``Cc:`` recipients -- receive a copy of the message (optional)
* ``Bcc:`` recipients -- hidden from other recipients (optional)
Each type can contain one, or several addresses. It's possible to list only the
addresses of the recipients, or you can personalize the address by providing
the real name of the recipient.
Make sure to add only valid email addresses as recipients. If you try to add an
invalid email address with ``setTo()``, ``setCc()`` or ``setBcc()``, Swift
Mailer will throw a ``Swift_RfcComplianceException``.
If you add recipients automatically based on a data source that may contain
invalid email addresses, you can prevent possible exceptions by validating the
addresses using::
use Egulias\EmailValidator\EmailValidator;
use Egulias\EmailValidator\Validation\RFCValidation;
$validator = new EmailValidator();
$validator->isValid("example@example.com", new RFCValidation()); //true
and only adding addresses that validate. Another way would be to wrap your ``setTo()``, ``setCc()`` and
``setBcc()`` calls in a try-catch block and handle the
``Swift_RfcComplianceException`` in the catch block.
.. sidebar:: Syntax for Addresses
If you only wish to refer to a single email address (for example your
``From:`` address) then you can just use a string::
$message->setFrom('some@address.tld');
If you want to include a name then you must use an associative array::
$message->setFrom(['some@address.tld' => 'The Name']);
If you want to include multiple addresses then you must use an array::
$message->setTo(['some@address.tld', 'other@address.tld']);
You can mix personalized (addresses with a name) and non-personalized
addresses in the same list by mixing the use of associative and
non-associative array syntax::
$message->setTo([
'recipient-with-name@example.org' => 'Recipient Name One',
'no-name@example.org', // Note that this is not a key-value pair
'named-recipient@example.org' => 'Recipient Name Two'
]);
Setting ``To:`` Recipients
~~~~~~~~~~~~~~~~~~~~~~~~~~
``To:`` recipients are required in a message and are set with the ``setTo()``
or ``addTo()`` methods of the message.
To set ``To:`` recipients, create the message object using either ``new
Swift_Message( ... )``, then call the ``setTo()`` method with a complete array
of addresses, or use the ``addTo()`` method to iteratively add recipients.
The ``setTo()`` method accepts input in various formats as described earlier in
this chapter. The ``addTo()`` method takes either one or two parameters. The
first being the email address and the second optional parameter being the name
of the recipient.
``To:`` recipients are visible in the message headers and will be seen by the
other recipients::
// Using setTo() to set all recipients in one go
$message->setTo([
'person1@example.org',
'person2@otherdomain.org' => 'Person 2 Name',
'person3@example.org',
'person4@example.org',
'person5@example.org' => 'Person 5 Name'
]);
.. note::
Multiple calls to ``setTo()`` will not add new recipients -- each
call overrides the previous calls. If you want to iteratively add
recipients, use the ``addTo()`` method::
// Using addTo() to add recipients iteratively
$message->addTo('person1@example.org');
$message->addTo('person2@example.org', 'Person 2 Name');
Setting ``Cc:`` Recipients
~~~~~~~~~~~~~~~~~~~~~~~~~~
``Cc:`` recipients are set with the ``setCc()`` or ``addCc()`` methods of the
message.
To set ``Cc:`` recipients, create the message object using either ``new
Swift_Message( ... )``, then call the ``setCc()`` method with a complete array
of addresses, or use the ``addCc()`` method to iteratively add recipients.
The ``setCc()`` method accepts input in various formats as described earlier in
this chapter. The ``addCc()`` method takes either one or two parameters. The
first being the email address and the second optional parameter being the name
of the recipient.
``Cc:`` recipients are visible in the message headers and will be seen by the
other recipients::
// Using setTo() to set all recipients in one go
$message->setTo([
'person1@example.org',
'person2@otherdomain.org' => 'Person 2 Name',
'person3@example.org',
'person4@example.org',
'person5@example.org' => 'Person 5 Name'
]);
.. note::
Multiple calls to ``setCc()`` will not add new recipients -- each call
overrides the previous calls. If you want to iteratively add Cc:
recipients, use the ``addCc()`` method::
// Using addCc() to add recipients iteratively
$message->addCc('person1@example.org');
$message->addCc('person2@example.org', 'Person 2 Name');
Setting ``Bcc:`` Recipients
~~~~~~~~~~~~~~~~~~~~~~~~~~~
``Bcc:`` recipients receive a copy of the message without anybody else knowing
it, and are set with the ``setBcc()`` or ``addBcc()`` methods of the message.
To set ``Bcc:`` recipients, create the message object using either ``new
Swift_Message( ... )``, then call the ``setBcc()`` method with a complete array
of addresses, or use the ``addBcc()`` method to iteratively add recipients.
The ``setBcc()`` method accepts input in various formats as described earlier
in this chapter. The ``addBcc()`` method takes either one or two parameters.
The first being the email address and the second optional parameter being the
name of the recipient.
Only the individual ``Bcc:`` recipient will see their address in the message
headers. Other recipients (including other ``Bcc:`` recipients) will not see
the address::
// Using setBcc() to set all recipients in one go
$message->setBcc([
'person1@example.org',
'person2@otherdomain.org' => 'Person 2 Name',
'person3@example.org',
'person4@example.org',
'person5@example.org' => 'Person 5 Name'
]);
.. note::
Multiple calls to ``setBcc()`` will not add new recipients -- each call
overrides the previous calls. If you want to iteratively add Bcc:
recipients, use the ``addBcc()`` method::
// Using addBcc() to add recipients iteratively
$message->addBcc('person1@example.org');
$message->addBcc('person2@example.org', 'Person 2 Name');
.. sidebar:: Internationalized Email Addresses
Traditionally only ASCII characters have been allowed in email addresses.
With the introduction of internationalized domain names (IDNs), non-ASCII
characters may appear in the domain name. By default, Swiftmailer encodes
such domain names in Punycode (e.g. xn--xample-ova.invalid). This is
compatible with all mail servers.
RFC 6531 introduced an SMTP extension, SMTPUTF8, that allows non-ASCII
characters in email addresses on both sides of the @ sign. To send to such
addresses, your outbound SMTP server must support the SMTPUTF8 extension.
You should use the ``Swift_AddressEncoder_Utf8AddressEncoder`` address
encoder and enable the ``Swift_Transport_Esmtp_SmtpUtf8Handler`` SMTP
extension handler::
$smtpUtf8 = new Swift_Transport_Esmtp_SmtpUtf8Handler();
$transport->setExtensionHandlers([$smtpUtf8]);
$utf8Encoder = new Swift_AddressEncoder_Utf8AddressEncoder();
$transport->setAddressEncoder($utf8Encoder);
Specifying Sender Details
-------------------------
An email must include information about who sent it. Usually this is managed by
the ``From:`` address, however there are other options.
The sender information is contained in three possible places:
* ``From:`` -- the address(es) of who wrote the message (required)
* ``Sender:`` -- the address of the single person who sent the message
(optional)
* ``Return-Path:`` -- the address where bounces should go to (optional)
You must always include a ``From:`` address by using ``setFrom()`` on the
message. Swift Mailer will use this as the default ``Return-Path:`` unless
otherwise specified.
The ``Sender:`` address exists because the person who actually sent the email
may not be the person who wrote the email. It has a higher precedence than the
``From:`` address and will be used as the ``Return-Path:`` unless otherwise
specified.
Setting the ``From:`` Address
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A ``From:`` address is required and is set with the ``setFrom()`` method of the
message. ``From:`` addresses specify who actually wrote the email, and usually
who sent it.
What most people probably don't realize is that you can have more than one
``From:`` address if more than one person wrote the email -- for example if an
email was put together by a committee.
The ``From:`` address(es) are visible in the message headers and will be seen
by the recipients.
.. note::
If you set multiple ``From:`` addresses then you absolutely must set a
``Sender:`` address to indicate who physically sent the message.
::
// Set a single From: address
$message->setFrom('your@address.tld');
// Set a From: address including a name
$message->setFrom(['your@address.tld' => 'Your Name']);
// Set multiple From: addresses if multiple people wrote the email
$message->setFrom([
'person1@example.org' => 'Sender One',
'person2@example.org' => 'Sender Two'
]);
Setting the ``Sender:`` Address
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A ``Sender:`` address specifies who sent the message and is set with the
``setSender()`` method of the message.
The ``Sender:`` address is visible in the message headers and will be seen by
the recipients.
This address will be used as the ``Return-Path:`` unless otherwise specified.
.. note::
If you set multiple ``From:`` addresses then you absolutely must set a
``Sender:`` address to indicate who physically sent the message.
You must not set more than one sender address on a message because it's not
possible for more than one person to send a single message::
$message->setSender('your@address.tld');
Setting the ``Return-Path:`` (Bounce) Address
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The ``Return-Path:`` address specifies where bounce notifications should be
sent and is set with the ``setReturnPath()`` method of the message.
You can only have one ``Return-Path:`` and it must not include a personal name.
Bounce notifications will be sent to this address::
$message->setReturnPath('bounces@address.tld');
Signed/Encrypted Message
------------------------
To increase the integrity/security of a message it is possible to sign and/or
encrypt an message using one or multiple signers.
S/MIME
~~~~~~
S/MIME can sign and/or encrypt a message using the OpenSSL extension.
When signing a message, the signer creates a signature of the entire content of
the message (including attachments).
The certificate and private key must be PEM encoded, and can be either created
using for example OpenSSL or obtained at an official Certificate Authority (CA).
**The recipient must have the CA certificate in the list of trusted issuers in
order to verify the signature.**
**Make sure the certificate supports emailProtection.**
When using OpenSSL this can done by the including the *-addtrust
emailProtection* parameter when creating the certificate::
$message = new Swift_Message();
$smimeSigner = new Swift_Signers_SMimeSigner();
$smimeSigner->setSignCertificate('/path/to/certificate.pem', '/path/to/private-key.pem');
$message->attachSigner($smimeSigner);
When the private key is secured using a passphrase use the following instead::
$message = new Swift_Message();
$smimeSigner = new Swift_Signers_SMimeSigner();
$smimeSigner->setSignCertificate('/path/to/certificate.pem', ['/path/to/private-key.pem', 'passphrase']);
$message->attachSigner($smimeSigner);
By default the signature is added as attachment, making the message still
readable for mailing agents not supporting signed messages.
Storing the message as binary is also possible but not recommended::
$smimeSigner->setSignCertificate('/path/to/certificate.pem', '/path/to/private-key.pem', PKCS7_BINARY);
When encrypting the message (also known as enveloping), the entire message
(including attachments) is encrypted using a certificate, and the recipient can
then decrypt the message using corresponding private key.
Encrypting ensures nobody can read the contents of the message without the
private key.
Normally the recipient provides a certificate for encrypting and keeping the
decryption key private.
Using both signing and encrypting is also possible::
$message = new Swift_Message();
$smimeSigner = new Swift_Signers_SMimeSigner();
$smimeSigner->setSignCertificate('/path/to/sign-certificate.pem', '/path/to/private-key.pem');
$smimeSigner->setEncryptCertificate('/path/to/encrypt-certificate.pem');
$message->attachSigner($smimeSigner);
The used encryption cipher can be set as the second parameter of
setEncryptCertificate()
See https://secure.php.net/manual/openssl.ciphers for a list of supported ciphers.
By default the message is first signed and then encrypted, this can be changed
by adding::
$smimeSigner->setSignThenEncrypt(false);
**Changing this is not recommended as most mail agents don't support this
none-standard way.**
Only when having trouble with sign then encrypt method, this should be changed.
Requesting a Read Receipt
-------------------------
It is possible to request a read-receipt to be sent to an address when the
email is opened. To request a read receipt set the address with
``setReadReceiptTo()``::
$message->setReadReceiptTo('your@address.tld');
When the email is opened, if the mail client supports it a notification will be
sent to this address.
.. note::
Read receipts won't work for the majority of recipients since many mail
clients auto-disable them. Those clients that will send a read receipt
will make the user aware that one has been requested.
Setting the Character Set
-------------------------
The character set of the message (and its MIME parts) is set with the
``setCharset()`` method. You can also change the global default of UTF-8 by
working with the ``Swift_Preferences`` class.
Swift Mailer will default to the UTF-8 character set unless otherwise
overridden. UTF-8 will work in most instances since it includes all of the
standard US keyboard characters in addition to most international characters.
It is absolutely vital however that you know what character set your message
(or it's MIME parts) are written in otherwise your message may be received
completely garbled.
There are two places in Swift Mailer where you can change the character set:
* In the ``Swift_Preferences`` class
* On each individual message and/or MIME part
To set the character set of your Message:
* Change the global UTF-8 setting by calling
``Swift_Preferences::setCharset()``; or
* Call the ``setCharset()`` method on the message or the MIME part::
// Approach 1: Change the global setting (suggested)
Swift_Preferences::getInstance()->setCharset('iso-8859-2');
// Approach 2: Call the setCharset() method of the message
$message = (new Swift_Message())
->setCharset('iso-8859-2');
// Approach 3: Specify the charset when setting the body
$message->setBody('My body', 'text/html', 'iso-8859-2');
// Approach 4: Specify the charset for each part added
$message->addPart('My part', 'text/plain', 'iso-8859-2');
Setting the Encoding
--------------------
The body of each MIME part needs to be encoded. Binary attachments are encoded
in base64 using the ``Swift_Mime_ContentEncoder_Base64ContentEncoder``. Text
parts are traditionally encoded in quoted-printable using
``Swift_Mime_ContentEncoder_QpContentEncoder`` or
``Swift_Mime_ContentEncoder_NativeQpContentEncoder``.
The encoder of the message or MIME part is set with the ``setEncoder()`` method.
Quoted-printable is the safe choice, because it converts 8-bit text as 7-bit.
Most modern SMTP servers support 8-bit text. This is advertised via the 8BITMIME
SMTP extension. If your outbound SMTP server supports this SMTP extension, and
it supports downgrading the message (e.g converting to quoted-printable on the
fly) when delivering to a downstream server that does not support the extension,
you may wish to use ``Swift_Mime_ContentEncoder_PlainContentEncoder`` in
``8bit`` mode instead. This has the advantage that the source data is slightly
more readable and compact, especially for non-Western languages.
$eightBitMime = new Swift_Transport_Esmtp_EightBitMimeHandler();
$transport->setExtensionHandlers([$eightBitMime]);
$plainEncoder = new Swift_Mime_ContentEncoder_PlainContentEncoder('8bit');
$message->setEncoder($plainEncoder);
Setting the Line Length
-----------------------
The length of lines in a message can be changed by using the
``setMaxLineLength()`` method on the message::
$message->setMaxLineLength(1000);
Swift Mailer defaults to using 78 characters per line in a message. This is
done for historical reasons and so that the message can be easily viewed in
plain-text terminals
Lines that are longer than the line length specified will be wrapped between
words.
.. note::
You should never set a maximum length longer than 1000 characters
according to RFC 2822. Doing so could have unspecified side-effects such
as truncating parts of your message when it is transported between SMTP
servers.
Setting the Message Priority
----------------------------
You can change the priority of the message with ``setPriority()``. Setting the
priority will not change the way your email is sent -- it is purely an
indicative setting for the recipient::
// Indicate "High" priority
$message->setPriority(2);
The priority of a message is an indication to the recipient what significance
it has. Swift Mailer allows you to set the priority by calling the
``setPriority`` method. This method takes an integer value between 1 and 5:
* ``Swift_Mime_SimpleMessage::PRIORITY_HIGHEST``: 1
* ``Swift_Mime_SimpleMessage::PRIORITY_HIGH``: 2
* ``Swift_Mime_SimpleMessage::PRIORITY_NORMAL``: 3
* ``Swift_Mime_SimpleMessage::PRIORITY_LOW``: 4
* ``Swift_Mime_SimpleMessage::PRIORITY_LOWEST``: 5
::
// Or use the constant to be more explicit
$message->setPriority(Swift_Mime_SimpleMessage::PRIORITY_HIGH);
================================================
FILE: doc/notes/CHARSETS
================================================
Following is a list of character sets along with their widths:
--------------------------------------------------------------
1 Octet 8bit:
-------------
Windows 125* (CP125*)
CP*
ANSI
ISO-8859-* (IEC-8859-*)
Macintosh (Mac OS Roman)
KOI8-U (potentially KOI*8-*)
KOI8-R
MIK
Cork (T1)
ISCII
VISCII
1 Octet 7bit:
-------------
US-ASCII
K0I7
2 octets 16 bit:
----------------
UCS-2
UTF-16* (UTF-16BE etc)
4-octets 32 bit:
----------------
UCS-4
UTF-32
Variable-width:
----------------------------
Big5 - http://en.wikipedia.org/wiki/Big5 (1-2 bytes: 00-7f=1, 81-fe=2)
HKSCS - http://en.wikipedia.org/wiki/HKSCS (a big5 variant, but some variants use 10646)
ISO-10646 (IEC-10646) - http://en.wikipedia.org/wiki/ISO_10646 (unicode)
UTF-8 (1-5 bytes)
ISO-2022 (IEC-2022) - http://en.wikipedia.org/wiki/ISO_2022
Shift-JIS - http://en.wikipedia.org/wiki/Shift-JIS
A good resource:
----------------
http://en.wikipedia.org/wiki/Character_encoding#Simple_character_sets
================================================
FILE: doc/notes/rfc/rfc0821.txt
================================================
RFC 821
SIMPLE MAIL TRANSFER PROTOCOL
Jonathan B. Postel
August 1982
Information Sciences Institute
University of Southern California
4676 Admiralty Way
Marina del Rey, California 90291
(213) 822-1511
RFC 821 August 1982
Simple Mail Transfer Protocol
TABLE OF CONTENTS
1. INTRODUCTION .................................................. 1
2. THE SMTP MODEL ................................................ 2
3. THE SMTP PROCEDURE ............................................ 4
3.1. Mail ..................................................... 4
3.2. Forwarding ............................................... 7
3.3. Verifying and Expanding .................................. 8
3.4. Sending and Mailing ..................................... 11
3.5. Opening and Closing ..................................... 13
3.6. Relaying ................................................ 14
3.7. Domains ................................................. 17
3.8. Changing Roles .......................................... 18
4. THE SMTP SPECIFICATIONS ...................................... 19
4.1. SMTP Commands ........................................... 19
4.1.1. Command Semantics ..................................... 19
4.1.2. Command Syntax ........................................ 27
4.2. SMTP Replies ............................................ 34
4.2.1. Reply Codes by Function Group ......................... 35
4.2.2. Reply Codes in Numeric Order .......................... 36
4.3. Sequencing of Commands and Replies ...................... 37
4.4. State Diagrams .......................................... 39
4.5. Details ................................................. 41
4.5.1. Minimum Implementation ................................ 41
4.5.2. Transparency .......................................... 41
4.5.3. Sizes ................................................. 42
APPENDIX A: TCP ................................................. 44
APPENDIX B: NCP ................................................. 45
APPENDIX C: NITS ................................................ 46
APPENDIX D: X.25 ................................................ 47
APPENDIX E: Theory of Reply Codes ............................... 48
APPENDIX F: Scenarios ........................................... 51
GLOSSARY ......................................................... 64
REFERENCES ....................................................... 67
Network Working Group J. Postel
Request for Comments: DRAFT ISI
Replaces: RFC 788, 780, 772 August 1982
SIMPLE MAIL TRANSFER PROTOCOL
1. INTRODUCTION
The objective of Simple Mail Transfer Protocol (SMTP) is to transfer
mail reliably and efficiently.
SMTP is independent of the particular transmission subsystem and
requires only a reliable ordered data stream channel. Appendices A,
B, C, and D describe the use of SMTP with various transport services.
A Glossary provides the definitions of terms as used in this
document.
An important feature of SMTP is its capability to relay mail across
transport service environments. A transport service provides an
interprocess communication environment (IPCE). An IPCE may cover one
network, several networks, or a subset of a network. It is important
to realize that transport systems (or IPCEs) are not one-to-one with
networks. A process can communicate directly with another process
through any mutually known IPCE. Mail is an application or use of
interprocess communication. Mail can be communicated between
processes in different IPCEs by relaying through a process connected
to two (or more) IPCEs. More specifically, mail can be relayed
between hosts on different transport systems by a host on both
transport systems.
Postel [Page 1]
August 1982 RFC 821
Simple Mail Transfer Protocol
2. THE SMTP MODEL
The SMTP design is based on the following model of communication: as
the result of a user mail request, the sender-SMTP establishes a
two-way transmission channel to a receiver-SMTP. The receiver-SMTP
may be either the ultimate destination or an intermediate. SMTP
commands are generated by the sender-SMTP and sent to the
receiver-SMTP. SMTP replies are sent from the receiver-SMTP to the
sender-SMTP in response to the commands.
Once the transmission channel is established, the SMTP-sender sends a
MAIL command indicating the sender of the mail. If the SMTP-receiver
can accept mail it responds with an OK reply. The SMTP-sender then
sends a RCPT command identifying a recipient of the mail. If the
SMTP-receiver can accept mail for that recipient it responds with an
OK reply; if not, it responds with a reply rejecting that recipient
(but not the whole mail transaction). The SMTP-sender and
SMTP-receiver may negotiate several recipients. When the recipients
have been negotiated the SMTP-sender sends the mail data, terminating
with a special sequence. If the SMTP-receiver successfully processes
the mail data it responds with an OK reply. The dialog is purposely
lock-step, one-at-a-time.
-------------------------------------------------------------
+----------+ +----------+
+------+ | | | |
| User |<-->| | SMTP | |
+------+ | Sender- |Commands/Replies| Receiver-|
+------+ | SMTP |<-------------->| SMTP | +------+
| File |<-->| | and Mail | |<-->| File |
|System| | | | | |System|
+------+ +----------+ +----------+ +------+
Sender-SMTP Receiver-SMTP
Model for SMTP Use
Figure 1
-------------------------------------------------------------
The SMTP provides mechanisms for the transmission of mail; directly
from the sending user's host to the receiving user's host when the
[Page 2] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
two host are connected to the same transport service, or via one or
more relay SMTP-servers when the source and destination hosts are not
connected to the same transport service.
To be able to provide the relay capability the SMTP-server must be
supplied with the name of the ultimate destination host as well as
the destination mailbox name.
The argument to the MAIL command is a reverse-path, which specifies
who the mail is from. The argument to the RCPT command is a
forward-path, which specifies who the mail is to. The forward-path
is a source route, while the reverse-path is a return route (which
may be used to return a message to the sender when an error occurs
with a relayed message).
When the same message is sent to multiple recipients the SMTP
encourages the transmission of only one copy of the data for all the
recipients at the same destination host.
The mail commands and replies have a rigid syntax. Replies also have
a numeric code. In the following, examples appear which use actual
commands and replies. The complete lists of commands and replies
appears in Section 4 on specifications.
Commands and replies are not case sensitive. That is, a command or
reply word may be upper case, lower case, or any mixture of upper and
lower case. Note that this is not true of mailbox user names. For
some hosts the user name is case sensitive, and SMTP implementations
must take case to preserve the case of user names as they appear in
mailbox arguments. Host names are not case sensitive.
Commands and replies are composed of characters from the ASCII
character set [1]. When the transport service provides an 8-bit byte
(octet) transmission channel, each 7-bit character is transmitted
right justified in an octet with the high order bit cleared to zero.
When specifying the general form of a command or reply, an argument
(or special symbol) will be denoted by a meta-linguistic variable (or
constant), for example, "<string>" or "<reverse-path>". Here the
angle brackets indicate these are meta-linguistic variables.
However, some arguments use the angle brackets literally. For
example, an actual reverse-path is enclosed in angle brackets, i.e.,
"<John.Smith@USC-ISI.ARPA>" is an instance of <reverse-path> (the
angle brackets are actually transmitted in the command or reply).
Postel [Page 3]
August 1982 RFC 821
Simple Mail Transfer Protocol
3. THE SMTP PROCEDURES
This section presents the procedures used in SMTP in several parts.
First comes the basic mail procedure defined as a mail transaction.
Following this are descriptions of forwarding mail, verifying mailbox
names and expanding mailing lists, sending to terminals instead of or
in combination with mailboxes, and the opening and closing exchanges.
At the end of this section are comments on relaying, a note on mail
domains, and a discussion of changing roles. Throughout this section
are examples of partial command and reply sequences, several complete
scenarios are presented in Appendix F.
3.1. MAIL
There are three steps to SMTP mail transactions. The transaction
is started with a MAIL command which gives the sender
identification. A series of one or more RCPT commands follows
giving the receiver information. Then a DATA command gives the
mail data. And finally, the end of mail data indicator confirms
the transaction.
The first step in the procedure is the MAIL command. The
<reverse-path> contains the source mailbox.
MAIL <SP> FROM:<reverse-path> <CRLF>
This command tells the SMTP-receiver that a new mail
transaction is starting and to reset all its state tables and
buffers, including any recipients or mail data. It gives the
reverse-path which can be used to report errors. If accepted,
the receiver-SMTP returns a 250 OK reply.
The <reverse-path> can contain more than just a mailbox. The
<reverse-path> is a reverse source routing list of hosts and
source mailbox. The first host in the <reverse-path> should be
the host sending this command.
The second step in the procedure is the RCPT command.
RCPT <SP> TO:<forward-path> <CRLF>
This command gives a forward-path identifying one recipient.
If accepted, the receiver-SMTP returns a 250 OK reply, and
stores the forward-path. If the recipient is unknown the
receiver-SMTP returns a 550 Failure reply. This second step of
the procedure can be repeated any number of times.
[Page 4] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
The <forward-path> can contain more than just a mailbox. The
<forward-path> is a source routing list of hosts and the
destination mailbox. The first host in the <forward-path>
should be the host receiving this command.
The third step in the procedure is the DATA command.
DATA <CRLF>
If accepted, the receiver-SMTP returns a 354 Intermediate reply
and considers all succeeding lines to be the message text.
When the end of text is received and stored the SMTP-receiver
sends a 250 OK reply.
Since the mail data is sent on the transmission channel the end
of the mail data must be indicated so that the command and
reply dialog can be resumed. SMTP indicates the end of the
mail data by sending a line containing only a period. A
transparency procedure is used to prevent this from interfering
with the user's text (see Section 4.5.2).
Please note that the mail data includes the memo header
items such as Date, Subject, To, Cc, From [2].
The end of mail data indicator also confirms the mail
transaction and tells the receiver-SMTP to now process the
stored recipients and mail data. If accepted, the
receiver-SMTP returns a 250 OK reply. The DATA command should
fail only if the mail transaction was incomplete (for example,
no recipients), or if resources are not available.
The above procedure is an example of a mail transaction. These
commands must be used only in the order discussed above.
Example 1 (below) illustrates the use of these commands in a mail
transaction.
Postel [Page 5]
August 1982 RFC 821
Simple Mail Transfer Protocol
-------------------------------------------------------------
Example of the SMTP Procedure
This SMTP example shows mail sent by Smith at host Alpha.ARPA,
to Jones, Green, and Brown at host Beta.ARPA. Here we assume
that host Alpha contacts host Beta directly.
S: MAIL FROM:<Smith@Alpha.ARPA>
R: 250 OK
S: RCPT TO:<Jones@Beta.ARPA>
R: 250 OK
S: RCPT TO:<Green@Beta.ARPA>
R: 550 No such user here
S: RCPT TO:<Brown@Beta.ARPA>
R: 250 OK
S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Blah blah blah...
S: ...etc. etc. etc.
S: <CRLF>.<CRLF>
R: 250 OK
The mail has now been accepted for Jones and Brown. Green did
not have a mailbox at host Beta.
Example 1
-------------------------------------------------------------
[Page 6] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
3.2. FORWARDING
There are some cases where the destination information in the
<forward-path> is incorrect, but the receiver-SMTP knows the
correct destination. In such cases, one of the following replies
should be used to allow the sender to contact the correct
destination.
251 User not local; will forward to <forward-path>
This reply indicates that the receiver-SMTP knows the user's
mailbox is on another host and indicates the correct
forward-path to use in the future. Note that either the
host or user or both may be different. The receiver takes
responsibility for delivering the message.
551 User not local; please try <forward-path>
This reply indicates that the receiver-SMTP knows the user's
mailbox is on another host and indicates the correct
forward-path to use. Note that either the host or user or
both may be different. The receiver refuses to accept mail
for this user, and the sender must either redirect the mail
according to the information provided or return an error
response to the originating user.
Example 2 illustrates the use of these responses.
-------------------------------------------------------------
Example of Forwarding
Either
S: RCPT TO:<Postel@USC-ISI.ARPA>
R: 251 User not local; will forward to <Postel@USC-ISIF.ARPA>
Or
S: RCPT TO:<Paul@USC-ISIB.ARPA>
R: 551 User not local; please try <Mockapetris@USC-ISIF.ARPA>
Example 2
-------------------------------------------------------------
Postel [Page 7]
August 1982 RFC 821
Simple Mail Transfer Protocol
3.3. VERIFYING AND EXPANDING
SMTP provides as additional features, commands to verify a user
name or expand a mailing list. This is done with the VRFY and
EXPN commands, which have character string arguments. For the
VRFY command, the string is a user name, and the response may
include the full name of the user and must include the mailbox of
the user. For the EXPN command, the string identifies a mailing
list, and the multiline response may include the full name of the
users and must give the mailboxes on the mailing list.
"User name" is a fuzzy term and used purposely. If a host
implements the VRFY or EXPN commands then at least local mailboxes
must be recognized as "user names". If a host chooses to
recognize other strings as "user names" that is allowed.
In some hosts the distinction between a mailing list and an alias
for a single mailbox is a bit fuzzy, since a common data structure
may hold both types of entries, and it is possible to have mailing
lists of one mailbox. If a request is made to verify a mailing
list a positive response can be given if on receipt of a message
so addressed it will be delivered to everyone on the list,
otherwise an error should be reported (e.g., "550 That is a
mailing list, not a user"). If a request is made to expand a user
name a positive response can be formed by returning a list
containing one name, or an error can be reported (e.g., "550 That
is a user name, not a mailing list").
In the case of a multiline reply (normal for EXPN) exactly one
mailbox is to be specified on each line of the reply. In the case
of an ambiguous request, for example, "VRFY Smith", where there
are two Smith's the response must be "553 User ambiguous".
The case of verifying a user name is straightforward as shown in
example 3.
[Page 8] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
-------------------------------------------------------------
Example of Verifying a User Name
Either
S: VRFY Smith
R: 250 Fred Smith <Smith@USC-ISIF.ARPA>
Or
S: VRFY Smith
R: 251 User not local; will forward to <Smith@USC-ISIQ.ARPA>
Or
S: VRFY Jones
R: 550 String does not match anything.
Or
S: VRFY Jones
R: 551 User not local; please try <Jones@USC-ISIQ.ARPA>
Or
S: VRFY Gourzenkyinplatz
R: 553 User ambiguous.
Example 3
-------------------------------------------------------------
Postel [Page 9]
August 1982 RFC 821
Simple Mail Transfer Protocol
The case of expanding a mailbox list requires a multiline reply as
shown in example 4.
-------------------------------------------------------------
Example of Expanding a Mailing List
Either
S: EXPN Example-People
R: 250-Jon Postel <Postel@USC-ISIF.ARPA>
R: 250-Fred Fonebone <Fonebone@USC-ISIQ.ARPA>
R: 250-Sam Q. Smith <SQSmith@USC-ISIQ.ARPA>
R: 250-Quincy Smith <@USC-ISIF.ARPA:Q-Smith@ISI-VAXA.ARPA>
R: 250-<joe@foo-unix.ARPA>
R: 250 <xyz@bar-unix.ARPA>
Or
S: EXPN Executive-Washroom-List
R: 550 Access Denied to You.
Example 4
-------------------------------------------------------------
The character string arguments of the VRFY and EXPN commands
cannot be further restricted due to the variety of implementations
of the user name and mailbox list concepts. On some systems it
may be appropriate for the argument of the EXPN command to be a
file name for a file containing a mailing list, but again there is
a variety of file naming conventions in the Internet.
The VRFY and EXPN commands are not included in the minimum
implementation (Section 4.5.1), and are not required to work
across relays when they are implemented.
[Page 10] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
3.4. SENDING AND MAILING
The main purpose of SMTP is to deliver messages to user's
mailboxes. A very similar service provided by some hosts is to
deliver messages to user's terminals (provided the user is active
on the host). The delivery to the user's mailbox is called
"mailing", the delivery to the user's terminal is called
"sending". Because in many hosts the implementation of sending is
nearly identical to the implementation of mailing these two
functions are combined in SMTP. However the sending commands are
not included in the required minimum implementation
(Section 4.5.1). Users should have the ability to control the
writing of messages on their terminals. Most hosts permit the
users to accept or refuse such messages.
The following three command are defined to support the sending
options. These are used in the mail transaction instead of the
MAIL command and inform the receiver-SMTP of the special semantics
of this transaction:
SEND <SP> FROM:<reverse-path> <CRLF>
The SEND command requires that the mail data be delivered to
the user's terminal. If the user is not active (or not
accepting terminal messages) on the host a 450 reply may
returned to a RCPT command. The mail transaction is
successful if the message is delivered the terminal.
SOML <SP> FROM:<reverse-path> <CRLF>
The Send Or MaiL command requires that the mail data be
delivered to the user's terminal if the user is active (and
accepting terminal messages) on the host. If the user is
not active (or not accepting terminal messages) then the
mail data is entered into the user's mailbox. The mail
transaction is successful if the message is delivered either
to the terminal or the mailbox.
SAML <SP> FROM:<reverse-path> <CRLF>
The Send And MaiL command requires that the mail data be
delivered to the user's terminal if the user is active (and
accepting terminal messages) on the host. In any case the
mail data is entered into the user's mailbox. The mail
transaction is successful if the message is delivered the
mailbox.
Postel [Page 11]
August 1982 RFC 821
Simple Mail Transfer Protocol
The same reply codes that are used for the MAIL commands are used
for these commands.
[Page 12] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
3.5. OPENING AND CLOSING
At the time the transmission channel is opened there is an
exchange to ensure that the hosts are communicating with the hosts
they think they are.
The following two commands are used in transmission channel
opening and closing:
HELO <SP> <domain> <CRLF>
QUIT <CRLF>
In the HELO command the host sending the command identifies
itself; the command may be interpreted as saying "Hello, I am
<domain>".
-------------------------------------------------------------
Example of Connection Opening
R: 220 BBN-UNIX.ARPA Simple Mail Transfer Service Ready
S: HELO USC-ISIF.ARPA
R: 250 BBN-UNIX.ARPA
Example 5
-------------------------------------------------------------
-------------------------------------------------------------
Example of Connection Closing
S: QUIT
R: 221 BBN-UNIX.ARPA Service closing transmission channel
Example 6
-------------------------------------------------------------
Postel [Page 13]
August 1982 RFC 821
Simple Mail Transfer Protocol
3.6. RELAYING
The forward-path may be a source route of the form
"@ONE,@TWO:JOE@THREE", where ONE, TWO, and THREE are hosts. This
form is used to emphasize the distinction between an address and a
route. The mailbox is an absolute address, and the route is
information about how to get there. The two concepts should not
be confused.
Conceptually the elements of the forward-path are moved to the
reverse-path as the message is relayed from one server-SMTP to
another. The reverse-path is a reverse source route, (i.e., a
source route from the current location of the message to the
originator of the message). When a server-SMTP deletes its
identifier from the forward-path and inserts it into the
reverse-path, it must use the name it is known by in the
environment it is sending into, not the environment the mail came
from, in case the server-SMTP is known by different names in
different environments.
If when the message arrives at an SMTP the first element of the
forward-path is not the identifier of that SMTP the element is not
deleted from the forward-path and is used to determine the next
SMTP to send the message to. In any case, the SMTP adds its own
identifier to the reverse-path.
Using source routing the receiver-SMTP receives mail to be relayed
to another server-SMTP The receiver-SMTP may accept or reject the
task of relaying the mail in the same way it accepts or rejects
mail for a local user. The receiver-SMTP transforms the command
arguments by moving its own identifier from the forward-path to
the beginning of the reverse-path. The receiver-SMTP then becomes
a sender-SMTP, establishes a transmission channel to the next SMTP
in the forward-path, and sends it the mail.
The first host in the reverse-path should be the host sending the
SMTP commands, and the first host in the forward-path should be
the host receiving the SMTP commands.
Notice that the forward-path and reverse-path appear in the SMTP
commands and replies, but not necessarily in the message. That
is, there is no need for these paths and especially this syntax to
appear in the "To:" , "From:", "CC:", etc. fields of the message
header.
If a server-SMTP has accepted the task of relaying the mail and
[Page 14] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
later finds that the forward-path is incorrect or that the mail
cannot be delivered for whatever reason, then it must construct an
"undeliverable mail" notification message and send it to the
originator of the undeliverable mail (as indicated by the
reverse-path).
This notification message must be from the server-SMTP at this
host. Of course, server-SMTPs should not send notification
messages about problems with notification messages. One way to
prevent loops in error reporting is to specify a null reverse-path
in the MAIL command of a notification message. When such a
message is relayed it is permissible to leave the reverse-path
null. A MAIL command with a null reverse-path appears as follows:
MAIL FROM:<>
An undeliverable mail notification message is shown in example 7.
This notification is in response to a message originated by JOE at
HOSTW and sent via HOSTX to HOSTY with instructions to relay it on
to HOSTZ. What we see in the example is the transaction between
HOSTY and HOSTX, which is the first step in the return of the
notification message.
Postel [Page 15]
August 1982 RFC 821
Simple Mail Transfer Protocol
-------------------------------------------------------------
Example Undeliverable Mail Notification Message
S: MAIL FROM:<>
R: 250 ok
S: RCPT TO:<@HOSTX.ARPA:JOE@HOSTW.ARPA>
R: 250 ok
S: DATA
R: 354 send the mail data, end with .
S: Date: 23 Oct 81 11:22:33
S: From: SMTP@HOSTY.ARPA
S: To: JOE@HOSTW.ARPA
S: Subject: Mail System Problem
S:
S: Sorry JOE, your message to SAM@HOSTZ.ARPA lost.
S: HOSTZ.ARPA said this:
S: "550 No Such User"
S: .
R: 250 ok
Example 7
-------------------------------------------------------------
[Page 16] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
3.7. DOMAINS
Domains are a recently introduced concept in the ARPA Internet
mail system. The use of domains changes the address space from a
flat global space of simple character string host names to a
hierarchically structured rooted tree of global addresses. The
host name is replaced by a domain and host designator which is a
sequence of domain element strings separated by periods with the
understanding that the domain elements are ordered from the most
specific to the most general.
For example, "USC-ISIF.ARPA", "Fred.Cambridge.UK", and
"PC7.LCS.MIT.ARPA" might be host-and-domain identifiers.
Whenever domain names are used in SMTP only the official names are
used, the use of nicknames or aliases is not allowed.
Postel [Page 17]
August 1982 RFC 821
Simple Mail Transfer Protocol
3.8. CHANGING ROLES
The TURN command may be used to reverse the roles of the two
programs communicating over the transmission channel.
If program-A is currently the sender-SMTP and it sends the TURN
command and receives an ok reply (250) then program-A becomes the
receiver-SMTP.
If program-B is currently the receiver-SMTP and it receives the
TURN command and sends an ok reply (250) then program-B becomes
the sender-SMTP.
To refuse to change roles the receiver sends the 502 reply.
Please note that this command is optional. It would not normally
be used in situations where the transmission channel is TCP.
However, when the cost of establishing the transmission channel is
high, this command may be quite useful. For example, this command
may be useful in supporting be mail exchange using the public
switched telephone system as a transmission channel, especially if
some hosts poll other hosts for mail exchanges.
[Page 18] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
4. THE SMTP SPECIFICATIONS
4.1. SMTP COMMANDS
4.1.1. COMMAND SEMANTICS
The SMTP commands define the mail transfer or the mail system
function requested by the user. SMTP commands are character
strings terminated by <CRLF>. The command codes themselves are
alphabetic characters terminated by <SP> if parameters follow
and <CRLF> otherwise. The syntax of mailboxes must conform to
receiver site conventions. The SMTP commands are discussed
below. The SMTP replies are discussed in the Section 4.2.
A mail transaction involves several data objects which are
communicated as arguments to different commands. The
reverse-path is the argument of the MAIL command, the
forward-path is the argument of the RCPT command, and the mail
data is the argument of the DATA command. These arguments or
data objects must be transmitted and held pending the
confirmation communicated by the end of mail data indication
which finalizes the transaction. The model for this is that
distinct buffers are provided to hold the types of data
objects, that is, there is a reverse-path buffer, a
forward-path buffer, and a mail data buffer. Specific commands
cause information to be appended to a specific buffer, or cause
one or more buffers to be cleared.
HELLO (HELO)
This command is used to identify the sender-SMTP to the
receiver-SMTP. The argument field contains the host name of
the sender-SMTP.
The receiver-SMTP identifies itself to the sender-SMTP in
the connection greeting reply, and in the response to this
command.
This command and an OK reply to it confirm that both the
sender-SMTP and the receiver-SMTP are in the initial state,
that is, there is no transaction in progress and all state
tables and buffers are cleared.
Postel [Page 19]
August 1982 RFC 821
Simple Mail Transfer Protocol
MAIL (MAIL)
This command is used to initiate a mail transaction in which
the mail data is delivered to one or more mailboxes. The
argument field contains a reverse-path.
The reverse-path consists of an optional list of hosts and
the sender mailbox. When the list of hosts is present, it
is a "reverse" source route and indicates that the mail was
relayed through each host on the list (the first host in the
list was the most recent relay). This list is used as a
source route to return non-delivery notices to the sender.
As each relay host adds itself to the beginning of the list,
it must use its name as known in the IPCE to which it is
relaying the mail rather than the IPCE from which the mail
came (if they are different). In some types of error
reporting messages (for example, undeliverable mail
notifications) the reverse-path may be null (see Example 7).
This command clears the reverse-path buffer, the
forward-path buffer, and the mail data buffer; and inserts
the reverse-path information from this command into the
reverse-path buffer.
RECIPIENT (RCPT)
This command is used to identify an individual recipient of
the mail data; multiple recipients are specified by multiple
use of this command.
The forward-path consists of an optional list of hosts and a
required destination mailbox. When the list of hosts is
present, it is a source route and indicates that the mail
must be relayed to the next host on the list. If the
receiver-SMTP does not implement the relay function it may
user the same reply it would for an unknown local user
(550).
When mail is relayed, the relay host must remove itself from
the beginning forward-path and put itself at the beginning
of the reverse-path. When mail reaches its ultimate
destination (the forward-path contains only a destination
mailbox), the receiver-SMTP inserts it into the destination
mailbox in accordance with its host mail conventions.
[Page 20] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
For example, mail received at relay host A with arguments
FROM:<USERX@HOSTY.ARPA>
TO:<@HOSTA.ARPA,@HOSTB.ARPA:USERC@HOSTD.ARPA>
will be relayed on to host B with arguments
FROM:<@HOSTA.ARPA:USERX@HOSTY.ARPA>
TO:<@HOSTB.ARPA:USERC@HOSTD.ARPA>.
This command causes its forward-path argument to be appended
to the forward-path buffer.
DATA (DATA)
The receiver treats the lines following the command as mail
data from the sender. This command causes the mail data
from this command to be appended to the mail data buffer.
The mail data may contain any of the 128 ASCII character
codes.
The mail data is terminated by a line containing only a
period, that is the character sequence "<CRLF>.<CRLF>" (see
Section 4.5.2 on Transparency). This is the end of mail
data indication.
The end of mail data indication requires that the receiver
must now process the stored mail transaction information.
This processing consumes the information in the reverse-path
buffer, the forward-path buffer, and the mail data buffer,
and on the completion of this command these buffers are
cleared. If the processing is successful the receiver must
send an OK reply. If the processing fails completely the
receiver must send a failure reply.
When the receiver-SMTP accepts a message either for relaying
or for final delivery it inserts at the beginning of the
mail data a time stamp line. The time stamp line indicates
the identity of the host that sent the message, and the
identity of the host that received the message (and is
inserting this time stamp), and the date and time the
message was received. Relayed messages will have multiple
time stamp lines.
When the receiver-SMTP makes the "final delivery" of a
message it inserts at the beginning of the mail data a
Postel [Page 21]
August 1982 RFC 821
Simple Mail Transfer Protocol
return path line. The return path line preserves the
information in the <reverse-path> from the MAIL command.
Here, final delivery means the message leaves the SMTP
world. Normally, this would mean it has been delivered to
the destination user, but in some cases it may be further
processed and transmitted by another mail system.
It is possible for the mailbox in the return path be
different from the actual sender's mailbox, for example,
if error responses are to be delivered a special error
handling mailbox rather than the message senders.
The preceding two paragraphs imply that the final mail data
will begin with a return path line, followed by one or more
time stamp lines. These lines will be followed by the mail
data header and body [2]. See Example 8.
Special mention is needed of the response and further action
required when the processing following the end of mail data
indication is partially successful. This could arise if
after accepting several recipients and the mail data, the
receiver-SMTP finds that the mail data can be successfully
delivered to some of the recipients, but it cannot be to
others (for example, due to mailbox space allocation
problems). In such a situation, the response to the DATA
command must be an OK reply. But, the receiver-SMTP must
compose and send an "undeliverable mail" notification
message to the originator of the message. Either a single
notification which lists all of the recipients that failed
to get the message, or separate notification messages must
be sent for each failed recipient (see Example 7). All
undeliverable mail notification messages are sent using the
MAIL command (even if they result from processing a SEND,
SOML, or SAML command).
[Page 22] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
-------------------------------------------------------------
Example of Return Path and Received Time Stamps
Return-Path: <@GHI.ARPA,@DEF.ARPA,@ABC.ARPA:JOE@ABC.ARPA>
Received: from GHI.ARPA by JKL.ARPA ; 27 Oct 81 15:27:39 PST
Received: from DEF.ARPA by GHI.ARPA ; 27 Oct 81 15:15:13 PST
Received: from ABC.ARPA by DEF.ARPA ; 27 Oct 81 15:01:59 PST
Date: 27 Oct 81 15:01:01 PST
From: JOE@ABC.ARPA
Subject: Improved Mailing System Installed
To: SAM@JKL.ARPA
This is to inform you that ...
Example 8
-------------------------------------------------------------
SEND (SEND)
This command is used to initiate a mail transaction in which
the mail data is delivered to one or more terminals. The
argument field contains a reverse-path. This command is
successful if the message is delivered to a terminal.
The reverse-path consists of an optional list of hosts and
the sender mailbox. When the list of hosts is present, it
is a "reverse" source route and indicates that the mail was
relayed through each host on the list (the first host in the
list was the most recent relay). This list is used as a
source route to return non-delivery notices to the sender.
As each relay host adds itself to the beginning of the list,
it must use its name as known in the IPCE to which it is
relaying the mail rather than the IPCE from which the mail
came (if they are different).
This command clears the reverse-path buffer, the
forward-path buffer, and the mail data buffer; and inserts
the reverse-path information from this command into the
reverse-path buffer.
SEND OR MAIL (SOML)
This command is used to initiate a mail transaction in which
the mail data is delivered to one or more terminals or
Postel [Page 23]
August 1982 RFC 821
Simple Mail Transfer Protocol
mailboxes. For each recipient the mail data is delivered to
the recipient's terminal if the recipient is active on the
host (and accepting terminal messages), otherwise to the
recipient's mailbox. The argument field contains a
reverse-path. This command is successful if the message is
delivered to a terminal or the mailbox.
The reverse-path consists of an optional list of hosts and
the sender mailbox. When the list of hosts is present, it
is a "reverse" source route and indicates that the mail was
relayed through each host on the list (the first host in the
list was the most recent relay). This list is used as a
source route to return non-delivery notices to the sender.
As each relay host adds itself to the beginning of the list,
it must use its name as known in the IPCE to which it is
relaying the mail rather than the IPCE from which the mail
came (if they are different).
This command clears the reverse-path buffer, the
forward-path buffer, and the mail data buffer; and inserts
the reverse-path information from this command into the
reverse-path buffer.
SEND AND MAIL (SAML)
This command is used to initiate a mail transaction in which
the mail data is delivered to one or more terminals and
mailboxes. For each recipient the mail data is delivered to
the recipient's terminal if the recipient is active on the
host (and accepting terminal messages), and for all
recipients to the recipient's mailbox. The argument field
contains a reverse-path. This command is successful if the
message is delivered to the mailbox.
The reverse-path consists of an optional list of hosts and
the sender mailbox. When the list of hosts is present, it
is a "reverse" source route and indicates that the mail was
relayed through each host on the list (the first host in the
list was the most recent relay). This list is used as a
source route to return non-delivery notices to the sender.
As each relay host adds itself to the beginning of the list,
it must use its name as known in the IPCE to which it is
relaying the mail rather than the IPCE from which the mail
came (if they are different).
This command clears the reverse-path buffer, the
[Page 24] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
forward-path buffer, and the mail data buffer; and inserts
the reverse-path information from this command into the
reverse-path buffer.
RESET (RSET)
This command specifies that the current mail transaction is
to be aborted. Any stored sender, recipients, and mail data
must be discarded, and all buffers and state tables cleared.
The receiver must send an OK reply.
VERIFY (VRFY)
This command asks the receiver to confirm that the argument
identifies a user. If it is a user name, the full name of
the user (if known) and the fully specified mailbox are
returned.
This command has no effect on any of the reverse-path
buffer, the forward-path buffer, or the mail data buffer.
EXPAND (EXPN)
This command asks the receiver to confirm that the argument
identifies a mailing list, and if so, to return the
membership of that list. The full name of the users (if
known) and the fully specified mailboxes are returned in a
multiline reply.
This command has no effect on any of the reverse-path
buffer, the forward-path buffer, or the mail data buffer.
HELP (HELP)
This command causes the receiver to send helpful information
to the sender of the HELP command. The command may take an
argument (e.g., any command name) and return more specific
information as a response.
This command has no effect on any of the reverse-path
buffer, the forward-path buffer, or the mail data buffer.
Postel [Page 25]
August 1982 RFC 821
Simple Mail Transfer Protocol
NOOP (NOOP)
This command does not affect any parameters or previously
entered commands. It specifies no action other than that
the receiver send an OK reply.
This command has no effect on any of the reverse-path
buffer, the forward-path buffer, or the mail data buffer.
QUIT (QUIT)
This command specifies that the receiver must send an OK
reply, and then close the transmission channel.
The receiver should not close the transmission channel until
it receives and replies to a QUIT command (even if there was
an error). The sender should not close the transmission
channel until it send a QUIT command and receives the reply
(even if there was an error response to a previous command).
If the connection is closed prematurely the receiver should
act as if a RSET command had been received (canceling any
pending transaction, but not undoing any previously
completed transaction), the sender should act as if the
command or transaction in progress had received a temporary
error (4xx).
TURN (TURN)
This command specifies that the receiver must either (1)
send an OK reply and then take on the role of the
sender-SMTP, or (2) send a refusal reply and retain the role
of the receiver-SMTP.
If program-A is currently the sender-SMTP and it sends the
TURN command and receives an OK reply (250) then program-A
becomes the receiver-SMTP. Program-A is then in the initial
state as if the transmission channel just opened, and it
then sends the 220 service ready greeting.
If program-B is currently the receiver-SMTP and it receives
the TURN command and sends an OK reply (250) then program-B
becomes the sender-SMTP. Program-B is then in the initial
state as if the transmission channel just opened, and it
then expects to receive the 220 service ready greeting.
To refuse to change roles the receiver sends the 502 reply.
[Page 26] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
There are restrictions on the order in which these command may
be used.
The first command in a session must be the HELO command.
The HELO command may be used later in a session as well. If
the HELO command argument is not acceptable a 501 failure
reply must be returned and the receiver-SMTP must stay in
the same state.
The NOOP, HELP, EXPN, and VRFY commands can be used at any
time during a session.
The MAIL, SEND, SOML, or SAML commands begin a mail
transaction. Once started a mail transaction consists of
one of the transaction beginning commands, one or more RCPT
commands, and a DATA command, in that order. A mail
transaction may be aborted by the RSET command. There may
be zero or more transactions in a session.
If the transaction beginning command argument is not
acceptable a 501 failure reply must be returned and the
receiver-SMTP must stay in the same state. If the commands
in a transaction are out of order a 503 failure reply must
be returned and the receiver-SMTP must stay in the same
state.
The last command in a session must be the QUIT command. The
QUIT command can not be used at any other time in a session.
4.1.2. COMMAND SYNTAX
The commands consist of a command code followed by an argument
field. Command codes are four alphabetic characters. Upper
and lower case alphabetic characters are to be treated
identically. Thus, any of the following may represent the mail
command:
MAIL Mail mail MaIl mAIl
This also applies to any symbols representing parameter values,
such as "TO" or "to" for the forward-path. Command codes and
the argument fields are separated by one or more spaces.
However, within the reverse-path and forward-path arguments
case is important. In particular, in some hosts the user
"smith" is different from the user "Smith".
Postel [Page 27]
August 1982 RFC 821
Simple Mail Transfer Protocol
The argument field consists of a variable length character
string ending with the character sequence <CRLF>. The receiver
is to take no action until this sequence is received.
Square brackets denote an optional argument field. If the
option is not taken, the appropriate default is implied.
[Page 28] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
The following are the SMTP commands:
HELO <SP> <domain> <CRLF>
MAIL <SP> FROM:<reverse-path> <CRLF>
RCPT <SP> TO:<forward-path> <CRLF>
DATA <CRLF>
RSET <CRLF>
SEND <SP> FROM:<reverse-path> <CRLF>
SOML <SP> FROM:<reverse-path> <CRLF>
SAML <SP> FROM:<reverse-path> <CRLF>
VRFY <SP> <string> <CRLF>
EXPN <SP> <string> <CRLF>
HELP [<SP> <string>] <CRLF>
NOOP <CRLF>
QUIT <CRLF>
TURN <CRLF>
Postel [Page 29]
August 1982 RFC 821
Simple Mail Transfer Protocol
The syntax of the above argument fields (using BNF notation
where applicable) is given below. The "..." notation indicates
that a field may be repeated one or more times.
<reverse-path> ::= <path>
<forward-path> ::= <path>
<path> ::= "<" [ <a-d-l> ":" ] <mailbox> ">"
<a-d-l> ::= <at-domain> | <at-domain> "," <a-d-l>
<at-domain> ::= "@" <domain>
<domain> ::= <element> | <element> "." <domain>
<element> ::= <name> | "#" <number> | "[" <dotnum> "]"
<mailbox> ::= <local-part> "@" <domain>
<local-part> ::= <dot-string> | <quoted-string>
<name> ::= <a> <ldh-str> <let-dig>
<ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str>
<let-dig> ::= <a> | <d>
<let-dig-hyp> ::= <a> | <d> | "-"
<dot-string> ::= <string> | <string> "." <dot-string>
<string> ::= <char> | <char> <string>
<quoted-string> ::= """ <qtext> """
<qtext> ::= "\" <x> | "\" <x> <qtext> | <q> | <q> <qtext>
<char> ::= <c> | "\" <x>
<dotnum> ::= <snum> "." <snum> "." <snum> "." <snum>
<number> ::= <d> | <d> <number>
<CRLF> ::= <CR> <LF>
[Page 30] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
<CR> ::= the carriage return character (ASCII code 13)
<LF> ::= the line feed character (ASCII code 10)
<SP> ::= the space character (ASCII code 32)
<snum> ::= one, two, or three digits representing a decimal
integer value in the range 0 through 255
<a> ::= any one of the 52 alphabetic characters A through Z
in upper case and a through z in lower case
<c> ::= any one of the 128 ASCII characters, but not any
<special> or <SP>
<d> ::= any one of the ten digits 0 through 9
<q> ::= any one of the 128 ASCII characters except <CR>,
<LF>, quote ("), or backslash (\)
<x> ::= any one of the 128 ASCII characters (no exceptions)
<special> ::= "<" | ">" | "(" | ")" | "[" | "]" | "\" | "."
| "," | ";" | ":" | "@" """ | the control
characters (ASCII codes 0 through 31 inclusive and
127)
Note that the backslash, "\", is a quote character, which is
used to indicate that the next character is to be used
literally (instead of its normal interpretation). For example,
"Joe\,Smith" could be used to indicate a single nine character
user field with comma being the fourth character of the field.
Hosts are generally known by names which are translated to
addresses in each host. Note that the name elements of domains
are the official names -- no use of nicknames or aliases is
allowed.
Sometimes a host is not known to the translation function and
communication is blocked. To bypass this barrier two numeric
forms are also allowed for host "names". One form is a decimal
integer prefixed by a pound sign, "#", which indicates the
number is the address of the host. Another form is four small
decimal integers separated by dots and enclosed by brackets,
e.g., "[123.255.37.2]", which indicates a 32-bit ARPA Internet
Address in four 8-bit fields.
Postel [Page 31]
August 1982 RFC 821
Simple Mail Transfer Protocol
The time stamp line and the return path line are formally
defined as follows:
<return-path-line> ::= "Return-Path:" <SP><reverse-path><CRLF>
<time-stamp-line> ::= "Received:" <SP> <stamp> <CRLF>
<stamp> ::= <from-domain> <by-domain> <opt-info> ";"
<daytime>
<from-domain> ::= "FROM" <SP> <domain> <SP>
<by-domain> ::= "BY" <SP> <domain> <SP>
<opt-info> ::= [<via>] [<with>] [<id>] [<for>]
<via> ::= "VIA" <SP> <link> <SP>
<with> ::= "WITH" <SP> <protocol> <SP>
<id> ::= "ID" <SP> <string> <SP>
<for> ::= "FOR" <SP> <path> <SP>
<link> ::= The standard names for links are registered with
the Network Information Center.
<protocol> ::= The standard names for protocols are
registered with the Network Information Center.
<daytime> ::= <SP> <date> <SP> <time>
<date> ::= <dd> <SP> <mon> <SP> <yy>
<time> ::= <hh> ":" <mm> ":" <ss> <SP> <zone>
<dd> ::= the one or two decimal integer day of the month in
the range 1 to 31.
<mon> ::= "JAN" | "FEB" | "MAR" | "APR" | "MAY" | "JUN" |
"JUL" | "AUG" | "SEP" | "OCT" | "NOV" | "DEC"
<yy> ::= the two decimal integer year of the century in the
range 00 to 99.
[Page 32] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
<hh> ::= the two decimal integer hour of the day in the
range 00 to 24.
<mm> ::= the two decimal integer minute of the hour in the
range 00 to 59.
<ss> ::= the two decimal integer second of the minute in the
range 00 to 59.
<zone> ::= "UT" for Universal Time (the default) or other
time zone designator (as in [2]).
-------------------------------------------------------------
Return Path Example
Return-Path: <@CHARLIE.ARPA,@BAKER.ARPA:JOE@ABLE.ARPA>
Example 9
-------------------------------------------------------------
-------------------------------------------------------------
Time Stamp Line Example
Received: FROM ABC.ARPA BY XYZ.ARPA ; 22 OCT 81 09:23:59 PDT
Received: from ABC.ARPA by XYZ.ARPA via TELENET with X25
id M12345 for Smith@PDQ.ARPA ; 22 OCT 81 09:23:59 PDT
Example 10
-------------------------------------------------------------
Postel [Page 33]
August 1982 RFC 821
Simple Mail Transfer Protocol
4.2. SMTP REPLIES
Replies to SMTP commands are devised to ensure the synchronization
of requests and actions in the process of mail transfer, and to
guarantee that the sender-SMTP always knows the state of the
receiver-SMTP. Every command must generate exactly one reply.
The details of the command-reply sequence are made explicit in
Section 5.3 on Sequencing and Section 5.4 State Diagrams.
An SMTP reply consists of a three digit number (transmitted as
three alphanumeric characters) followed by some text. The number
is intended for use by automata to determine what state to enter
next; the text is meant for the human user. It is intended that
the three digits contain enough encoded information that the
sender-SMTP need not examine the text and may either discard it or
pass it on to the user, as appropriate. In particular, the text
may be receiver-dependent and context dependent, so there are
likely to be varying texts for each reply code. A discussion of
the theory of reply codes is given in Appendix E. Formally, a
reply is defined to be the sequence: a three-digit code, <SP>,
one line of text, and <CRLF>, or a multiline reply (as defined in
Appendix E). Only the EXPN and HELP commands are expected to
result in multiline replies in normal circumstances, however
multiline replies are allowed for any command.
[Page 34] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
4.2.1. REPLY CODES BY FUNCTION GROUPS
500 Syntax error, command unrecognized
[This may include errors such as command line too long]
501 Syntax error in parameters or arguments
502 Command not implemented
503 Bad sequence of commands
504 Command parameter not implemented
211 System status, or system help reply
214 Help message
[Information on how to use the receiver or the meaning of a
particular non-standard command; this reply is useful only
to the human user]
220 <domain> Service ready
221 <domain> Service closing transmission channel
421 <domain> Service not available,
closing transmission channel
[This may be a reply to any command if the service knows it
must shut down]
250 Requested mail action okay, completed
251 User not local; will forward to <forward-path>
450 Requested mail action not taken: mailbox unavailable
[E.g., mailbox busy]
550 Requested action not taken: mailbox unavailable
[E.g., mailbox not found, no access]
451 Requested action aborted: error in processing
551 User not local; please try <forward-path>
452 Requested action not taken: insufficient system storage
552 Requested mail action aborted: exceeded storage allocation
553 Requested action not taken: mailbox name not allowed
[E.g., mailbox syntax incorrect]
354 Start mail input; end with <CRLF>.<CRLF>
554 Transaction failed
Postel [Page 35]
August 1982 RFC 821
Simple Mail Transfer Protocol
4.2.2. NUMERIC ORDER LIST OF REPLY CODES
211 System status, or system help reply
214 Help message
[Information on how to use the receiver or the meaning of a
particular non-standard command; this reply is useful only
to the human user]
220 <domain> Service ready
221 <domain> Service closing transmission channel
250 Requested mail action okay, completed
251 User not local; will forward to <forward-path>
354 Start mail input; end with <CRLF>.<CRLF>
421 <domain> Service not available,
closing transmission channel
[This may be a reply to any command if the service knows it
must shut down]
450 Requested mail action not taken: mailbox unavailable
[E.g., mailbox busy]
451 Requested action aborted: local error in processing
452 Requested action not taken: insufficient system storage
500 Syntax error, command unrecognized
[This may include errors such as command line too long]
501 Syntax error in parameters or arguments
502 Command not implemented
503 Bad sequence of commands
504 Command parameter not implemented
550 Requested action not taken: mailbox unavailable
[E.g., mailbox not found, no access]
551 User not local; please try <forward-path>
552 Requested mail action aborted: exceeded storage allocation
553 Requested action not taken: mailbox name not allowed
[E.g., mailbox syntax incorrect]
554 Transaction failed
[Page 36] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
4.3. SEQUENCING OF COMMANDS AND REPLIES
The communication between the sender and receiver is intended to
be an alternating dialogue, controlled by the sender. As such,
the sender issues a command and the receiver responds with a
reply. The sender must wait for this response before sending
further commands.
One important reply is the connection greeting. Normally, a
receiver will send a 220 "Service ready" reply when the connection
is completed. The sender should wait for this greeting message
before sending any commands.
Note: all the greeting type replies have the official name of
the server host as the first word following the reply code.
For example,
220 <SP> USC-ISIF.ARPA <SP> Service ready <CRLF>
The table below lists alternative success and failure replies for
each command. These must be strictly adhered to; a receiver may
substitute text in the replies, but the meaning and action implied
by the code numbers and by the specific command reply sequence
cannot be altered.
COMMAND-REPLY SEQUENCES
Each command is listed with its possible replies. The prefixes
used before the possible replies are "P" for preliminary (not
used in SMTP), "I" for intermediate, "S" for success, "F" for
failure, and "E" for error. The 421 reply (service not
available, closing transmission channel) may be given to any
command if the SMTP-receiver knows it must shut down. This
listing forms the basis for the State Diagrams in Section 4.4.
CONNECTION ESTABLISHMENT
S: 220
F: 421
HELO
S: 250
E: 500, 501, 504, 421
MAIL
S: 250
F: 552, 451, 452
E: 500, 501, 421
Postel [Page 37]
August 1982 RFC 821
Simple Mail Transfer Protocol
RCPT
S: 250, 251
F: 550, 551, 552, 553, 450, 451, 452
E: 500, 501, 503, 421
DATA
I: 354 -> data -> S: 250
F: 552, 554, 451, 452
F: 451, 554
E: 500, 501, 503, 421
RSET
S: 250
E: 500, 501, 504, 421
SEND
S: 250
F: 552, 451, 452
E: 500, 501, 502, 421
SOML
S: 250
F: 552, 451, 452
E: 500, 501, 502, 421
SAML
S: 250
F: 552, 451, 452
E: 500, 501, 502, 421
VRFY
S: 250, 251
F: 550, 551, 553
E: 500, 501, 502, 504, 421
EXPN
S: 250
F: 550
E: 500, 501, 502, 504, 421
HELP
S: 211, 214
E: 500, 501, 502, 504, 421
NOOP
S: 250
E: 500, 421
QUIT
S: 221
E: 500
TURN
S: 250
F: 502
E: 500, 503
[Page 38] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
4.4. STATE DIAGRAMS
Following are state diagrams for a simple-minded SMTP
implementation. Only the first digit of the reply codes is used.
There is one state diagram for each group of SMTP commands. The
command groupings were determined by constructing a model for each
command and then collecting together the commands with
structurally identical models.
For each command there are three possible outcomes: "success"
(S), "failure" (F), and "error" (E). In the state diagrams below
we use the symbol B for "begin", and the symbol W for "wait for
reply".
First, the diagram that represents most of the SMTP commands:
1,3 +---+
----------->| E |
| +---+
|
+---+ cmd +---+ 2 +---+
| B |---------->| W |---------->| S |
+---+ +---+ +---+
|
| 4,5 +---+
----------->| F |
+---+
This diagram models the commands:
HELO, MAIL, RCPT, RSET, SEND, SOML, SAML, VRFY, EXPN, HELP,
NOOP, QUIT, TURN.
Postel [Page 39]
August 1982 RFC 821
Simple Mail Transfer Protocol
A more complex diagram models the DATA command:
+---+ DATA +---+ 1,2 +---+
| B |---------->| W |-------------------->| E |
+---+ +---+ ------------>+---+
3| |4,5 |
| | |
-------------- ----- |
| | | +---+
| ---------- -------->| S |
| | | | +---+
| | ------------
| | | |
V 1,3| |2 |
+---+ data +---+ --------------->+---+
| |---------->| W | | F |
+---+ +---+-------------------->+---+
4,5
Note that the "data" here is a series of lines sent from the
sender to the receiver with no response expected until the last
line is sent.
[Page 40] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
4.5. DETAILS
4.5.1. MINIMUM IMPLEMENTATION
In order to make SMTP workable, the following minimum
implementation is required for all receivers:
COMMANDS -- HELO
MAIL
RCPT
DATA
RSET
NOOP
QUIT
4.5.2. TRANSPARENCY
Without some provision for data transparency the character
sequence "<CRLF>.<CRLF>" ends the mail text and cannot be sent
by the user. In general, users are not aware of such
"forbidden" sequences. To allow all user composed text to be
transmitted transparently the following procedures are used.
1. Before sending a line of mail text the sender-SMTP checks
the first character of the line. If it is a period, one
additional period is inserted at the beginning of the line.
2. When a line of mail text is received by the receiver-SMTP
it checks the line. If the line is composed of a single
period it is the end of mail. If the first character is a
period and there are other characters on the line, the first
character is deleted.
The mail data may contain any of the 128 ASCII characters. All
characters are to be delivered to the recipient's mailbox
including format effectors and other control characters. If
the transmission channel provides an 8-bit byte (octets) data
stream, the 7-bit ASCII codes are transmitted right justified
in the octets with the high order bits cleared to zero.
In some systems it may be necessary to transform the data as
it is received and stored. This may be necessary for hosts
that use a different character set than ASCII as their local
character set, or that store data in records rather than
Postel [Page 41]
August 1982 RFC 821
Simple Mail Transfer Protocol
strings. If such transforms are necessary, they must be
reversible -- especially if such transforms are applied to
mail being relayed.
4.5.3. SIZES
There are several objects that have required minimum maximum
sizes. That is, every implementation must be able to receive
objects of at least these sizes, but must not send objects
larger than these sizes.
****************************************************
* *
* TO THE MAXIMUM EXTENT POSSIBLE, IMPLEMENTATION *
* TECHNIQUES WHICH IMPOSE NO LIMITS ON THE LENGTH *
* OF THESE OBJECTS SHOULD BE USED. *
* *
****************************************************
user
The maximum total length of a user name is 64 characters.
domain
The maximum total length of a domain name or number is 64
characters.
path
The maximum total length of a reverse-path or
forward-path is 256 characters (including the punctuation
and element separators).
command line
The maximum total length of a command line including the
command word and the <CRLF> is 512 characters.
reply line
The maximum total length of a reply line including the
reply code and the <CRLF> is 512 characters.
[Page 42] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
text line
The maximum total length of a text line including the
<CRLF> is 1000 characters (but not counting the leading
dot duplicated for transparency).
recipients buffer
The maximum total number of recipients that must be
buffered is 100 recipients.
****************************************************
* *
* TO THE MAXIMUM EXTENT POSSIBLE, IMPLEMENTATION *
* TECHNIQUES WHICH IMPOSE NO LIMITS ON THE LENGTH *
* OF THESE OBJECTS SHOULD BE USED. *
* *
****************************************************
Errors due to exceeding these limits may be reported by using
the reply codes, for example:
500 Line too long.
501 Path too long
552 Too many recipients.
552 Too much mail data.
Postel [Page 43]
August 1982 RFC 821
Simple Mail Transfer Protocol
APPENDIX A
TCP Transport service
The Transmission Control Protocol [3] is used in the ARPA
Internet, and in any network following the US DoD standards for
internetwork protocols.
Connection Establishment
The SMTP transmission channel is a TCP connection established
between the sender process port U and the receiver process port
L. This single full duplex connection is used as the
transmission channel. This protocol is assigned the service
port 25 (31 octal), that is L=25.
Data Transfer
The TCP connection supports the transmission of 8-bit bytes.
The SMTP data is 7-bit ASCII characters. Each character is
transmitted as an 8-bit byte with the high-order bit cleared to
zero.
[Page 44] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
APPENDIX B
NCP Transport service
The ARPANET Host-to-Host Protocol [4] (implemented by the Network
Control Program) may be used in the ARPANET.
Connection Establishment
The SMTP transmission channel is established via NCP between
the sender process socket U and receiver process socket L. The
Initial Connection Protocol [5] is followed resulting in a pair
of simplex connections. This pair of connections is used as
the transmission channel. This protocol is assigned the
contact socket 25 (31 octal), that is L=25.
Data Transfer
The NCP data connections are established in 8-bit byte mode.
The SMTP data is 7-bit ASCII characters. Each character is
transmitted as an 8-bit byte with the high-order bit cleared to
zero.
Postel [Page 45]
August 1982 RFC 821
Simple Mail Transfer Protocol
APPENDIX C
NITS
The Network Independent Transport Service [6] may be used.
Connection Establishment
The SMTP transmission channel is established via NITS between
the sender process and receiver process. The sender process
executes the CONNECT primitive, and the waiting receiver
process executes the ACCEPT primitive.
Data Transfer
The NITS connection supports the transmission of 8-bit bytes.
The SMTP data is 7-bit ASCII characters. Each character is
transmitted as an 8-bit byte with the high-order bit cleared to
zero.
[Page 46] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
APPENDIX D
X.25 Transport service
It may be possible to use the X.25 service [7] as provided by the
Public Data Networks directly, however, it is suggested that a
reliable end-to-end protocol such as TCP be used on top of X.25
connections.
Postel [Page 47]
August 1982 RFC 821
Simple Mail Transfer Protocol
APPENDIX E
Theory of Reply Codes
The three digits of the reply each have a special significance.
The first digit denotes whether the response is good, bad or
incomplete. An unsophisticated sender-SMTP will be able to
determine its next action (proceed as planned, redo, retrench,
etc.) by simply examining this first digit. A sender-SMTP that
wants to know approximately what kind of error occurred (e.g.,
mail system error, command syntax error) may examine the second
digit, reserving the third digit for the finest gradation of
information.
There are five values for the first digit of the reply code:
1yz Positive Preliminary reply
The command has been accepted, but the requested action
is being held in abeyance, pending confirmation of the
information in this reply. The sender-SMTP should send
another command specifying whether to continue or abort
the action.
[Note: SMTP does not have any commands that allow this
type of reply, and so does not have the continue or
abort commands.]
2yz Positive Completion reply
The requested action has been successfully completed. A
new request may be initiated.
3yz Positive Intermediate reply
The command has been accepted, but the requested action
is being held in abeyance, pending receipt of further
information. The sender-SMTP should send another command
specifying this information. This reply is used in
command sequence groups.
4yz Transient Negative Completion reply
The command was not accepted and the requested action did
not occur. However, the error condition is temporary and
the action may be requested again. The sender should
[Page 48] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
return to the beginning of the command sequence (if any).
It is difficult to assign a meaning to "transient" when
two different sites (receiver- and sender- SMTPs) must
agree on the interpretation. Each reply in this category
might have a different time value, but the sender-SMTP is
encouraged to try again. A rule of thumb to determine if
a reply fits into the 4yz or the 5yz category (see below)
is that replies are 4yz if they can be repeated without
any change in command form or in properties of the sender
or receiver. (E.g., the command is repeated identically
and the receiver does not put up a new implementation.)
5yz Permanent Negative Completion reply
The command was not accepted and the requested action did
not occur. The sender-SMTP is discouraged from repeating
the exact request (in the same sequence). Even some
"permanent" error conditions can be corrected, so the
human user may want to direct the sender-SMTP to
reinitiate the command sequence by direct action at some
point in the future (e.g., after the spelling has been
changed, or the user has altered the account status).
The second digit encodes responses in specific categories:
x0z Syntax -- These replies refer to syntax errors,
syntactically correct commands that don't fit any
functional category, and unimplemented or superfluous
commands.
x1z Information -- These are replies to requests for
information, such as status or help.
x2z Connections -- These are replies referring to the
transmission channel.
x3z Unspecified as yet.
x4z Unspecified as yet.
x5z Mail system -- These replies indicate the status of
the receiver mail system vis-a-vis the requested
transfer or other mail system action.
The third digit gives a finer gradation of meaning in each
category specified by the second digit. The list of replies
Postel [Page 49]
August 1982 RFC 821
Simple Mail Transfer Protocol
illustrates this. Each reply text is recommended rather than
mandatory, and may even change according to the command with
which it is associated. On the other hand, the reply codes
must strictly follow the specifications in this section.
Receiver implementations should not invent new codes for
slightly different situations from the ones described here, but
rather adapt codes already defined.
For example, a command such as NOOP whose successful execution
does not offer the sender-SMTP any new information will return
a 250 reply. The response is 502 when the command requests an
unimplemented non-site-specific action. A refinement of that
is the 504 reply for a command that is implemented, but that
requests an unimplemented parameter.
The reply text may be longer than a single line; in these cases
the complete text must be marked so the sender-SMTP knows when it
can stop reading the reply. This requires a special format to
indicate a multiple line reply.
The format for multiline replies requires that every line,
except the last, begin with the reply code, followed
immediately by a hyphen, "-" (also known as minus), followed by
text. The last line will begin with the reply code, followed
immediately by <SP>, optionally some text, and <CRLF>.
For example:
123-First line
123-Second line
123-234 text beginning with numbers
123 The last line
In many cases the sender-SMTP then simply needs to search for
the reply code followed by <SP> at the beginning of a line, and
ignore all preceding lines. In a few cases, there is important
data for the sender in the reply "text". The sender will know
these cases from the current context.
[Page 50] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
APPENDIX F
Scenarios
This section presents complete scenarios of several types of SMTP
sessions.
A Typical SMTP Transaction Scenario
This SMTP example shows mail sent by Smith at host USC-ISIF, to
Jones, Green, and Brown at host BBN-UNIX. Here we assume that
host USC-ISIF contacts host BBN-UNIX directly. The mail is
accepted for Jones and Brown. Green does not have a mailbox at
host BBN-UNIX.
-------------------------------------------------------------
R: 220 BBN-UNIX.ARPA Simple Mail Transfer Service Ready
S: HELO USC-ISIF.ARPA
R: 250 BBN-UNIX.ARPA
S: MAIL FROM:<Smith@USC-ISIF.ARPA>
R: 250 OK
S: RCPT TO:<Jones@BBN-UNIX.ARPA>
R: 250 OK
S: RCPT TO:<Green@BBN-UNIX.ARPA>
R: 550 No such user here
S: RCPT TO:<Brown@BBN-UNIX.ARPA>
R: 250 OK
S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Blah blah blah...
S: ...etc. etc. etc.
S: .
R: 250 OK
S: QUIT
R: 221 BBN-UNIX.ARPA Service closing transmission channel
Scenario 1
-------------------------------------------------------------
Postel [Page 51]
August 1982 RFC 821
Simple Mail Transfer Protocol
Aborted SMTP Transaction Scenario
-------------------------------------------------------------
R: 220 MIT-Multics.ARPA Simple Mail Transfer Service Ready
S: HELO ISI-VAXA.ARPA
R: 250 MIT-Multics.ARPA
S: MAIL FROM:<Smith@ISI-VAXA.ARPA>
R: 250 OK
S: RCPT TO:<Jones@MIT-Multics.ARPA>
R: 250 OK
S: RCPT TO:<Green@MIT-Multics.ARPA>
R: 550 No such user here
S: RSET
R: 250 OK
S: QUIT
R: 221 MIT-Multics.ARPA Service closing transmission channel
Scenario 2
-------------------------------------------------------------
[Page 52] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
Relayed Mail Scenario
-------------------------------------------------------------
Step 1 -- Source Host to Relay Host
R: 220 USC-ISIE.ARPA Simple Mail Transfer Service Ready
S: HELO MIT-AI.ARPA
R: 250 USC-ISIE.ARPA
S: MAIL FROM:<JQP@MIT-AI.ARPA>
R: 250 OK
S: RCPT TO:<@USC-ISIE.ARPA:Jones@BBN-VAX.ARPA>
R: 250 OK
S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Date: 2 Nov 81 22:33:44
S: From: John Q. Public <JQP@MIT-AI.ARPA>
S: Subject: The Next Meeting of the Board
S: To: Jones@BBN-Vax.ARPA
S:
S: Bill:
S: The next meeting of the board of directors will be
S: on Tuesday.
S: John.
S: .
R: 250 OK
S: QUIT
R: 221 USC-ISIE.ARPA Service closing transmission channel
Postel [Page 53]
August 1982 RFC 821
Simple Mail Transfer Protocol
Step 2 -- Relay Host to Destination Host
R: 220 BBN-VAX.ARPA Simple Mail Transfer Service Ready
S: HELO USC-ISIE.ARPA
R: 250 BBN-VAX.ARPA
S: MAIL FROM:<@USC-ISIE.ARPA:JQP@MIT-AI.ARPA>
R: 250 OK
S: RCPT TO:<Jones@BBN-VAX.ARPA>
R: 250 OK
S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Received: from MIT-AI.ARPA by USC-ISIE.ARPA ;
2 Nov 81 22:40:10 UT
S: Date: 2 Nov 81 22:33:44
S: From: John Q. Public <JQP@MIT-AI.ARPA>
S: Subject: The Next Meeting of the Board
S: To: Jones@BBN-Vax.ARPA
S:
S: Bill:
S: The next meeting of the board of directors will be
S: on Tuesday.
S: John.
S: .
R: 250 OK
S: QUIT
R: 221 USC-ISIE.ARPA Service closing transmission channel
Scenario 3
-------------------------------------------------------------
[Page 54] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
Verifying and Sending Scenario
-------------------------------------------------------------
R: 220 SU-SCORE.ARPA Simple Mail Transfer Service Ready
S: HELO MIT-MC.ARPA
R: 250 SU-SCORE.ARPA
S: VRFY Crispin
R: 250 Mark Crispin <Admin.MRC@SU-SCORE.ARPA>
S: SEND FROM:<EAK@MIT-MC.ARPA>
R: 250 OK
S: RCPT TO:<Admin.MRC@SU-SCORE.ARPA>
R: 250 OK
S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Blah blah blah...
S: ...etc. etc. etc.
S: .
R: 250 OK
S: QUIT
R: 221 SU-SCORE.ARPA Service closing transmission channel
Scenario 4
-------------------------------------------------------------
Postel [Page 55]
August 1982 RFC 821
Simple Mail Transfer Protocol
Sending and Mailing Scenarios
First the user's name is verified, then an attempt is made to
send to the user's terminal. When that fails, the messages is
mailed to the user's mailbox.
-------------------------------------------------------------
R: 220 SU-SCORE.ARPA Simple Mail Transfer Service Ready
S: HELO MIT-MC.ARPA
R: 250 SU-SCORE.ARPA
S: VRFY Crispin
R: 250 Mark Crispin <Admin.MRC@SU-SCORE.ARPA>
S: SEND FROM:<EAK@MIT-MC.ARPA>
R: 250 OK
S: RCPT TO:<Admin.MRC@SU-SCORE.ARPA>
R: 450 User not active now
S: RSET
R: 250 OK
S: MAIL FROM:<EAK@MIT-MC.ARPA>
R: 250 OK
S: RCPT TO:<Admin.MRC@SU-SCORE.ARPA>
R: 250 OK
S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Blah blah blah...
S: ...etc. etc. etc.
S: .
R: 250 OK
S: QUIT
R: 221 SU-SCORE.ARPA Service closing transmission channel
Scenario 5
-------------------------------------------------------------
[Page 56] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
Doing the preceding scenario more efficiently.
-------------------------------------------------------------
R: 220 SU-SCORE.ARPA Simple Mail Transfer Service Ready
S: HELO MIT-MC.ARPA
R: 250 SU-SCORE.ARPA
S: VRFY Crispin
R: 250 Mark Crispin <Admin.MRC@SU-SCORE.ARPA>
S: SOML FROM:<EAK@MIT-MC.ARPA>
R: 250 OK
S: RCPT TO:<Admin.MRC@SU-SCORE.ARPA>
R: 250 User not active now, so will do mail.
S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Blah blah blah...
S: ...etc. etc. etc.
S: .
R: 250 OK
S: QUIT
R: 221 SU-SCORE.ARPA Service closing transmission channel
Scenario 6
-------------------------------------------------------------
Postel [Page 57]
August 1982 RFC 821
Simple Mail Transfer Protocol
Mailing List Scenario
First each of two mailing lists are expanded in separate sessions
with different hosts. Then the message is sent to everyone that
appeared on either list (but no duplicates) via a relay host.
-------------------------------------------------------------
Step 1 -- Expanding the First List
R: 220 MIT-AI.ARPA Simple Mail Transfer Service Ready
S: HELO SU-SCORE.ARPA
R: 250 MIT-AI.ARPA
S: EXPN Example-People
R: 250-<ABC@MIT-MC.ARPA>
R: 250-Fred Fonebone <Fonebone@USC-ISIQ.ARPA>
R: 250-Xenon Y. Zither <XYZ@MIT-AI.ARPA>
R: 250-Quincy Smith <@USC-ISIF.ARPA:Q-Smith@ISI-VAXA.ARPA>
R: 250-<joe@foo-unix.ARPA>
R: 250 <xyz@bar-unix.ARPA>
S: QUIT
R: 221 MIT-AI.ARPA Service closing transmission channel
[Page 58] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
Step 2 -- Expanding the Second List
R: 220 MIT-MC.ARPA Simple Mail Transfer Service Ready
S: HELO SU-SCORE.ARPA
R: 250 MIT-MC.ARPA
S: EXPN Interested-Parties
R: 250-Al Calico <ABC@MIT-MC.ARPA>
R: 250-<XYZ@MIT-AI.ARPA>
R: 250-Quincy Smith <@USC-ISIF.ARPA:Q-Smith@ISI-VAXA.ARPA>
R: 250-<fred@BBN-UNIX.ARPA>
R: 250 <xyz@bar-unix.ARPA>
S: QUIT
R: 221 MIT-MC.ARPA Service closing transmission channel
Postel [Page 59]
August 1982 RFC 821
Simple Mail Transfer Protocol
Step 3 -- Mailing to All via a Relay Host
R: 220 USC-ISIE.ARPA Simple Mail Transfer Service Ready
S: HELO SU-SCORE.ARPA
R: 250 USC-ISIE.ARPA
S: MAIL FROM:<Account.Person@SU-SCORE.ARPA>
R: 250 OK
S: RCPT TO:<@USC-ISIE.ARPA:ABC@MIT-MC.ARPA>
R: 250 OK
S: RCPT TO:<@USC-ISIE.ARPA:Fonebone@USC-ISIQA.ARPA>
R: 250 OK
S: RCPT TO:<@USC-ISIE.ARPA:XYZ@MIT-AI.ARPA>
R: 250 OK
S: RCPT
TO:<@USC-ISIE.ARPA,@USC-ISIF.ARPA:Q-Smith@ISI-VAXA.ARPA>
R: 250 OK
S: RCPT TO:<@USC-ISIE.ARPA:joe@FOO-UNIX.ARPA>
R: 250 OK
S: RCPT TO:<@USC-ISIE.ARPA:xyz@BAR-UNIX.ARPA>
R: 250 OK
S: RCPT TO:<@USC-ISIE.ARPA:fred@BBN-UNIX.ARPA>
R: 250 OK
S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Blah blah blah...
S: ...etc. etc. etc.
S: .
R: 250 OK
S: QUIT
R: 221 USC-ISIE.ARPA Service closing transmission channel
Scenario 7
-------------------------------------------------------------
[Page 60] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
Forwarding Scenarios
-------------------------------------------------------------
R: 220 USC-ISIF.ARPA Simple Mail Transfer Service Ready
S: HELO LBL-UNIX.ARPA
R: 250 USC-ISIF.ARPA
S: MAIL FROM:<mo@LBL-UNIX.ARPA>
R: 250 OK
S: RCPT TO:<fred@USC-ISIF.ARPA>
R: 251 User not local; will forward to <Jones@USC-ISI.ARPA>
S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Blah blah blah...
S: ...etc. etc. etc.
S: .
R: 250 OK
S: QUIT
R: 221 USC-ISIF.ARPA Service closing transmission channel
Scenario 8
-------------------------------------------------------------
Postel [Page 61]
August 1982 RFC 821
Simple Mail Transfer Protocol
-------------------------------------------------------------
Step 1 -- Trying the Mailbox at the First Host
R: 220 USC-ISIF.ARPA Simple Mail Transfer Service Ready
S: HELO LBL-UNIX.ARPA
R: 250 USC-ISIF.ARPA
S: MAIL FROM:<mo@LBL-UNIX.ARPA>
R: 250 OK
S: RCPT TO:<fred@USC-ISIF.ARPA>
R: 251 User not local; will forward to <Jones@USC-ISI.ARPA>
S: RSET
R: 250 OK
S: QUIT
R: 221 USC-ISIF.ARPA Service closing transmission channel
Step 2 -- Delivering the Mail at the Second Host
R: 220 USC-ISI.ARPA Simple Mail Transfer Service Ready
S: HELO LBL-UNIX.ARPA
R: 250 USC-ISI.ARPA
S: MAIL FROM:<mo@LBL-UNIX.ARPA>
R: 250 OK
S: RCPT TO:<Jones@USC-ISI.ARPA>
R: OK
S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Blah blah blah...
S: ...etc. etc. etc.
S: .
R: 250 OK
S: QUIT
R: 221 USC-ISI.ARPA Service closing transmission channel
Scenario 9
-------------------------------------------------------------
[Page 62] Postel
RFC 821 August 1982
Simple Mail Transfer Protocol
Too Many Recipients Scenario
-------------------------------------------------------------
R: 220 BERKELEY.ARPA Simple Mail Transfer Service Ready
S: HELO USC-ISIF.ARPA
R: 250 BERKELEY.ARPA
S: MAIL FROM:<Postel@USC-ISIF.ARPA>
R: 250 OK
S: RCPT TO:<fabry@BERKELEY.ARPA>
R: 250 OK
S: RCPT TO:<eric@BERKELEY.ARPA>
R: 552 Recipient storage full, try again in another transaction
S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Blah blah blah...
S: ...etc. etc. etc.
S: .
R: 250 OK
S: MAIL FROM:<Postel@USC-ISIF.ARPA>
R: 250 OK
S: RCPT TO:<eric@BERKELEY.ARPA>
R: 250 OK
S: DATA
R: 354 Start mail input; end with <CRLF>.<CRLF>
S: Blah blah blah...
S: ...etc. etc. etc.
S: .
R: 250 OK
S: QUIT
R: 221 BERKELEY.ARPA Service closing transmission channel
Scenario 10
-------------------------------------------------------------
Note that a real implementation must handle many recipients as
specified in Section 4.5.3.
Postel [Page 63]
August 1982 RFC 821
Simple Mail Transfer Protocol
GLOSSARY
ASCII
American Standard Code for Information Interchange [1].
command
A request for a mail service action sent by the sender-SMTP to the
receiver-SMTP.
domain
The hierarchially structured global character string address of a
host computer in the mail system.
end of mail data indication
A special sequence of ch
gitextract_gp3ij5u3/
├── .gitattributes
├── .github/
│ ├── ISSUE_TEMPLATE.md
│ ├── PULL_REQUEST_TEMPLATE.md
│ └── workflows/
│ └── tests.yml
├── .gitignore
├── .php_cs.dist
├── CHANGES
├── LICENSE
├── README.md
├── composer.json
├── doc/
│ ├── headers.rst
│ ├── index.rst
│ ├── introduction.rst
│ ├── japanese.rst
│ ├── messages.rst
│ ├── notes/
│ │ ├── CHARSETS
│ │ ├── rfc/
│ │ │ ├── rfc0821.txt
│ │ │ ├── rfc0822.txt
│ │ │ ├── rfc1341.txt
│ │ │ ├── rfc1521.txt
│ │ │ ├── rfc1854.txt
│ │ │ ├── rfc2015.txt
│ │ │ ├── rfc2045.txt
│ │ │ ├── rfc2046.txt
│ │ │ ├── rfc2047.txt
│ │ │ ├── rfc2048.txt
│ │ │ ├── rfc2049.txt
│ │ │ ├── rfc2183.txt
│ │ │ ├── rfc2222.txt
│ │ │ ├── rfc2231.txt
│ │ │ ├── rfc2234.txt
│ │ │ ├── rfc2440.txt
│ │ │ ├── rfc2487.txt
│ │ │ ├── rfc2554.txt
│ │ │ ├── rfc2821.txt
│ │ │ ├── rfc2822.txt
│ │ │ ├── rfc3156.txt
│ │ │ ├── rfc3676.txt
│ │ │ ├── rfc4505.txt
│ │ │ ├── rfc4616.txt
│ │ │ ├── rfc4870.txt
│ │ │ ├── rfc4871.txt
│ │ │ ├── rfc4880.txt
│ │ │ ├── rfc4954.txt
│ │ │ ├── rfc5751.txt
│ │ │ └── whats_where.txt
│ │ ├── rfc5672.txt
│ │ ├── rfc6376.txt
│ │ └── smtp.txt
│ ├── plugins.rst
│ └── sending.rst
├── lib/
│ ├── classes/
│ │ ├── Swift/
│ │ │ ├── AddressEncoder/
│ │ │ │ ├── IdnAddressEncoder.php
│ │ │ │ └── Utf8AddressEncoder.php
│ │ │ ├── AddressEncoder.php
│ │ │ ├── AddressEncoderException.php
│ │ │ ├── Attachment.php
│ │ │ ├── ByteStream/
│ │ │ │ ├── AbstractFilterableInputStream.php
│ │ │ │ ├── ArrayByteStream.php
│ │ │ │ ├── FileByteStream.php
│ │ │ │ └── TemporaryFileByteStream.php
│ │ │ ├── CharacterReader/
│ │ │ │ ├── GenericFixedWidthReader.php
│ │ │ │ ├── UsAsciiReader.php
│ │ │ │ └── Utf8Reader.php
│ │ │ ├── CharacterReader.php
│ │ │ ├── CharacterReaderFactory/
│ │ │ │ └── SimpleCharacterReaderFactory.php
│ │ │ ├── CharacterReaderFactory.php
│ │ │ ├── CharacterStream/
│ │ │ │ ├── ArrayCharacterStream.php
│ │ │ │ └── NgCharacterStream.php
│ │ │ ├── CharacterStream.php
│ │ │ ├── ConfigurableSpool.php
│ │ │ ├── DependencyContainer.php
│ │ │ ├── DependencyException.php
│ │ │ ├── EmbeddedFile.php
│ │ │ ├── Encoder/
│ │ │ │ ├── Base64Encoder.php
│ │ │ │ ├── QpEncoder.php
│ │ │ │ └── Rfc2231Encoder.php
│ │ │ ├── Encoder.php
│ │ │ ├── Events/
│ │ │ │ ├── CommandEvent.php
│ │ │ │ ├── CommandListener.php
│ │ │ │ ├── Event.php
│ │ │ │ ├── EventDispatcher.php
│ │ │ │ ├── EventListener.php
│ │ │ │ ├── EventObject.php
│ │ │ │ ├── ResponseEvent.php
│ │ │ │ ├── ResponseListener.php
│ │ │ │ ├── SendEvent.php
│ │ │ │ ├── SendListener.php
│ │ │ │ ├── SimpleEventDispatcher.php
│ │ │ │ ├── TransportChangeEvent.php
│ │ │ │ ├── TransportChangeListener.php
│ │ │ │ ├── TransportExceptionEvent.php
│ │ │ │ └── TransportExceptionListener.php
│ │ │ ├── FailoverTransport.php
│ │ │ ├── FileSpool.php
│ │ │ ├── FileStream.php
│ │ │ ├── Filterable.php
│ │ │ ├── IdGenerator.php
│ │ │ ├── Image.php
│ │ │ ├── InputByteStream.php
│ │ │ ├── IoException.php
│ │ │ ├── KeyCache/
│ │ │ │ ├── ArrayKeyCache.php
│ │ │ │ ├── DiskKeyCache.php
│ │ │ │ ├── KeyCacheInputStream.php
│ │ │ │ ├── NullKeyCache.php
│ │ │ │ └── SimpleKeyCacheInputStream.php
│ │ │ ├── KeyCache.php
│ │ │ ├── LoadBalancedTransport.php
│ │ │ ├── Mailer/
│ │ │ │ ├── ArrayRecipientIterator.php
│ │ │ │ └── RecipientIterator.php
│ │ │ ├── Mailer.php
│ │ │ ├── MemorySpool.php
│ │ │ ├── Message.php
│ │ │ ├── Mime/
│ │ │ │ ├── Attachment.php
│ │ │ │ ├── CharsetObserver.php
│ │ │ │ ├── ContentEncoder/
│ │ │ │ │ ├── Base64ContentEncoder.php
│ │ │ │ │ ├── NativeQpContentEncoder.php
│ │ │ │ │ ├── NullContentEncoder.php
│ │ │ │ │ ├── PlainContentEncoder.php
│ │ │ │ │ ├── QpContentEncoder.php
│ │ │ │ │ ├── QpContentEncoderProxy.php
│ │ │ │ │ └── RawContentEncoder.php
│ │ │ │ ├── ContentEncoder.php
│ │ │ │ ├── EmbeddedFile.php
│ │ │ │ ├── EncodingObserver.php
│ │ │ │ ├── Header.php
│ │ │ │ ├── HeaderEncoder/
│ │ │ │ │ ├── Base64HeaderEncoder.php
│ │ │ │ │ └── QpHeaderEncoder.php
│ │ │ │ ├── HeaderEncoder.php
│ │ │ │ ├── Headers/
│ │ │ │ │ ├── AbstractHeader.php
│ │ │ │ │ ├── DateHeader.php
│ │ │ │ │ ├── IdentificationHeader.php
│ │ │ │ │ ├── MailboxHeader.php
│ │ │ │ │ ├── OpenDKIMHeader.php
│ │ │ │ │ ├── ParameterizedHeader.php
│ │ │ │ │ ├── PathHeader.php
│ │ │ │ │ └── UnstructuredHeader.php
│ │ │ │ ├── IdGenerator.php
│ │ │ │ ├── MimePart.php
│ │ │ │ ├── SimpleHeaderFactory.php
│ │ │ │ ├── SimpleHeaderSet.php
│ │ │ │ ├── SimpleMessage.php
│ │ │ │ └── SimpleMimeEntity.php
│ │ │ ├── MimePart.php
│ │ │ ├── NullTransport.php
│ │ │ ├── OutputByteStream.php
│ │ │ ├── Plugins/
│ │ │ │ ├── AntiFloodPlugin.php
│ │ │ │ ├── BandwidthMonitorPlugin.php
│ │ │ │ ├── Decorator/
│ │ │ │ │ └── Replacements.php
│ │ │ │ ├── DecoratorPlugin.php
│ │ │ │ ├── ImpersonatePlugin.php
│ │ │ │ ├── Logger.php
│ │ │ │ ├── LoggerPlugin.php
│ │ │ │ ├── Loggers/
│ │ │ │ │ ├── ArrayLogger.php
│ │ │ │ │ └── EchoLogger.php
│ │ │ │ ├── MessageLogger.php
│ │ │ │ ├── Pop/
│ │ │ │ │ ├── Pop3Connection.php
│ │ │ │ │ └── Pop3Exception.php
│ │ │ │ ├── PopBeforeSmtpPlugin.php
│ │ │ │ ├── RedirectingPlugin.php
│ │ │ │ ├── Reporter.php
│ │ │ │ ├── ReporterPlugin.php
│ │ │ │ ├── Reporters/
│ │ │ │ │ ├── HitReporter.php
│ │ │ │ │ └── HtmlReporter.php
│ │ │ │ ├── Sleeper.php
│ │ │ │ ├── ThrottlerPlugin.php
│ │ │ │ └── Timer.php
│ │ │ ├── Preferences.php
│ │ │ ├── ReplacementFilterFactory.php
│ │ │ ├── RfcComplianceException.php
│ │ │ ├── SendmailTransport.php
│ │ │ ├── Signer.php
│ │ │ ├── Signers/
│ │ │ │ ├── BodySigner.php
│ │ │ │ ├── DKIMSigner.php
│ │ │ │ ├── DomainKeySigner.php
│ │ │ │ ├── HeaderSigner.php
│ │ │ │ ├── OpenDKIMSigner.php
│ │ │ │ └── SMimeSigner.php
│ │ │ ├── SmtpTransport.php
│ │ │ ├── Spool.php
│ │ │ ├── SpoolTransport.php
│ │ │ ├── StreamFilter.php
│ │ │ ├── StreamFilters/
│ │ │ │ ├── ByteArrayReplacementFilter.php
│ │ │ │ ├── StringReplacementFilter.php
│ │ │ │ └── StringReplacementFilterFactory.php
│ │ │ ├── SwiftException.php
│ │ │ ├── Transport/
│ │ │ │ ├── AbstractSmtpTransport.php
│ │ │ │ ├── Esmtp/
│ │ │ │ │ ├── Auth/
│ │ │ │ │ │ ├── CramMd5Authenticator.php
│ │ │ │ │ │ ├── LoginAuthenticator.php
│ │ │ │ │ │ ├── NTLMAuthenticator.php
│ │ │ │ │ │ ├── PlainAuthenticator.php
│ │ │ │ │ │ └── XOAuth2Authenticator.php
│ │ │ │ │ ├── AuthHandler.php
│ │ │ │ │ ├── Authenticator.php
│ │ │ │ │ ├── EightBitMimeHandler.php
│ │ │ │ │ └── SmtpUtf8Handler.php
│ │ │ │ ├── EsmtpHandler.php
│ │ │ │ ├── EsmtpTransport.php
│ │ │ │ ├── FailoverTransport.php
│ │ │ │ ├── IoBuffer.php
│ │ │ │ ├── LoadBalancedTransport.php
│ │ │ │ ├── NullTransport.php
│ │ │ │ ├── SendmailTransport.php
│ │ │ │ ├── SmtpAgent.php
│ │ │ │ ├── SpoolTransport.php
│ │ │ │ └── StreamBuffer.php
│ │ │ ├── Transport.php
│ │ │ └── TransportException.php
│ │ └── Swift.php
│ ├── dependency_maps/
│ │ ├── cache_deps.php
│ │ ├── message_deps.php
│ │ ├── mime_deps.php
│ │ └── transport_deps.php
│ ├── mime_types.php
│ ├── preferences.php
│ ├── swift_required.php
│ └── swiftmailer_generate_mimes_config.php
├── phpunit.xml.dist
└── tests/
├── IdenticalBinaryConstraint.php
├── StreamCollector.php
├── SwiftMailerSmokeTestCase.php
├── SwiftMailerTestCase.php
├── _samples/
│ ├── charsets/
│ │ ├── iso-2022-jp/
│ │ │ └── one.txt
│ │ ├── iso-8859-1/
│ │ │ └── one.txt
│ │ └── utf-8/
│ │ ├── one.txt
│ │ ├── three.txt
│ │ └── two.txt
│ ├── dkim/
│ │ ├── dkim.test.priv
│ │ └── dkim.test.pub
│ ├── files/
│ │ └── data.txt
│ └── smime/
│ ├── CA.srl
│ ├── ca.crt
│ ├── ca.key
│ ├── create-cert.sh
│ ├── encrypt.crt
│ ├── encrypt.key
│ ├── encrypt2.crt
│ ├── encrypt2.key
│ ├── intermediate.crt
│ ├── intermediate.key
│ ├── sign.crt
│ ├── sign.key
│ ├── sign2.crt
│ └── sign2.key
├── acceptance/
│ └── Swift/
│ ├── AttachmentAcceptanceTest.php
│ ├── ByteStream/
│ │ └── FileByteStreamAcceptanceTest.php
│ ├── CharacterReaderFactory/
│ │ └── SimpleCharacterReaderFactoryAcceptanceTest.php
│ ├── DependencyContainerAcceptanceTest.php
│ ├── EmbeddedFileAcceptanceTest.php
│ ├── Encoder/
│ │ ├── Base64EncoderAcceptanceTest.php
│ │ ├── QpEncoderAcceptanceTest.php
│ │ └── Rfc2231EncoderAcceptanceTest.php
│ ├── KeyCache/
│ │ ├── ArrayKeyCacheAcceptanceTest.php
│ │ └── DiskKeyCacheAcceptanceTest.php
│ ├── MessageAcceptanceTest.php
│ ├── Mime/
│ │ ├── AttachmentAcceptanceTest.php
│ │ ├── ContentEncoder/
│ │ │ ├── Base64ContentEncoderAcceptanceTest.php
│ │ │ ├── NativeQpContentEncoderAcceptanceTest.php
│ │ │ ├── PlainContentEncoderAcceptanceTest.php
│ │ │ └── QpContentEncoderAcceptanceTest.php
│ │ ├── EmbeddedFileAcceptanceTest.php
│ │ ├── HeaderEncoder/
│ │ │ └── Base64HeaderEncoderAcceptanceTest.php
│ │ ├── MimePartAcceptanceTest.php
│ │ └── SimpleMessageAcceptanceTest.php
│ ├── MimePartAcceptanceTest.php
│ └── Transport/
│ └── StreamBuffer/
│ ├── AbstractStreamBufferAcceptanceTest.php
│ ├── BasicSocketAcceptanceTest.php
│ ├── ProcessAcceptanceTest.php
│ ├── SocketTimeoutTest.php
│ ├── SslSocketAcceptanceTest.php
│ └── TlsSocketAcceptanceTest.php
├── acceptance.conf.php.default
├── bootstrap.php
├── bug/
│ └── Swift/
│ ├── Bug111Test.php
│ ├── Bug118Test.php
│ ├── Bug206Test.php
│ ├── Bug274Test.php
│ ├── Bug34Test.php
│ ├── Bug35Test.php
│ ├── Bug38Test.php
│ ├── Bug518Test.php
│ ├── Bug51Test.php
│ ├── Bug534Test.php
│ ├── Bug650Test.php
│ ├── Bug71Test.php
│ ├── Bug76Test.php
│ └── BugFileByteStreamConsecutiveReadCallsTest.php
├── fixtures/
│ └── MimeEntityFixture.php
├── smoke/
│ └── Swift/
│ └── Smoke/
│ ├── AttachmentSmokeTest.php
│ ├── BasicSmokeTest.php
│ ├── HtmlWithAttachmentSmokeTest.php
│ └── InternationalSmokeTest.php
├── smoke.conf.php.default
└── unit/
└── Swift/
├── ByteStream/
│ └── ArrayByteStreamTest.php
├── CharacterReader/
│ ├── GenericFixedWidthReaderTest.php
│ ├── UsAsciiReaderTest.php
│ └── Utf8ReaderTest.php
├── CharacterStream/
│ └── ArrayCharacterStreamTest.php
├── DependencyContainerTest.php
├── Encoder/
│ ├── Base64EncoderTest.php
│ ├── QpEncoderTest.php
│ └── Rfc2231EncoderTest.php
├── Events/
│ ├── CommandEventTest.php
│ ├── EventObjectTest.php
│ ├── ResponseEventTest.php
│ ├── SendEventTest.php
│ ├── SimpleEventDispatcherTest.php
│ ├── TransportChangeEventTest.php
│ └── TransportExceptionEventTest.php
├── KeyCache/
│ ├── ArrayKeyCacheTest.php
│ └── SimpleKeyCacheInputStreamTest.php
├── Mailer/
│ └── ArrayRecipientIteratorTest.php
├── MailerTest.php
├── MessageTest.php
├── Mime/
│ ├── AbstractMimeEntityTest.php
│ ├── AttachmentTest.php
│ ├── ContentEncoder/
│ │ ├── Base64ContentEncoderTest.php
│ │ ├── PlainContentEncoderTest.php
│ │ └── QpContentEncoderTest.php
│ ├── EmbeddedFileTest.php
│ ├── HeaderEncoder/
│ │ ├── Base64HeaderEncoderTest.php
│ │ └── QpHeaderEncoderTest.php
│ ├── Headers/
│ │ ├── DateHeaderTest.php
│ │ ├── IdentificationHeaderTest.php
│ │ ├── MailboxHeaderTest.php
│ │ ├── ParameterizedHeaderTest.php
│ │ ├── PathHeaderTest.php
│ │ └── UnstructuredHeaderTest.php
│ ├── IdGeneratorTest.php
│ ├── MimePartTest.php
│ ├── SimpleHeaderFactoryTest.php
│ ├── SimpleHeaderSetTest.php
│ ├── SimpleMessageTest.php
│ └── SimpleMimeEntityTest.php
├── Plugins/
│ ├── AntiFloodPluginTest.php
│ ├── BandwidthMonitorPluginTest.php
│ ├── DecoratorPluginTest.php
│ ├── LoggerPluginTest.php
│ ├── Loggers/
│ │ ├── ArrayLoggerTest.php
│ │ └── EchoLoggerTest.php
│ ├── PopBeforeSmtpPluginTest.php
│ ├── RedirectingPluginTest.php
│ ├── ReporterPluginTest.php
│ ├── Reporters/
│ │ ├── HitReporterTest.php
│ │ └── HtmlReporterTest.php
│ └── ThrottlerPluginTest.php
├── Signers/
│ ├── DKIMSignerTest.php
│ ├── OpenDKIMSignerTest.php
│ └── SMimeSignerTest.php
├── StreamFilters/
│ ├── ByteArrayReplacementFilterTest.php
│ ├── StringReplacementFilterFactoryTest.php
│ └── StringReplacementFilterTest.php
└── Transport/
├── AbstractSmtpEventSupportTest.php
├── AbstractSmtpTest.php
├── Esmtp/
│ ├── Auth/
│ │ ├── CramMd5AuthenticatorTest.php
│ │ ├── LoginAuthenticatorTest.php
│ │ ├── NTLMAuthenticatorTest.php
│ │ └── PlainAuthenticatorTest.php
│ └── AuthHandlerTest.php
├── EsmtpTransport/
│ └── ExtensionSupportTest.php
├── EsmtpTransportTest.php
├── FailoverTransportTest.php
├── LoadBalancedTransportTest.php
├── SendmailTransportTest.php
└── StreamBufferTest.php
Showing preview only (248K chars total). Download the full file or copy to clipboard to get everything.
SYMBOL INDEX (2448 symbols across 280 files)
FILE: lib/classes/Swift.php
class Swift (line 16) | abstract class Swift
method init (line 31) | public static function init($callable)
method autoload (line 41) | public static function autoload($class)
method registerAutoload (line 71) | public static function registerAutoload($callable = null)
FILE: lib/classes/Swift/AddressEncoder.php
type Swift_AddressEncoder (line 16) | interface Swift_AddressEncoder
method encodeString (line 24) | public function encodeString(string $address): string;
FILE: lib/classes/Swift/AddressEncoder/IdnAddressEncoder.php
class Swift_AddressEncoder_IdnAddressEncoder (line 25) | class Swift_AddressEncoder_IdnAddressEncoder implements Swift_AddressEnc...
method encodeString (line 32) | public function encodeString(string $address): string
FILE: lib/classes/Swift/AddressEncoder/Utf8AddressEncoder.php
class Swift_AddressEncoder_Utf8AddressEncoder (line 27) | class Swift_AddressEncoder_Utf8AddressEncoder implements Swift_AddressEn...
method encodeString (line 32) | public function encodeString(string $address): string
FILE: lib/classes/Swift/AddressEncoderException.php
class Swift_AddressEncoderException (line 17) | class Swift_AddressEncoderException extends Swift_RfcComplianceException
method __construct (line 21) | public function __construct(string $message, string $address)
method getAddress (line 28) | public function getAddress(): string
FILE: lib/classes/Swift/Attachment.php
class Swift_Attachment (line 16) | class Swift_Attachment extends Swift_Mime_Attachment
method __construct (line 27) | public function __construct($data = null, $filename = null, $contentTy...
method fromPath (line 47) | public static function fromPath($path, $contentType = null)
FILE: lib/classes/Swift/ByteStream/AbstractFilterableInputStream.php
class Swift_ByteStream_AbstractFilterableInputStream (line 16) | abstract class Swift_ByteStream_AbstractFilterableInputStream implements...
method doCommit (line 47) | abstract protected function doCommit($bytes);
method flush (line 52) | abstract protected function flush();
method addFilter (line 59) | public function addFilter(Swift_StreamFilter $filter, $key)
method removeFilter (line 69) | public function removeFilter($key)
method write (line 83) | public function write($bytes)
method commit (line 102) | public function commit()
method bind (line 113) | public function bind(Swift_InputByteStream $is)
method unbind (line 125) | public function unbind(Swift_InputByteStream $is)
method flushBuffers (line 143) | public function flushBuffers()
method filter (line 156) | private function filter($bytes)
method doWrite (line 166) | private function doWrite($bytes)
FILE: lib/classes/Swift/ByteStream/ArrayByteStream.php
class Swift_ByteStream_ArrayByteStream (line 16) | class Swift_ByteStream_ArrayByteStream implements Swift_InputByteStream,...
method __construct (line 53) | public function __construct($stack = null)
method read (line 77) | public function read($length)
method write (line 99) | public function write($bytes)
method commit (line 115) | public function commit()
method bind (line 125) | public function bind(Swift_InputByteStream $is)
method unbind (line 137) | public function unbind(Swift_InputByteStream $is)
method setReadPointer (line 153) | public function setReadPointer($byteOffset)
method flushBuffers (line 168) | public function flushBuffers()
FILE: lib/classes/Swift/ByteStream/FileByteStream.php
class Swift_ByteStream_FileByteStream (line 16) | class Swift_ByteStream_FileByteStream extends Swift_ByteStream_AbstractF...
method __construct (line 42) | public function __construct($path, $writable = false)
method getPath (line 56) | public function getPath()
method read (line 75) | public function read($length)
method setReadPointer (line 105) | public function setReadPointer($byteOffset)
method doCommit (line 114) | protected function doCommit($bytes)
method flush (line 121) | protected function flush()
method getReadHandle (line 126) | private function getReadHandle()
method getWriteHandle (line 144) | private function getWriteHandle()
method resetReadHandle (line 156) | private function resetReadHandle()
method getReadStreamSeekableStatus (line 165) | private function getReadStreamSeekableStatus()
method seekReadStreamToPosition (line 172) | private function seekReadStreamToPosition($offset)
method copyReadStream (line 191) | private function copyReadStream()
FILE: lib/classes/Swift/ByteStream/TemporaryFileByteStream.php
class Swift_ByteStream_TemporaryFileByteStream (line 14) | class Swift_ByteStream_TemporaryFileByteStream extends Swift_ByteStream_...
method __construct (line 16) | public function __construct()
method getContent (line 27) | public function getContent()
method __destruct (line 36) | public function __destruct()
method __sleep (line 43) | public function __sleep()
method __wakeup (line 48) | public function __wakeup()
FILE: lib/classes/Swift/CharacterReader.php
type Swift_CharacterReader (line 17) | interface Swift_CharacterReader
method getCharPositions (line 33) | public function getCharPositions($string, $startOffset, &$currentMap, ...
method getMapType (line 40) | public function getMapType();
method validateByteSequence (line 56) | public function validateByteSequence($bytes, $size);
method getInitialByteSize (line 66) | public function getInitialByteSize();
FILE: lib/classes/Swift/CharacterReader/GenericFixedWidthReader.php
class Swift_CharacterReader_GenericFixedWidthReader (line 17) | class Swift_CharacterReader_GenericFixedWidthReader implements Swift_Cha...
method __construct (line 31) | public function __construct($width)
method getCharPositions (line 46) | public function getCharPositions($string, $startOffset, &$currentMap, ...
method getMapType (line 62) | public function getMapType()
method validateByteSequence (line 81) | public function validateByteSequence($bytes, $size)
method getInitialByteSize (line 93) | public function getInitialByteSize()
FILE: lib/classes/Swift/CharacterReader/UsAsciiReader.php
class Swift_CharacterReader_UsAsciiReader (line 16) | class Swift_CharacterReader_UsAsciiReader implements Swift_CharacterReader
method getCharPositions (line 28) | public function getCharPositions($string, $startOffset, &$currentMap, ...
method getMapType (line 47) | public function getMapType()
method validateByteSequence (line 65) | public function validateByteSequence($bytes, $size)
method getInitialByteSize (line 80) | public function getInitialByteSize()
FILE: lib/classes/Swift/CharacterReader/Utf8Reader.php
class Swift_CharacterReader_Utf8Reader (line 17) | class Swift_CharacterReader_Utf8Reader implements Swift_CharacterReader
method getCharPositions (line 85) | public function getCharPositions($string, $startOffset, &$currentMap, ...
method getMapType (line 139) | public function getMapType()
method validateByteSequence (line 157) | public function validateByteSequence($bytes, $size)
method getInitialByteSize (line 172) | public function getInitialByteSize()
FILE: lib/classes/Swift/CharacterReaderFactory.php
type Swift_CharacterReaderFactory (line 16) | interface Swift_CharacterReaderFactory
method getReaderFor (line 25) | public function getReaderFor($charset);
FILE: lib/classes/Swift/CharacterReaderFactory/SimpleCharacterReaderFactory.php
class Swift_CharacterReaderFactory_SimpleCharacterReaderFactory (line 16) | class Swift_CharacterReaderFactory_SimpleCharacterReaderFactory implemen...
method __construct (line 35) | public function __construct()
method __wakeup (line 40) | public function __wakeup()
method init (line 45) | public function init()
method getReaderFor (line 104) | public function getReaderFor($charset)
FILE: lib/classes/Swift/CharacterStream.php
type Swift_CharacterStream (line 20) | interface Swift_CharacterStream
method setCharacterSet (line 27) | public function setCharacterSet($charset);
method setCharacterReaderFactory (line 32) | public function setCharacterReaderFactory(Swift_CharacterReaderFactory...
method importByteStream (line 39) | public function importByteStream(Swift_OutputByteStream $os);
method importString (line 47) | public function importString($string);
method read (line 57) | public function read($length);
method readBytes (line 67) | public function readBytes($length);
method write (line 74) | public function write($chars);
method setPointer (line 81) | public function setPointer($charOffset);
method flushContents (line 86) | public function flushContents();
FILE: lib/classes/Swift/CharacterStream/ArrayCharacterStream.php
class Swift_CharacterStream_ArrayCharacterStream (line 16) | class Swift_CharacterStream_ArrayCharacterStream implements Swift_Charac...
method __construct (line 48) | public function __construct(Swift_CharacterReaderFactory $factory, $ch...
method setCharacterSet (line 60) | public function setCharacterSet($charset)
method setCharacterReaderFactory (line 69) | public function setCharacterReaderFactory(Swift_CharacterReaderFactory...
method importByteStream (line 79) | public function importByteStream(Swift_OutputByteStream $os)
method importString (line 112) | public function importString($string)
method read (line 126) | public function read($length)
method readBytes (line 158) | public function readBytes($length)
method write (line 181) | public function write($chars)
method setPointer (line 247) | public function setPointer($charOffset)
method flushContents (line 260) | public function flushContents()
method reloadBuffer (line 267) | private function reloadBuffer($fp, $len)
method initializeMaps (line 281) | private static function initializeMaps()
FILE: lib/classes/Swift/CharacterStream/NgCharacterStream.php
class Swift_CharacterStream_NgCharacterStream (line 16) | class Swift_CharacterStream_NgCharacterStream implements Swift_Character...
method __construct (line 86) | public function __construct(Swift_CharacterReaderFactory $factory, $ch...
method setCharacterSet (line 99) | public function setCharacterSet($charset)
method setCharacterReaderFactory (line 109) | public function setCharacterReaderFactory(Swift_CharacterReaderFactory...
method flushContents (line 117) | public function flushContents()
method importByteStream (line 129) | public function importByteStream(Swift_OutputByteStream $os)
method importString (line 144) | public function importString($string)
method read (line 157) | public function read($length)
method readBytes (line 215) | public function readBytes($length)
method setPointer (line 232) | public function setPointer($charOffset)
method write (line 245) | public function write($chars)
FILE: lib/classes/Swift/ConfigurableSpool.php
class Swift_ConfigurableSpool (line 16) | abstract class Swift_ConfigurableSpool implements Swift_Spool
method setMessageLimit (line 29) | public function setMessageLimit($limit)
method getMessageLimit (line 39) | public function getMessageLimit()
method setTimeLimit (line 49) | public function setTimeLimit($limit)
method getTimeLimit (line 59) | public function getTimeLimit()
FILE: lib/classes/Swift/DependencyContainer.php
class Swift_DependencyContainer (line 16) | class Swift_DependencyContainer
method __construct (line 47) | public function __construct()
method getInstance (line 56) | public static function getInstance()
method listItems (line 70) | public function listItems()
method has (line 84) | public function has($itemName)
method lookup (line 101) | public function lookup($itemName)
method createDependenciesFor (line 128) | public function createDependenciesFor($itemName)
method register (line 151) | public function register($itemName)
method asValue (line 168) | public function asValue($value)
method asAliasOf (line 184) | public function asAliasOf($lookup)
method asNewInstanceOf (line 206) | public function asNewInstanceOf($className)
method asSharedInstanceOf (line 224) | public function asSharedInstanceOf($className)
method asArray (line 240) | public function asArray()
method withDependencies (line 257) | public function withDependencies(array $lookups)
method addConstructorValue (line 278) | public function addConstructorValue($value)
method addConstructorLookup (line 299) | public function addConstructorLookup($lookup)
method getValue (line 311) | private function getValue($itemName)
method createAlias (line 317) | private function createAlias($itemName)
method createNewInstance (line 323) | private function createNewInstance($itemName)
method createSharedInstance (line 336) | private function createSharedInstance($itemName)
method getEndPoint (line 346) | private function &getEndPoint()
method resolveArgs (line 356) | private function resolveArgs(array $args)
method lookupRecursive (line 374) | private function lookupRecursive($item)
FILE: lib/classes/Swift/DependencyException.php
class Swift_DependencyException (line 16) | class Swift_DependencyException extends Swift_SwiftException
method __construct (line 23) | public function __construct($message)
FILE: lib/classes/Swift/EmbeddedFile.php
class Swift_EmbeddedFile (line 16) | class Swift_EmbeddedFile extends Swift_Mime_EmbeddedFile
method __construct (line 27) | public function __construct($data = null, $filename = null, $contentTy...
method fromPath (line 49) | public static function fromPath($path)
FILE: lib/classes/Swift/Encoder.php
type Swift_Encoder (line 16) | interface Swift_Encoder extends Swift_Mime_CharsetObserver
method encodeString (line 27) | public function encodeString($string, $firstLineOffset = 0, $maxLineLe...
FILE: lib/classes/Swift/Encoder/Base64Encoder.php
class Swift_Encoder_Base64Encoder (line 16) | class Swift_Encoder_Base64Encoder implements Swift_Encoder
method encodeString (line 31) | public function encodeString($string, $firstLineOffset = 0, $maxLineLe...
method charsetChanged (line 55) | public function charsetChanged($charset)
FILE: lib/classes/Swift/Encoder/QpEncoder.php
class Swift_Encoder_QpEncoder (line 18) | class Swift_Encoder_QpEncoder implements Swift_Encoder
method __construct (line 109) | public function __construct(Swift_CharacterStream $charStream, Swift_S...
method __sleep (line 121) | public function __sleep()
method __wakeup (line 126) | public function __wakeup()
method getSafeMapShareId (line 136) | protected function getSafeMapShareId()
method initSafeMap (line 141) | protected function initSafeMap()
method encodeString (line 162) | public function encodeString($string, $firstLineOffset = 0, $maxLineLe...
method charsetChanged (line 230) | public function charsetChanged($charset)
method encodeByteSequence (line 243) | protected function encodeByteSequence(array $bytes, &$size)
method nextSequence (line 267) | protected function nextSequence($size = 4)
method standardize (line 279) | protected function standardize($string)
method __clone (line 296) | public function __clone()
FILE: lib/classes/Swift/Encoder/Rfc2231Encoder.php
class Swift_Encoder_Rfc2231Encoder (line 16) | class Swift_Encoder_Rfc2231Encoder implements Swift_Encoder
method __construct (line 28) | public function __construct(Swift_CharacterStream $charStream)
method encodeString (line 43) | public function encodeString($string, $firstLineOffset = 0, $maxLineLe...
method charsetChanged (line 78) | public function charsetChanged($charset)
method __clone (line 86) | public function __clone()
FILE: lib/classes/Swift/Events/CommandEvent.php
class Swift_Events_CommandEvent (line 16) | class Swift_Events_CommandEvent extends Swift_Events_EventObject
method __construct (line 38) | public function __construct(Swift_Transport $source, $command, $succes...
method getCommand (line 50) | public function getCommand()
method getSuccessCodes (line 60) | public function getSuccessCodes()
FILE: lib/classes/Swift/Events/CommandListener.php
type Swift_Events_CommandListener (line 16) | interface Swift_Events_CommandListener extends Swift_Events_EventListener
method commandSent (line 21) | public function commandSent(Swift_Events_CommandEvent $evt);
FILE: lib/classes/Swift/Events/Event.php
type Swift_Events_Event (line 16) | interface Swift_Events_Event
method getSource (line 23) | public function getSource();
method cancelBubble (line 30) | public function cancelBubble($cancel = true);
method bubbleCancelled (line 37) | public function bubbleCancelled();
FILE: lib/classes/Swift/Events/EventDispatcher.php
type Swift_Events_EventDispatcher (line 16) | interface Swift_Events_EventDispatcher
method createSendEvent (line 23) | public function createSendEvent(Swift_Transport $source, Swift_Mime_Si...
method createCommandEvent (line 33) | public function createCommandEvent(Swift_Transport $source, $command, ...
method createResponseEvent (line 43) | public function createResponseEvent(Swift_Transport $source, $response...
method createTransportChangeEvent (line 50) | public function createTransportChangeEvent(Swift_Transport $source);
method createTransportExceptionEvent (line 57) | public function createTransportExceptionEvent(Swift_Transport $source,...
method bindEventListener (line 62) | public function bindEventListener(Swift_Events_EventListener $listener);
method dispatchEvent (line 69) | public function dispatchEvent(Swift_Events_EventObject $evt, $target);
FILE: lib/classes/Swift/Events/EventListener.php
type Swift_Events_EventListener (line 16) | interface Swift_Events_EventListener
FILE: lib/classes/Swift/Events/EventObject.php
class Swift_Events_EventObject (line 16) | class Swift_Events_EventObject implements Swift_Events_Event
method __construct (line 29) | public function __construct($source)
method getSource (line 39) | public function getSource()
method cancelBubble (line 47) | public function cancelBubble($cancel = true)
method bubbleCancelled (line 57) | public function bubbleCancelled()
FILE: lib/classes/Swift/Events/ResponseEvent.php
class Swift_Events_ResponseEvent (line 16) | class Swift_Events_ResponseEvent extends Swift_Events_EventObject
method __construct (line 38) | public function __construct(Swift_Transport $source, $response, $valid...
method getResponse (line 50) | public function getResponse()
method isValid (line 60) | public function isValid()
FILE: lib/classes/Swift/Events/ResponseListener.php
type Swift_Events_ResponseListener (line 16) | interface Swift_Events_ResponseListener extends Swift_Events_EventListener
method responseReceived (line 21) | public function responseReceived(Swift_Events_ResponseEvent $evt);
FILE: lib/classes/Swift/Events/SendEvent.php
class Swift_Events_SendEvent (line 16) | class Swift_Events_SendEvent extends Swift_Events_EventObject
method __construct (line 57) | public function __construct(Swift_Transport $source, Swift_Mime_Simple...
method getTransport (line 69) | public function getTransport()
method getMessage (line 79) | public function getMessage()
method setFailedRecipients (line 89) | public function setFailedRecipients($recipients)
method getFailedRecipients (line 99) | public function getFailedRecipients()
method setResult (line 109) | public function setResult($result)
method getResult (line 122) | public function getResult()
FILE: lib/classes/Swift/Events/SendListener.php
type Swift_Events_SendListener (line 16) | interface Swift_Events_SendListener extends Swift_Events_EventListener
method beforeSendPerformed (line 21) | public function beforeSendPerformed(Swift_Events_SendEvent $evt);
method sendPerformed (line 26) | public function sendPerformed(Swift_Events_SendEvent $evt);
FILE: lib/classes/Swift/Events/SimpleEventDispatcher.php
class Swift_Events_SimpleEventDispatcher (line 16) | class Swift_Events_SimpleEventDispatcher implements Swift_Events_EventDi...
method __construct (line 27) | public function __construct()
method createSendEvent (line 43) | public function createSendEvent(Swift_Transport $source, Swift_Mime_Si...
method createCommandEvent (line 56) | public function createCommandEvent(Swift_Transport $source, $command, ...
method createResponseEvent (line 69) | public function createResponseEvent(Swift_Transport $source, $response...
method createTransportChangeEvent (line 79) | public function createTransportChangeEvent(Swift_Transport $source)
method createTransportExceptionEvent (line 89) | public function createTransportExceptionEvent(Swift_Transport $source,...
method bindEventListener (line 97) | public function bindEventListener(Swift_Events_EventListener $listener)
method dispatchEvent (line 113) | public function dispatchEvent(Swift_Events_EventObject $evt, $target)
method prepareBubbleQueue (line 120) | private function prepareBubbleQueue(Swift_Events_EventObject $evt)
method bubble (line 135) | private function bubble(array &$bubbleQueue, Swift_Events_EventObject ...
FILE: lib/classes/Swift/Events/TransportChangeEvent.php
class Swift_Events_TransportChangeEvent (line 16) | class Swift_Events_TransportChangeEvent extends Swift_Events_EventObject
method getTransport (line 23) | public function getTransport()
FILE: lib/classes/Swift/Events/TransportChangeListener.php
type Swift_Events_TransportChangeListener (line 16) | interface Swift_Events_TransportChangeListener extends Swift_Events_Even...
method beforeTransportStarted (line 21) | public function beforeTransportStarted(Swift_Events_TransportChangeEve...
method transportStarted (line 26) | public function transportStarted(Swift_Events_TransportChangeEvent $evt);
method beforeTransportStopped (line 31) | public function beforeTransportStopped(Swift_Events_TransportChangeEve...
method transportStopped (line 36) | public function transportStopped(Swift_Events_TransportChangeEvent $evt);
FILE: lib/classes/Swift/Events/TransportExceptionEvent.php
class Swift_Events_TransportExceptionEvent (line 16) | class Swift_Events_TransportExceptionEvent extends Swift_Events_EventObject
method __construct (line 28) | public function __construct(Swift_Transport $transport, Swift_Transpor...
method getException (line 39) | public function getException()
FILE: lib/classes/Swift/Events/TransportExceptionListener.php
type Swift_Events_TransportExceptionListener (line 16) | interface Swift_Events_TransportExceptionListener extends Swift_Events_E...
method exceptionThrown (line 21) | public function exceptionThrown(Swift_Events_TransportExceptionEvent $...
FILE: lib/classes/Swift/FailoverTransport.php
class Swift_FailoverTransport (line 16) | class Swift_FailoverTransport extends Swift_Transport_FailoverTransport
method __construct (line 23) | public function __construct($transports = [])
FILE: lib/classes/Swift/FileSpool.php
class Swift_FileSpool (line 17) | class Swift_FileSpool extends Swift_ConfigurableSpool
method __construct (line 36) | public function __construct($path)
method isStarted (line 52) | public function isStarted()
method start (line 60) | public function start()
method stop (line 67) | public function stop()
method setRetryLimit (line 78) | public function setRetryLimit($limit)
method queueMessage (line 92) | public function queueMessage(Swift_Mime_SimpleMessage $message)
method recover (line 119) | public function recover($timeout = 900)
method flushQueue (line 141) | public function flushQueue(Swift_Transport $transport, &$failedRecipie...
method getRandomString (line 196) | protected function getRandomString($count)
FILE: lib/classes/Swift/FileStream.php
type Swift_FileStream (line 16) | interface Swift_FileStream extends Swift_OutputByteStream
method getPath (line 23) | public function getPath();
FILE: lib/classes/Swift/Filterable.php
type Swift_Filterable (line 16) | interface Swift_Filterable
method addFilter (line 23) | public function addFilter(Swift_StreamFilter $filter, $key);
method removeFilter (line 30) | public function removeFilter($key);
FILE: lib/classes/Swift/IdGenerator.php
type Swift_IdGenerator (line 14) | interface Swift_IdGenerator
method generateId (line 21) | public function generateId();
FILE: lib/classes/Swift/Image.php
class Swift_Image (line 16) | class Swift_Image extends Swift_EmbeddedFile
method __construct (line 27) | public function __construct($data = null, $filename = null, $contentTy...
method fromPath (line 39) | public static function fromPath($path)
FILE: lib/classes/Swift/InputByteStream.php
type Swift_InputByteStream (line 19) | interface Swift_InputByteStream
method write (line 37) | public function write($bytes);
method commit (line 45) | public function commit();
method bind (line 55) | public function bind(self $is);
method unbind (line 66) | public function unbind(self $is);
method flushBuffers (line 74) | public function flushBuffers();
FILE: lib/classes/Swift/IoException.php
class Swift_IoException (line 16) | class Swift_IoException extends Swift_SwiftException
method __construct (line 24) | public function __construct($message, $code = 0, Exception $previous =...
FILE: lib/classes/Swift/KeyCache.php
type Swift_KeyCache (line 16) | interface Swift_KeyCache
method setString (line 34) | public function setString($nsKey, $itemKey, $string, $mode);
method importFromByteStream (line 45) | public function importFromByteStream($nsKey, $itemKey, Swift_OutputByt...
method getInputByteStream (line 59) | public function getInputByteStream($nsKey, $itemKey, Swift_InputByteSt...
method getString (line 69) | public function getString($nsKey, $itemKey);
method exportToByteStream (line 78) | public function exportToByteStream($nsKey, $itemKey, Swift_InputByteSt...
method hasKey (line 88) | public function hasKey($nsKey, $itemKey);
method clearKey (line 96) | public function clearKey($nsKey, $itemKey);
method clearAll (line 103) | public function clearAll($nsKey);
FILE: lib/classes/Swift/KeyCache/ArrayKeyCache.php
class Swift_KeyCache_ArrayKeyCache (line 16) | class Swift_KeyCache_ArrayKeyCache implements Swift_KeyCache
method __construct (line 36) | public function __construct(Swift_KeyCache_KeyCacheInputStream $stream)
method setString (line 51) | public function setString($nsKey, $itemKey, $string, $mode)
method importFromByteStream (line 78) | public function importFromByteStream($nsKey, $itemKey, Swift_OutputByt...
method getInputByteStream (line 108) | public function getInputByteStream($nsKey, $itemKey, Swift_InputByteSt...
method getString (line 129) | public function getString($nsKey, $itemKey)
method exportToByteStream (line 144) | public function exportToByteStream($nsKey, $itemKey, Swift_InputByteSt...
method hasKey (line 158) | public function hasKey($nsKey, $itemKey)
method clearKey (line 171) | public function clearKey($nsKey, $itemKey)
method clearAll (line 181) | public function clearAll($nsKey)
method prepareCache (line 191) | private function prepareCache($nsKey)
FILE: lib/classes/Swift/KeyCache/DiskKeyCache.php
class Swift_KeyCache_DiskKeyCache (line 16) | class Swift_KeyCache_DiskKeyCache implements Swift_KeyCache
method __construct (line 54) | public function __construct(Swift_KeyCache_KeyCacheInputStream $stream...
method setString (line 72) | public function setString($nsKey, $itemKey, $string, $mode)
method importFromByteStream (line 101) | public function importFromByteStream($nsKey, $itemKey, Swift_OutputByt...
method getInputByteStream (line 131) | public function getInputByteStream($nsKey, $itemKey, Swift_InputByteSt...
method getString (line 154) | public function getString($nsKey, $itemKey)
method exportToByteStream (line 176) | public function exportToByteStream($nsKey, $itemKey, Swift_InputByteSt...
method hasKey (line 195) | public function hasKey($nsKey, $itemKey)
method clearKey (line 206) | public function clearKey($nsKey, $itemKey)
method clearAll (line 219) | public function clearAll($nsKey)
method prepareCache (line 237) | private function prepareCache($nsKey)
method getHandle (line 257) | private function getHandle($nsKey, $itemKey, $position)
method freeHandle (line 273) | private function freeHandle($nsKey, $itemKey)
method __destruct (line 283) | public function __destruct()
method __wakeup (line 290) | public function __wakeup()
FILE: lib/classes/Swift/KeyCache/KeyCacheInputStream.php
type Swift_KeyCache_KeyCacheInputStream (line 16) | interface Swift_KeyCache_KeyCacheInputStream extends Swift_InputByteStream
method setKeyCache (line 21) | public function setKeyCache(Swift_KeyCache $keyCache);
method setNsKey (line 28) | public function setNsKey($nsKey);
method setItemKey (line 35) | public function setItemKey($itemKey);
method setWriteThroughStream (line 40) | public function setWriteThroughStream(Swift_InputByteStream $is);
method __clone (line 46) | public function __clone();
FILE: lib/classes/Swift/KeyCache/NullKeyCache.php
class Swift_KeyCache_NullKeyCache (line 16) | class Swift_KeyCache_NullKeyCache implements Swift_KeyCache
method setString (line 28) | public function setString($nsKey, $itemKey, $string, $mode)
method importFromByteStream (line 41) | public function importFromByteStream($nsKey, $itemKey, Swift_OutputByt...
method getInputByteStream (line 55) | public function getInputByteStream($nsKey, $itemKey, Swift_InputByteSt...
method getString (line 67) | public function getString($nsKey, $itemKey)
method exportToByteStream (line 78) | public function exportToByteStream($nsKey, $itemKey, Swift_InputByteSt...
method hasKey (line 90) | public function hasKey($nsKey, $itemKey)
method clearKey (line 101) | public function clearKey($nsKey, $itemKey)
method clearAll (line 110) | public function clearAll($nsKey)
FILE: lib/classes/Swift/KeyCache/SimpleKeyCacheInputStream.php
class Swift_KeyCache_SimpleKeyCacheInputStream (line 16) | class Swift_KeyCache_SimpleKeyCacheInputStream implements Swift_KeyCache...
method setKeyCache (line 33) | public function setKeyCache(Swift_KeyCache $keyCache)
method setWriteThroughStream (line 41) | public function setWriteThroughStream(Swift_InputByteStream $is)
method write (line 52) | public function write($bytes, Swift_InputByteStream $is = null)
method commit (line 68) | public function commit()
method bind (line 75) | public function bind(Swift_InputByteStream $is)
method unbind (line 82) | public function unbind(Swift_InputByteStream $is)
method flushBuffers (line 90) | public function flushBuffers()
method setNsKey (line 100) | public function setNsKey($nsKey)
method setItemKey (line 110) | public function setItemKey($itemKey)
method __clone (line 119) | public function __clone()
FILE: lib/classes/Swift/LoadBalancedTransport.php
class Swift_LoadBalancedTransport (line 16) | class Swift_LoadBalancedTransport extends Swift_Transport_LoadBalancedTr...
method __construct (line 23) | public function __construct($transports = [])
FILE: lib/classes/Swift/Mailer.php
class Swift_Mailer (line 16) | class Swift_Mailer
method __construct (line 24) | public function __construct(Swift_Transport $transport)
method createMessage (line 38) | public function createMessage($service = 'message')
method send (line 59) | public function send(Swift_Mime_SimpleMessage $message, &$failedRecipi...
method registerPlugin (line 84) | public function registerPlugin(Swift_Events_EventListener $plugin)
method getTransport (line 94) | public function getTransport()
FILE: lib/classes/Swift/Mailer/ArrayRecipientIterator.php
class Swift_Mailer_ArrayRecipientIterator (line 16) | class Swift_Mailer_ArrayRecipientIterator implements Swift_Mailer_Recipi...
method __construct (line 28) | public function __construct(array $recipients)
method hasNext (line 38) | public function hasNext()
method nextRecipient (line 49) | public function nextRecipient()
FILE: lib/classes/Swift/Mailer/RecipientIterator.php
type Swift_Mailer_RecipientIterator (line 16) | interface Swift_Mailer_RecipientIterator
method hasNext (line 23) | public function hasNext();
method nextRecipient (line 31) | public function nextRecipient();
FILE: lib/classes/Swift/MemorySpool.php
class Swift_MemorySpool (line 16) | class Swift_MemorySpool implements Swift_Spool
method isStarted (line 26) | public function isStarted()
method start (line 34) | public function start()
method stop (line 41) | public function stop()
method setFlushRetries (line 48) | public function setFlushRetries($retries)
method queueMessage (line 60) | public function queueMessage(Swift_Mime_SimpleMessage $message)
method flushQueue (line 76) | public function flushQueue(Swift_Transport $transport, &$failedRecipie...
FILE: lib/classes/Swift/Message.php
class Swift_Message (line 16) | class Swift_Message extends Swift_Mime_SimpleMessage
method __construct (line 43) | public function __construct($subject = null, $body = null, $contentTyp...
method addPart (line 72) | public function addPart($body, $contentType = null, $charset = null)
method attachSigner (line 82) | public function attachSigner(Swift_Signer $signer)
method detachSigner (line 98) | public function detachSigner(Swift_Signer $signer)
method clearSigners (line 126) | public function clearSigners()
method toString (line 139) | public function toString()
method toByteStream (line 159) | public function toByteStream(Swift_InputByteStream $is)
method __wakeup (line 176) | public function __wakeup()
method doSign (line 184) | protected function doSign()
method saveMessage (line 210) | protected function saveMessage()
method saveHeaders (line 224) | protected function saveHeaders(array $altered)
method restoreHeaders (line 238) | protected function restoreHeaders()
method restoreMessage (line 254) | protected function restoreMessage()
method __clone (line 268) | public function __clone()
FILE: lib/classes/Swift/Mime/Attachment.php
class Swift_Mime_Attachment (line 16) | class Swift_Mime_Attachment extends Swift_Mime_SimpleMimeEntity
method __construct (line 26) | public function __construct(Swift_Mime_SimpleHeaderSet $headers, Swift...
method getNestingLevel (line 41) | public function getNestingLevel()
method getDisposition (line 53) | public function getDisposition()
method setDisposition (line 65) | public function setDisposition($disposition)
method getFilename (line 79) | public function getFilename()
method setFilename (line 91) | public function setFilename($filename)
method getSize (line 104) | public function getSize()
method setSize (line 116) | public function setSize($size)
method setFile (line 130) | public function setFile(Swift_FileStream $file, $contentType = null)
FILE: lib/classes/Swift/Mime/CharsetObserver.php
type Swift_Mime_CharsetObserver (line 16) | interface Swift_Mime_CharsetObserver
method charsetChanged (line 23) | public function charsetChanged($charset);
FILE: lib/classes/Swift/Mime/ContentEncoder.php
type Swift_Mime_ContentEncoder (line 16) | interface Swift_Mime_ContentEncoder extends Swift_Encoder
method encodeByteStream (line 26) | public function encodeByteStream(Swift_OutputByteStream $os, Swift_Inp...
method getName (line 33) | public function getName();
FILE: lib/classes/Swift/Mime/ContentEncoder/Base64ContentEncoder.php
class Swift_Mime_ContentEncoder_Base64ContentEncoder (line 16) | class Swift_Mime_ContentEncoder_Base64ContentEncoder extends Swift_Encod...
method encodeByteStream (line 23) | public function encodeByteStream(Swift_OutputByteStream $os, Swift_Inp...
method getName (line 97) | public function getName()
FILE: lib/classes/Swift/Mime/ContentEncoder/NativeQpContentEncoder.php
class Swift_Mime_ContentEncoder_NativeQpContentEncoder (line 16) | class Swift_Mime_ContentEncoder_NativeQpContentEncoder implements Swift_...
method __construct (line 26) | public function __construct($charset = null)
method charsetChanged (line 36) | public function charsetChanged($charset)
method encodeByteStream (line 51) | public function encodeByteStream(Swift_OutputByteStream $os, Swift_Inp...
method getName (line 71) | public function getName()
method encodeString (line 87) | public function encodeString($string, $firstLineOffset = 0, $maxLineLe...
method standardize (line 103) | protected function standardize($string)
FILE: lib/classes/Swift/Mime/ContentEncoder/NullContentEncoder.php
class Swift_Mime_ContentEncoder_NullContentEncoder (line 17) | class Swift_Mime_ContentEncoder_NullContentEncoder implements Swift_Mime...
method __construct (line 31) | public function __construct($name)
method encodeString (line 45) | public function encodeString($string, $firstLineOffset = 0, $maxLineLe...
method encodeByteStream (line 56) | public function encodeByteStream(Swift_OutputByteStream $os, Swift_Inp...
method getName (line 68) | public function getName()
method charsetChanged (line 76) | public function charsetChanged($charset)
FILE: lib/classes/Swift/Mime/ContentEncoder/PlainContentEncoder.php
class Swift_Mime_ContentEncoder_PlainContentEncoder (line 20) | class Swift_Mime_ContentEncoder_PlainContentEncoder implements Swift_Mim...
method __construct (line 42) | public function __construct($name, $canonical = false)
method encodeString (line 57) | public function encodeString($string, $firstLineOffset = 0, $maxLineLe...
method encodeByteStream (line 72) | public function encodeByteStream(Swift_OutputByteStream $os, Swift_Inp...
method getName (line 97) | public function getName()
method charsetChanged (line 105) | public function charsetChanged($charset)
method safeWordwrap (line 118) | private function safeWordwrap($string, $length = 75, $le = "\r\n")
method canonicalize (line 156) | private function canonicalize($string)
FILE: lib/classes/Swift/Mime/ContentEncoder/QpContentEncoder.php
class Swift_Mime_ContentEncoder_QpContentEncoder (line 16) | class Swift_Mime_ContentEncoder_QpContentEncoder extends Swift_Encoder_Q...
method __construct (line 27) | public function __construct(Swift_CharacterStream $charStream, Swift_S...
method __sleep (line 33) | public function __sleep()
method getSafeMapShareId (line 38) | protected function getSafeMapShareId()
method initSafeMap (line 43) | protected function initSafeMap()
method encodeByteStream (line 64) | public function encodeByteStream(Swift_OutputByteStream $os, Swift_Inp...
method getName (line 130) | public function getName()
FILE: lib/classes/Swift/Mime/ContentEncoder/QpContentEncoderProxy.php
class Swift_Mime_ContentEncoder_QpContentEncoderProxy (line 18) | class Swift_Mime_ContentEncoder_QpContentEncoderProxy implements Swift_M...
method __construct (line 40) | public function __construct(Swift_Mime_ContentEncoder_QpContentEncoder...
method __clone (line 50) | public function __clone()
method charsetChanged (line 59) | public function charsetChanged($charset)
method encodeByteStream (line 68) | public function encodeByteStream(Swift_OutputByteStream $os, Swift_Inp...
method getName (line 76) | public function getName()
method encodeString (line 84) | public function encodeString($string, $firstLineOffset = 0, $maxLineLe...
method getEncoder (line 92) | private function getEncoder()
FILE: lib/classes/Swift/Mime/ContentEncoder/RawContentEncoder.php
class Swift_Mime_ContentEncoder_RawContentEncoder (line 20) | class Swift_Mime_ContentEncoder_RawContentEncoder implements Swift_Mime_...
method encodeString (line 31) | public function encodeString($string, $firstLineOffset = 0, $maxLineLe...
method encodeByteStream (line 42) | public function encodeByteStream(Swift_OutputByteStream $os, Swift_Inp...
method getName (line 54) | public function getName()
method charsetChanged (line 62) | public function charsetChanged($charset)
FILE: lib/classes/Swift/Mime/EmbeddedFile.php
class Swift_Mime_EmbeddedFile (line 16) | class Swift_Mime_EmbeddedFile extends Swift_Mime_Attachment
method __construct (line 23) | public function __construct(Swift_Mime_SimpleHeaderSet $headers, Swift...
method getNestingLevel (line 37) | public function getNestingLevel()
FILE: lib/classes/Swift/Mime/EncodingObserver.php
type Swift_Mime_EncodingObserver (line 16) | interface Swift_Mime_EncodingObserver
method encoderChanged (line 21) | public function encoderChanged(Swift_Mime_ContentEncoder $encoder);
FILE: lib/classes/Swift/Mime/Header.php
type Swift_Mime_Header (line 16) | interface Swift_Mime_Header
method getFieldType (line 44) | public function getFieldType();
method setFieldBodyModel (line 53) | public function setFieldBodyModel($model);
method setCharset (line 60) | public function setCharset($charset);
method getFieldBodyModel (line 69) | public function getFieldBodyModel();
method getFieldName (line 78) | public function getFieldName();
method getFieldBody (line 85) | public function getFieldBody();
method toString (line 92) | public function toString();
FILE: lib/classes/Swift/Mime/HeaderEncoder.php
type Swift_Mime_HeaderEncoder (line 16) | interface Swift_Mime_HeaderEncoder extends Swift_Encoder
method getName (line 23) | public function getName();
FILE: lib/classes/Swift/Mime/HeaderEncoder/Base64HeaderEncoder.php
class Swift_Mime_HeaderEncoder_Base64HeaderEncoder (line 16) | class Swift_Mime_HeaderEncoder_Base64HeaderEncoder extends Swift_Encoder...
method getName (line 24) | public function getName()
method encodeString (line 42) | public function encodeString($string, $firstLineOffset = 0, $maxLineLe...
FILE: lib/classes/Swift/Mime/HeaderEncoder/QpHeaderEncoder.php
class Swift_Mime_HeaderEncoder_QpHeaderEncoder (line 16) | class Swift_Mime_HeaderEncoder_QpHeaderEncoder extends Swift_Encoder_QpE...
method __construct (line 23) | public function __construct(Swift_CharacterStream $charStream)
method initSafeMap (line 28) | protected function initSafeMap()
method getName (line 45) | public function getName()
method encodeString (line 59) | public function encodeString($string, $firstLineOffset = 0, $maxLineLe...
FILE: lib/classes/Swift/Mime/Headers/AbstractHeader.php
class Swift_Mime_Headers_AbstractHeader (line 16) | abstract class Swift_Mime_Headers_AbstractHeader implements Swift_Mime_H...
method setCharset (line 67) | public function setCharset($charset)
method getCharset (line 81) | public function getCharset()
method setLanguage (line 94) | public function setLanguage($lang)
method getLanguage (line 105) | public function getLanguage()
method setEncoder (line 113) | public function setEncoder(Swift_Mime_HeaderEncoder $encoder)
method getEncoder (line 124) | public function getEncoder()
method getFieldName (line 134) | public function getFieldName()
method setMaxLineLength (line 144) | public function setMaxLineLength($lineLength)
method getMaxLineLength (line 155) | public function getMaxLineLength()
method toString (line 167) | public function toString()
method __toString (line 179) | public function __toString()
method setFieldName (line 189) | protected function setFieldName($name)
method createPhrase (line 203) | protected function createPhrase(Swift_Mime_Header $header, $string, $c...
method escapeSpecials (line 238) | private function escapeSpecials($token, $include = [])
method encodeWords (line 255) | protected function encodeWords(Swift_Mime_Header $header, $input, $use...
method tokenNeedsEncoding (line 294) | protected function tokenNeedsEncoding($token)
method getEncodableWordTokens (line 306) | protected function getEncodableWordTokens($string)
method getTokenAsEncodedWord (line 338) | protected function getTokenAsEncodedWord($token, $firstLineOffset = 0)
method generateTokenLines (line 379) | protected function generateTokenLines($token)
method setCachedValue (line 389) | protected function setCachedValue($value)
method getCachedValue (line 399) | protected function getCachedValue()
method clearCachedValueIf (line 409) | protected function clearCachedValueIf($condition)
method toTokens (line 423) | protected function toTokens($string = null)
method tokensToString (line 450) | private function tokensToString(array $tokens)
method __clone (line 480) | public function __clone()
FILE: lib/classes/Swift/Mime/Headers/DateHeader.php
class Swift_Mime_Headers_DateHeader (line 16) | class Swift_Mime_Headers_DateHeader extends Swift_Mime_Headers_AbstractH...
method __construct (line 30) | public function __construct($name)
method getFieldType (line 43) | public function getFieldType()
method setFieldBodyModel (line 53) | public function setFieldBodyModel($model)
method getFieldBodyModel (line 63) | public function getFieldBodyModel()
method getDateTime (line 73) | public function getDateTime()
method setDateTime (line 83) | public function setDateTime(DateTimeInterface $dateTime)
method getFieldBody (line 103) | public function getFieldBody()
FILE: lib/classes/Swift/Mime/Headers/IdentificationHeader.php
class Swift_Mime_Headers_IdentificationHeader (line 20) | class Swift_Mime_Headers_IdentificationHeader extends Swift_Mime_Headers...
method __construct (line 45) | public function __construct($name, EmailValidator $emailValidator, Swi...
method getFieldType (line 60) | public function getFieldType()
method setFieldBodyModel (line 74) | public function setFieldBodyModel($model)
method getFieldBodyModel (line 86) | public function getFieldBodyModel()
method setId (line 98) | public function setId($id)
method getId (line 110) | public function getId()
method setIds (line 124) | public function setIds(array $ids)
method getIds (line 142) | public function getIds()
method getFieldBody (line 159) | public function getFieldBody()
method assertValidId (line 181) | private function assertValidId($id)
FILE: lib/classes/Swift/Mime/Headers/MailboxHeader.php
class Swift_Mime_Headers_MailboxHeader (line 19) | class Swift_Mime_Headers_MailboxHeader extends Swift_Mime_Headers_Abstra...
method __construct (line 42) | public function __construct($name, Swift_Mime_HeaderEncoder $encoder, ...
method getFieldType (line 58) | public function getFieldType()
method setFieldBodyModel (line 72) | public function setFieldBodyModel($model)
method getFieldBodyModel (line 86) | public function getFieldBodyModel()
method setNameAddresses (line 115) | public function setNameAddresses($mailboxes)
method getNameAddressStrings (line 146) | public function getNameAddressStrings()
method getNameAddresses (line 175) | public function getNameAddresses()
method setAddresses (line 200) | public function setAddresses($addresses)
method getAddresses (line 212) | public function getAddresses()
method removeAddresses (line 222) | public function removeAddresses($addresses)
method getFieldBody (line 242) | public function getFieldBody()
method normalizeMailboxes (line 259) | protected function normalizeMailboxes(array $mailboxes)
method createDisplayNameString (line 287) | protected function createDisplayNameString($displayName, $shorten = fa...
method createMailboxListString (line 301) | protected function createMailboxListString(array $mailboxes)
method tokenNeedsEncoding (line 317) | protected function tokenNeedsEncoding($token)
method createNameAddressStrings (line 329) | private function createNameAddressStrings(array $mailboxes)
method assertValidAddress (line 352) | private function assertValidAddress($address)
FILE: lib/classes/Swift/Mime/Headers/OpenDKIMHeader.php
class Swift_Mime_Headers_OpenDKIMHeader (line 18) | class Swift_Mime_Headers_OpenDKIMHeader implements Swift_Mime_Header
method __construct (line 37) | public function __construct($name)
method getFieldType (line 50) | public function getFieldType()
method setFieldBodyModel (line 62) | public function setFieldBodyModel($model)
method getFieldBodyModel (line 74) | public function getFieldBodyModel()
method getValue (line 84) | public function getValue()
method setValue (line 94) | public function setValue($value)
method getFieldBody (line 104) | public function getFieldBody()
method toString (line 114) | public function toString()
method getFieldName (line 124) | public function getFieldName()
method setCharset (line 132) | public function setCharset($charset)
FILE: lib/classes/Swift/Mime/Headers/ParameterizedHeader.php
class Swift_Mime_Headers_ParameterizedHeader (line 16) | class Swift_Mime_Headers_ParameterizedHeader extends Swift_Mime_Headers_...
method __construct (line 44) | public function __construct($name, Swift_Mime_HeaderEncoder $encoder, ...
method getFieldType (line 58) | public function getFieldType()
method setCharset (line 68) | public function setCharset($charset)
method setParameter (line 82) | public function setParameter($parameter, $value)
method getParameter (line 94) | public function getParameter($parameter)
method setParameters (line 106) | public function setParameters(array $parameters)
method getParameters (line 117) | public function getParameters()
method getFieldBody (line 127) | public function getFieldBody() //TODO: Check caching here
method toTokens (line 150) | protected function toTokens($string = null)
method createParameter (line 176) | private function createParameter($name, $value)
method getEndOfParameterValue (line 239) | private function getEndOfParameterValue($value, $encoded = false, $fir...
FILE: lib/classes/Swift/Mime/Headers/PathHeader.php
class Swift_Mime_Headers_PathHeader (line 19) | class Swift_Mime_Headers_PathHeader extends Swift_Mime_Headers_AbstractH...
method __construct (line 42) | public function __construct($name, EmailValidator $emailValidator, Swi...
method getFieldType (line 57) | public function getFieldType()
method setFieldBodyModel (line 70) | public function setFieldBodyModel($model)
method getFieldBodyModel (line 81) | public function getFieldBodyModel()
method setAddress (line 93) | public function setAddress($address)
method getAddress (line 113) | public function getAddress()
method getFieldBody (line 128) | public function getFieldBody()
method assertValidAddress (line 147) | private function assertValidAddress($address)
FILE: lib/classes/Swift/Mime/Headers/UnstructuredHeader.php
class Swift_Mime_Headers_UnstructuredHeader (line 16) | class Swift_Mime_Headers_UnstructuredHeader extends Swift_Mime_Headers_A...
method __construct (line 30) | public function __construct($name, Swift_Mime_HeaderEncoder $encoder)
method getFieldType (line 44) | public function getFieldType()
method setFieldBodyModel (line 56) | public function setFieldBodyModel($model)
method getFieldBodyModel (line 68) | public function getFieldBodyModel()
method getValue (line 78) | public function getValue()
method setValue (line 88) | public function setValue($value)
method getFieldBody (line 99) | public function getFieldBody()
FILE: lib/classes/Swift/Mime/IdGenerator.php
class Swift_Mime_IdGenerator (line 14) | class Swift_Mime_IdGenerator implements Swift_IdGenerator
method __construct (line 21) | public function __construct($idRight)
method getIdRight (line 31) | public function getIdRight()
method setIdRight (line 41) | public function setIdRight($idRight)
method generateId (line 49) | public function generateId()
FILE: lib/classes/Swift/Mime/MimePart.php
class Swift_Mime_MimePart (line 16) | class Swift_Mime_MimePart extends Swift_Mime_SimpleMimeEntity
method __construct (line 35) | public function __construct(Swift_Mime_SimpleHeaderSet $headers, Swift...
method setBody (line 54) | public function setBody($body, $contentType = null, $charset = null)
method getCharset (line 71) | public function getCharset()
method setCharset (line 83) | public function setCharset($charset)
method getFormat (line 100) | public function getFormat()
method setFormat (line 112) | public function setFormat($format)
method getDelSp (line 125) | public function getDelSp()
method setDelSp (line 137) | public function setDelSp($delsp = true)
method getNestingLevel (line 152) | public function getNestingLevel()
method charsetChanged (line 163) | public function charsetChanged($charset)
method fixHeaders (line 169) | protected function fixHeaders()
method setNestingLevel (line 184) | protected function setNestingLevel($level)
method convertString (line 190) | protected function convertString($string)
FILE: lib/classes/Swift/Mime/SimpleHeaderFactory.php
class Swift_Mime_SimpleHeaderFactory (line 18) | class Swift_Mime_SimpleHeaderFactory implements Swift_Mime_CharsetObserver
method __construct (line 40) | public function __construct(Swift_Mime_HeaderEncoder $encoder, Swift_E...
method createMailboxHeader (line 57) | public function createMailboxHeader($name, $addresses = null)
method createDateHeader (line 75) | public function createDateHeader($name, DateTimeInterface $dateTime = ...
method createTextHeader (line 94) | public function createTextHeader($name, $value = null)
method createParameterizedHeader (line 114) | public function createParameterizedHeader($name, $value = null, $param...
method createIdHeader (line 136) | public function createIdHeader($name, $ids = null)
method createPathHeader (line 155) | public function createPathHeader($name, $path = null)
method charsetChanged (line 171) | public function charsetChanged($charset)
method __clone (line 181) | public function __clone()
method setHeaderCharset (line 189) | private function setHeaderCharset(Swift_Mime_Header $header)
FILE: lib/classes/Swift/Mime/SimpleHeaderSet.php
class Swift_Mime_SimpleHeaderSet (line 16) | class Swift_Mime_SimpleHeaderSet implements Swift_Mime_CharsetObserver
method __construct (line 38) | public function __construct(Swift_Mime_SimpleHeaderFactory $factory, $...
method newInstance (line 46) | public function newInstance()
method setCharset (line 56) | public function setCharset($charset)
method addMailboxHeader (line 69) | public function addMailboxHeader($name, $addresses = null)
method addDateHeader (line 79) | public function addDateHeader($name, DateTimeInterface $dateTime = null)
method addTextHeader (line 90) | public function addTextHeader($name, $value = null)
method addParameterizedHeader (line 102) | public function addParameterizedHeader($name, $value = null, $params =...
method addIdHeader (line 113) | public function addIdHeader($name, $ids = null)
method addPathHeader (line 124) | public function addPathHeader($name, $path = null)
method has (line 139) | public function has($name, $index = 0)
method set (line 166) | public function set(Swift_Mime_Header $header, $index = 0)
method get (line 182) | public function get($name, $index = 0)
method getAll (line 206) | public function getAll($name = null)
method listAll (line 230) | public function listAll()
method remove (line 248) | public function remove($name, $index = 0)
method removeAll (line 259) | public function removeAll($name)
method defineOrdering (line 270) | public function defineOrdering(array $sequence)
method setAlwaysDisplayed (line 280) | public function setAlwaysDisplayed(array $names)
method charsetChanged (line 290) | public function charsetChanged($charset)
method toString (line 300) | public function toString()
method __toString (line 325) | public function __toString()
method storeHeader (line 331) | private function storeHeader($name, Swift_Mime_Header $header, $offset...
method canSort (line 344) | private function canSort()
method sortHeaders (line 350) | private function sortHeaders($a, $b)
method isDisplayed (line 372) | private function isDisplayed(Swift_Mime_Header $header)
method notifyHeadersOfCharset (line 378) | private function notifyHeadersOfCharset($charset)
method __clone (line 390) | public function __clone()
FILE: lib/classes/Swift/Mime/SimpleMessage.php
class Swift_Mime_SimpleMessage (line 16) | class Swift_Mime_SimpleMessage extends Swift_Mime_MimePart
method __construct (line 29) | public function __construct(Swift_Mime_SimpleHeaderSet $headers, Swift...
method getNestingLevel (line 62) | public function getNestingLevel()
method setSubject (line 74) | public function setSubject($subject)
method getSubject (line 88) | public function getSubject()
method setDate (line 98) | public function setDate(DateTimeInterface $dateTime)
method getDate (line 112) | public function getDate()
method setReturnPath (line 124) | public function setReturnPath($address)
method getReturnPath (line 138) | public function getReturnPath()
method setSender (line 153) | public function setSender($address, $name = null)
method getSender (line 171) | public function getSender()
method addFrom (line 186) | public function addFrom($address, $name = null)
method setFrom (line 207) | public function setFrom($addresses, $name = null)
method getFrom (line 225) | public function getFrom()
method addReplyTo (line 240) | public function addReplyTo($address, $name = null)
method setReplyTo (line 261) | public function setReplyTo($addresses, $name = null)
method getReplyTo (line 279) | public function getReplyTo()
method addTo (line 294) | public function addTo($address, $name = null)
method setTo (line 316) | public function setTo($addresses, $name = null)
method getTo (line 334) | public function getTo()
method addCc (line 349) | public function addCc($address, $name = null)
method setCc (line 368) | public function setCc($addresses, $name = null)
method getCc (line 386) | public function getCc()
method addBcc (line 401) | public function addBcc($address, $name = null)
method setBcc (line 420) | public function setBcc($addresses, $name = null)
method getBcc (line 438) | public function getBcc()
method setPriority (line 452) | public function setPriority($priority)
method getPriority (line 484) | public function getPriority()
method setReadReceiptTo (line 500) | public function setReadReceiptTo($addresses)
method getReadReceiptTo (line 515) | public function getReadReceiptTo()
method attach (line 525) | public function attach(Swift_Mime_SimpleMimeEntity $entity)
method detach (line 537) | public function detach(Swift_Mime_SimpleMimeEntity $entity)
method embed (line 557) | public function embed(Swift_Mime_SimpleMimeEntity $entity)
method toString (line 569) | public function toString()
method __toString (line 589) | public function __toString()
method toByteStream (line 597) | public function toByteStream(Swift_InputByteStream $is)
method getIdField (line 609) | protected function getIdField()
method becomeMimePart (line 615) | protected function becomeMimePart()
method getTopNestingLevel (line 630) | private function getTopNestingLevel()
FILE: lib/classes/Swift/Mime/SimpleMimeEntity.php
class Swift_Mime_SimpleMimeEntity (line 16) | class Swift_Mime_SimpleMimeEntity implements Swift_Mime_CharsetObserver,...
method __construct (line 88) | public function __construct(Swift_Mime_SimpleHeaderSet $headers, Swift...
method generateId (line 127) | public function generateId()
method getHeaders (line 139) | public function getHeaders()
method getNestingLevel (line 151) | public function getNestingLevel()
method getContentType (line 161) | public function getContentType()
method getBodyContentType (line 171) | public function getBodyContentType()
method setContentType (line 183) | public function setContentType($type)
method getId (line 200) | public function getId()
method setId (line 214) | public function setId($id)
method getDescription (line 231) | public function getDescription()
method setDescription (line 245) | public function setDescription($description)
method getMaxLineLength (line 259) | public function getMaxLineLength()
method setMaxLineLength (line 273) | public function setMaxLineLength($length)
method getChildren (line 285) | public function getChildren()
method setChildren (line 298) | public function setChildren(array $children, $compoundLevel = null)
method getBody (line 362) | public function getBody()
method setBody (line 376) | public function setBody($body, $contentType = null)
method getEncoder (line 395) | public function getEncoder()
method setEncoder (line 405) | public function setEncoder(Swift_Mime_ContentEncoder $encoder)
method getBoundary (line 423) | public function getBoundary()
method setBoundary (line 441) | public function setBoundary($boundary)
method charsetChanged (line 455) | public function charsetChanged($charset)
method encoderChanged (line 464) | public function encoderChanged(Swift_Mime_ContentEncoder $encoder)
method toString (line 474) | public function toString()
method bodyToString (line 487) | protected function bodyToString()
method __toString (line 519) | public function __toString()
method toByteStream (line 527) | public function toByteStream(Swift_InputByteStream $is)
method bodyToByteStream (line 538) | protected function bodyToByteStream(Swift_InputByteStream $is)
method getIdField (line 579) | protected function getIdField()
method getHeaderFieldModel (line 587) | protected function getHeaderFieldModel($field)
method setHeaderFieldModel (line 597) | protected function setHeaderFieldModel($field, $model)
method getHeaderParameter (line 611) | protected function getHeaderParameter($field, $parameter)
method setHeaderParameter (line 621) | protected function setHeaderParameter($field, $parameter, $value)
method fixHeaders (line 635) | protected function fixHeaders()
method getCache (line 653) | protected function getCache()
method getIdGenerator (line 663) | protected function getIdGenerator()
method clearCache (line 671) | protected function clearCache()
method readStream (line 676) | private function readStream(Swift_OutputByteStream $os)
method setEncoding (line 688) | private function setEncoding($encoding)
method assertValidBoundary (line 695) | private function assertValidBoundary($boundary)
method setContentTypeInHeaders (line 702) | private function setContentTypeInHeaders($type)
method setNestingLevel (line 709) | private function setNestingLevel($level)
method getCompoundLevel (line 714) | private function getCompoundLevel($children)
method getNeededChildLevel (line 724) | private function getNeededChildLevel($child, $compoundLevel)
method createChild (line 743) | private function createChild()
method notifyEncoderChanged (line 748) | private function notifyEncoderChanged(Swift_Mime_ContentEncoder $encoder)
method notifyCharsetChanged (line 755) | private function notifyCharsetChanged($charset)
method sortChildren (line 764) | private function sortChildren()
method __destruct (line 799) | public function __destruct()
method __clone (line 809) | public function __clone()
method __wakeup (line 821) | public function __wakeup()
FILE: lib/classes/Swift/MimePart.php
class Swift_MimePart (line 16) | class Swift_MimePart extends Swift_Mime_MimePart
method __construct (line 27) | public function __construct($body = null, $contentType = null, $charse...
FILE: lib/classes/Swift/NullTransport.php
class Swift_NullTransport (line 16) | class Swift_NullTransport extends Swift_Transport_NullTransport
method __construct (line 18) | public function __construct()
FILE: lib/classes/Swift/OutputByteStream.php
type Swift_OutputByteStream (line 19) | interface Swift_OutputByteStream
method read (line 34) | public function read($length);
method setReadPointer (line 45) | public function setReadPointer($byteOffset);
FILE: lib/classes/Swift/Plugins/AntiFloodPlugin.php
class Swift_Plugins_AntiFloodPlugin (line 16) | class Swift_Plugins_AntiFloodPlugin implements Swift_Events_SendListener...
method __construct (line 53) | public function __construct($threshold = 99, $sleep = 0, Swift_Plugins...
method setThreshold (line 65) | public function setThreshold($threshold)
method getThreshold (line 75) | public function getThreshold()
method setSleepTime (line 85) | public function setSleepTime($sleep)
method getSleepTime (line 95) | public function getSleepTime()
method beforeSendPerformed (line 103) | public function beforeSendPerformed(Swift_Events_SendEvent $evt)
method sendPerformed (line 110) | public function sendPerformed(Swift_Events_SendEvent $evt)
method sleep (line 129) | public function sleep($seconds)
FILE: lib/classes/Swift/Plugins/BandwidthMonitorPlugin.php
class Swift_Plugins_BandwidthMonitorPlugin (line 16) | class Swift_Plugins_BandwidthMonitorPlugin implements Swift_Events_SendL...
method beforeSendPerformed (line 38) | public function beforeSendPerformed(Swift_Events_SendEvent $evt)
method sendPerformed (line 45) | public function sendPerformed(Swift_Events_SendEvent $evt)
method commandSent (line 54) | public function commandSent(Swift_Events_CommandEvent $evt)
method responseReceived (line 63) | public function responseReceived(Swift_Events_ResponseEvent $evt)
method write (line 74) | public function write($bytes)
method commit (line 85) | public function commit()
method bind (line 95) | public function bind(Swift_InputByteStream $is)
method unbind (line 107) | public function unbind(Swift_InputByteStream $is)
method flushBuffers (line 119) | public function flushBuffers()
method getBytesOut (line 131) | public function getBytesOut()
method getBytesIn (line 141) | public function getBytesIn()
method reset (line 149) | public function reset()
FILE: lib/classes/Swift/Plugins/Decorator/Replacements.php
type Swift_Plugins_Decorator_Replacements (line 16) | interface Swift_Plugins_Decorator_Replacements
method getReplacementsFor (line 30) | public function getReplacementsFor($address);
FILE: lib/classes/Swift/Plugins/DecoratorPlugin.php
class Swift_Plugins_DecoratorPlugin (line 17) | class Swift_Plugins_DecoratorPlugin implements Swift_Events_SendListener...
method __construct (line 54) | public function __construct($replacements)
method setReplacements (line 66) | public function setReplacements($replacements)
method beforeSendPerformed (line 78) | public function beforeSendPerformed(Swift_Events_SendEvent $evt)
method getReplacementsFor (line 154) | public function getReplacementsFor($address)
method sendPerformed (line 166) | public function sendPerformed(Swift_Events_SendEvent $evt)
method restoreMessage (line 172) | private function restoreMessage(Swift_Mime_SimpleMessage $message)
FILE: lib/classes/Swift/Plugins/ImpersonatePlugin.php
class Swift_Plugins_ImpersonatePlugin (line 16) | class Swift_Plugins_ImpersonatePlugin implements Swift_Events_SendListener
method __construct (line 30) | public function __construct($sender)
method beforeSendPerformed (line 38) | public function beforeSendPerformed(Swift_Events_SendEvent $evt)
method sendPerformed (line 53) | public function sendPerformed(Swift_Events_SendEvent $evt)
FILE: lib/classes/Swift/Plugins/Logger.php
type Swift_Plugins_Logger (line 16) | interface Swift_Plugins_Logger
method add (line 23) | public function add($entry);
method clear (line 28) | public function clear();
method dump (line 35) | public function dump();
FILE: lib/classes/Swift/Plugins/LoggerPlugin.php
class Swift_Plugins_LoggerPlugin (line 16) | class Swift_Plugins_LoggerPlugin implements Swift_Events_CommandListener...
method __construct (line 24) | public function __construct(Swift_Plugins_Logger $logger)
method add (line 34) | public function add($entry)
method clear (line 42) | public function clear()
method dump (line 52) | public function dump()
method commandSent (line 60) | public function commandSent(Swift_Events_CommandEvent $evt)
method responseReceived (line 69) | public function responseReceived(Swift_Events_ResponseEvent $evt)
method beforeTransportStarted (line 78) | public function beforeTransportStarted(Swift_Events_TransportChangeEve...
method transportStarted (line 87) | public function transportStarted(Swift_Events_TransportChangeEvent $evt)
method beforeTransportStopped (line 96) | public function beforeTransportStopped(Swift_Events_TransportChangeEve...
method transportStopped (line 105) | public function transportStopped(Swift_Events_TransportChangeEvent $evt)
method exceptionThrown (line 114) | public function exceptionThrown(Swift_Events_TransportExceptionEvent $...
FILE: lib/classes/Swift/Plugins/Loggers/ArrayLogger.php
class Swift_Plugins_Loggers_ArrayLogger (line 16) | class Swift_Plugins_Loggers_ArrayLogger implements Swift_Plugins_Logger
method __construct (line 37) | public function __construct($size = 50)
method add (line 47) | public function add($entry)
method clear (line 58) | public function clear()
method dump (line 68) | public function dump()
FILE: lib/classes/Swift/Plugins/Loggers/EchoLogger.php
class Swift_Plugins_Loggers_EchoLogger (line 16) | class Swift_Plugins_Loggers_EchoLogger implements Swift_Plugins_Logger
method __construct (line 26) | public function __construct($isHtml = true)
method add (line 36) | public function add($entry)
method clear (line 48) | public function clear()
method dump (line 55) | public function dump()
FILE: lib/classes/Swift/Plugins/MessageLogger.php
class Swift_Plugins_MessageLogger (line 16) | class Swift_Plugins_MessageLogger implements Swift_Events_SendListener
method __construct (line 23) | public function __construct()
method getMessages (line 33) | public function getMessages()
method countMessages (line 43) | public function countMessages()
method clear (line 51) | public function clear()
method beforeSendPerformed (line 59) | public function beforeSendPerformed(Swift_Events_SendEvent $evt)
method sendPerformed (line 67) | public function sendPerformed(Swift_Events_SendEvent $evt)
FILE: lib/classes/Swift/Plugins/Pop/Pop3Connection.php
type Swift_Plugins_Pop_Pop3Connection (line 16) | interface Swift_Plugins_Pop_Pop3Connection
method connect (line 23) | public function connect();
method disconnect (line 30) | public function disconnect();
FILE: lib/classes/Swift/Plugins/Pop/Pop3Exception.php
class Swift_Plugins_Pop_Pop3Exception (line 16) | class Swift_Plugins_Pop_Pop3Exception extends Swift_IoException
method __construct (line 23) | public function __construct($message)
FILE: lib/classes/Swift/Plugins/PopBeforeSmtpPlugin.php
class Swift_Plugins_PopBeforeSmtpPlugin (line 16) | class Swift_Plugins_PopBeforeSmtpPlugin implements Swift_Events_Transpor...
method __construct (line 53) | public function __construct($host, $port = 110, $crypto = null)
method setConnection (line 65) | public function setConnection(Swift_Plugins_Pop_Pop3Connection $connec...
method bindSmtp (line 75) | public function bindSmtp(Swift_Transport $smtp)
method setTimeout (line 87) | public function setTimeout($timeout)
method setUsername (line 101) | public function setUsername($username)
method setPassword (line 115) | public function setPassword($password)
method connect (line 127) | public function connect()
method disconnect (line 156) | public function disconnect()
method beforeTransportStarted (line 172) | public function beforeTransportStarted(Swift_Events_TransportChangeEve...
method transportStarted (line 187) | public function transportStarted(Swift_Events_TransportChangeEvent $evt)
method beforeTransportStopped (line 194) | public function beforeTransportStopped(Swift_Events_TransportChangeEve...
method transportStopped (line 201) | public function transportStopped(Swift_Events_TransportChangeEvent $evt)
method command (line 205) | private function command($command)
method assertOk (line 220) | private function assertOk($response)
method getHostString (line 227) | private function getHostString()
FILE: lib/classes/Swift/Plugins/RedirectingPlugin.php
class Swift_Plugins_RedirectingPlugin (line 16) | class Swift_Plugins_RedirectingPlugin implements Swift_Events_SendListener
method __construct (line 37) | public function __construct($recipient, array $whitelist = [])
method setRecipient (line 48) | public function setRecipient($recipient)
method getRecipient (line 58) | public function getRecipient()
method setWhitelist (line 66) | public function setWhitelist(array $whitelist)
method getWhitelist (line 76) | public function getWhitelist()
method beforeSendPerformed (line 84) | public function beforeSendPerformed(Swift_Events_SendEvent $evt)
method filterHeaderSet (line 126) | private function filterHeaderSet(Swift_Mime_SimpleHeaderSet $headerSet...
method filterNameAddresses (line 138) | private function filterNameAddresses(array $recipients)
method isWhitelisted (line 156) | protected function isWhitelisted($recipient)
method sendPerformed (line 174) | public function sendPerformed(Swift_Events_SendEvent $evt)
method restoreMessage (line 179) | private function restoreMessage(Swift_Mime_SimpleMessage $message)
FILE: lib/classes/Swift/Plugins/Reporter.php
type Swift_Plugins_Reporter (line 16) | interface Swift_Plugins_Reporter
method notify (line 30) | public function notify(Swift_Mime_SimpleMessage $message, $address, $r...
FILE: lib/classes/Swift/Plugins/ReporterPlugin.php
class Swift_Plugins_ReporterPlugin (line 16) | class Swift_Plugins_ReporterPlugin implements Swift_Events_SendListener
method __construct (line 28) | public function __construct(Swift_Plugins_Reporter $reporter)
method beforeSendPerformed (line 36) | public function beforeSendPerformed(Swift_Events_SendEvent $evt)
method sendPerformed (line 43) | public function sendPerformed(Swift_Events_SendEvent $evt)
FILE: lib/classes/Swift/Plugins/Reporters/HitReporter.php
class Swift_Plugins_Reporters_HitReporter (line 16) | class Swift_Plugins_Reporters_HitReporter implements Swift_Plugins_Reporter
method notify (line 33) | public function notify(Swift_Mime_SimpleMessage $message, $address, $r...
method getFailedRecipients (line 46) | public function getFailedRecipients()
method clear (line 54) | public function clear()
FILE: lib/classes/Swift/Plugins/Reporters/HtmlReporter.php
class Swift_Plugins_Reporters_HtmlReporter (line 16) | class Swift_Plugins_Reporters_HtmlReporter implements Swift_Plugins_Repo...
method notify (line 24) | public function notify(Swift_Mime_SimpleMessage $message, $address, $r...
FILE: lib/classes/Swift/Plugins/Sleeper.php
type Swift_Plugins_Sleeper (line 16) | interface Swift_Plugins_Sleeper
method sleep (line 23) | public function sleep($seconds);
FILE: lib/classes/Swift/Plugins/ThrottlerPlugin.php
class Swift_Plugins_ThrottlerPlugin (line 16) | class Swift_Plugins_ThrottlerPlugin extends Swift_Plugins_BandwidthMonit...
method __construct (line 79) | public function __construct($rate, $mode = self::BYTES_PER_MINUTE, Swi...
method beforeSendPerformed (line 90) | public function beforeSendPerformed(Swift_Events_SendEvent $evt)
method sendPerformed (line 121) | public function sendPerformed(Swift_Events_SendEvent $evt)
method sleep (line 132) | public function sleep($seconds)
method getTimestamp (line 146) | public function getTimestamp()
method throttleBytesPerMinute (line 162) | private function throttleBytesPerMinute($timePassed)
method throttleMessagesPerSecond (line 176) | private function throttleMessagesPerSecond($timePassed)
method throttleMessagesPerMinute (line 190) | private function throttleMessagesPerMinute($timePassed)
FILE: lib/classes/Swift/Plugins/Timer.php
type Swift_Plugins_Timer (line 16) | interface Swift_Plugins_Timer
method getTimestamp (line 23) | public function getTimestamp();
FILE: lib/classes/Swift/Preferences.php
class Swift_Preferences (line 16) | class Swift_Preferences
method __construct (line 22) | private function __construct()
method getInstance (line 31) | public static function getInstance()
method setCharset (line 47) | public function setCharset($charset)
method setTempDir (line 61) | public function setTempDir($dir)
method setCacheType (line 75) | public function setCacheType($type)
method setQPDotEscape (line 89) | public function setQPDotEscape($dotEscape)
FILE: lib/classes/Swift/ReplacementFilterFactory.php
type Swift_ReplacementFilterFactory (line 16) | interface Swift_ReplacementFilterFactory
method createFilter (line 26) | public function createFilter($search, $replace);
FILE: lib/classes/Swift/RfcComplianceException.php
class Swift_RfcComplianceException (line 16) | class Swift_RfcComplianceException extends Swift_SwiftException
method __construct (line 23) | public function __construct($message)
FILE: lib/classes/Swift/SendmailTransport.php
class Swift_SendmailTransport (line 16) | class Swift_SendmailTransport extends Swift_Transport_SendmailTransport
method __construct (line 23) | public function __construct($command = '/usr/sbin/sendmail -bs')
FILE: lib/classes/Swift/Signer.php
type Swift_Signer (line 16) | interface Swift_Signer
method reset (line 18) | public function reset();
FILE: lib/classes/Swift/Signers/BodySigner.php
type Swift_Signers_BodySigner (line 16) | interface Swift_Signers_BodySigner extends Swift_Signer
method signMessage (line 23) | public function signMessage(Swift_Message $message);
method getAlteredHeaders (line 30) | public function getAlteredHeaders();
FILE: lib/classes/Swift/Signers/DKIMSigner.php
class Swift_Signers_DKIMSigner (line 16) | class Swift_Signers_DKIMSigner implements Swift_Signers_HeaderSigner
method __construct (line 176) | public function __construct($privateKey, $domainName, $selector, $pass...
method reset (line 190) | public function reset()
method write (line 219) | public function write($bytes)
method commit (line 231) | public function commit()
method bind (line 243) | public function bind(Swift_InputByteStream $is)
method unbind (line 258) | public function unbind(Swift_InputByteStream $is)
method flushBuffers (line 276) | public function flushBuffers()
method setHashAlgorithm (line 290) | public function setHashAlgorithm($hash)
method setBodyCanon (line 316) | public function setBodyCanon($canon)
method setHeaderCanon (line 334) | public function setHeaderCanon($canon)
method setSignerIdentity (line 352) | public function setSignerIdentity($identity)
method setBodySignedLen (line 366) | public function setBodySignedLen($len)
method setSignatureTimestamp (line 389) | public function setSignatureTimestamp($time)
method setSignatureExpiration (line 403) | public function setSignatureExpiration($time)
method setDebugHeaders (line 417) | public function setDebugHeaders($debug)
method startBody (line 427) | public function startBody()
method endBody (line 444) | public function endBody()
method getAlteredHeaders (line 454) | public function getAlteredHeaders()
method ignoreHeader (line 470) | public function ignoreHeader($header_name)
method setHeaders (line 482) | public function setHeaders(Swift_Mime_SimpleHeaderSet $headers)
method addSignature (line 510) | public function addSignature(Swift_Mime_SimpleHeaderSet $headers)
method addHeader (line 558) | protected function addHeader($header, $is_sig = false)
method canonicalizeBody (line 575) | protected function canonicalizeBody($string)
method endOfBody (line 629) | protected function endOfBody()
method addToBodyHash (line 638) | private function addToBodyHash($string)
method addToHeaderHash (line 649) | private function addToHeaderHash($header)
method getEncryptedHash (line 662) | private function getEncryptedHash()
FILE: lib/classes/Swift/Signers/DomainKeySigner.php
class Swift_Signers_DomainKeySigner (line 16) | class Swift_Signers_DomainKeySigner implements Swift_Signers_HeaderSigner
method __construct (line 117) | public function __construct($privateKey, $domainName, $selector)
method reset (line 130) | public function reset()
method write (line 159) | public function write($bytes)
method commit (line 177) | public function commit()
method bind (line 191) | public function bind(Swift_InputByteStream $is)
method unbind (line 208) | public function unbind(Swift_InputByteStream $is)
method flushBuffers (line 230) | public function flushBuffers()
method setHashAlgorithm (line 244) | public function setHashAlgorithm($hash)
method setCanon (line 258) | public function setCanon($canon)
method setSignerIdentity (line 276) | public function setSignerIdentity($identity)
method setDebugHeaders (line 290) | public function setDebugHeaders($debug)
method startBody (line 300) | public function startBody()
method endBody (line 307) | public function endBody()
method getAlteredHeaders (line 317) | public function getAlteredHeaders()
method ignoreHeader (line 333) | public function ignoreHeader($header_name)
method setHeaders (line 345) | public function setHeaders(Swift_Mime_SimpleHeaderSet $headers)
method addSignature (line 375) | public function addSignature(Swift_Mime_SimpleHeaderSet $headers)
method addHeader (line 391) | protected function addHeader($header)
method endOfHeaders (line 408) | protected function endOfHeaders()
method canonicalizeBody (line 413) | protected function canonicalizeBody($string)
method endOfBody (line 463) | protected function endOfBody()
method addToHash (line 470) | private function addToHash($string)
method startHash (line 476) | private function startHash()
method getEncryptedHash (line 492) | private function getEncryptedHash()
FILE: lib/classes/Swift/Signers/HeaderSigner.php
type Swift_Signers_HeaderSigner (line 16) | interface Swift_Signers_HeaderSigner extends Swift_Signer, Swift_InputBy...
method ignoreHeader (line 25) | public function ignoreHeader($header_name);
method startBody (line 32) | public function startBody();
method endBody (line 39) | public function endBody();
method setHeaders (line 46) | public function setHeaders(Swift_Mime_SimpleHeaderSet $headers);
method addSignature (line 53) | public function addSignature(Swift_Mime_SimpleHeaderSet $headers);
method getAlteredHeaders (line 60) | public function getAlteredHeaders();
FILE: lib/classes/Swift/Signers/OpenDKIMSigner.php
class Swift_Signers_OpenDKIMSigner (line 19) | class Swift_Signers_OpenDKIMSigner extends Swift_Signers_DKIMSigner
method __construct (line 32) | public function __construct($privateKey, $domainName, $selector)
method addSignature (line 43) | public function addSignature(Swift_Mime_SimpleHeaderSet $headers)
method setHeaders (line 56) | public function setHeaders(Swift_Mime_SimpleHeaderSet $headers)
method startBody (line 95) | public function startBody()
method endBody (line 106) | public function endBody()
method reset (line 116) | public function reset()
method setSignatureTimestamp (line 131) | public function setSignatureTimestamp($time)
method setSignatureExpiration (line 145) | public function setSignatureExpiration($time)
method setDebugHeaders (line 159) | public function setDebugHeaders($debug)
method canonicalizeBody (line 168) | protected function canonicalizeBody($string)
FILE: lib/classes/Swift/Signers/SMimeSigner.php
class Swift_Signers_SMimeSigner (line 18) | class Swift_Signers_SMimeSigner implements Swift_Signers_BodySigner
method __construct (line 49) | public function __construct($signCertificate = null, $signPrivateKey =...
method setSignCertificate (line 78) | public function setSignCertificate($certificate, $privateKey = null, $...
method setEncryptCertificate (line 108) | public function setEncryptCertificate($recipientCerts, $cipher = null)
method getSignCertificate (line 130) | public function getSignCertificate()
method getSignPrivateKey (line 138) | public function getSignPrivateKey()
method setSignThenEncrypt (line 154) | public function setSignThenEncrypt($signThenEncrypt = true)
method isSignThenEncrypt (line 164) | public function isSignThenEncrypt()
method reset (line 174) | public function reset()
method setWrapFullMessage (line 194) | public function setWrapFullMessage($wrap)
method signMessage (line 204) | public function signMessage(Swift_Message $message)
method getAlteredHeaders (line 224) | public function getAlteredHeaders()
method smimeSignMessage (line 232) | protected function smimeSignMessage(Swift_Message $message)
method smimeEncryptMessage (line 289) | protected function smimeEncryptMessage(Swift_Message $message)
method copyHeaders (line 346) | protected function copyHeaders(
method copyHeader (line 361) | protected function copyHeader(Swift_Message $fromMessage, Swift_Messag...
method clearAllHeaders (line 385) | protected function clearAllHeaders(Swift_Message $message)
method wrapMimeMessage (line 398) | protected function wrapMimeMessage(Swift_Message $message)
method parseSSLOutput (line 412) | protected function parseSSLOutput(Swift_InputByteStream $inputStream, ...
method streamToMime (line 423) | protected function streamToMime(Swift_OutputByteStream $fromStream, Sw...
method parseStream (line 467) | protected function parseStream(Swift_OutputByteStream $emailStream)
method copyFromOpenSSLOutput (line 523) | protected function copyFromOpenSSLOutput(Swift_OutputByteStream $fromS...
FILE: lib/classes/Swift/SmtpTransport.php
class Swift_SmtpTransport (line 23) | class Swift_SmtpTransport extends Swift_Transport_EsmtpTransport
method __construct (line 33) | public function __construct($host = 'localhost', $port = 25, $encrypti...
FILE: lib/classes/Swift/Spool.php
type Swift_Spool (line 16) | interface Swift_Spool
method start (line 21) | public function start();
method stop (line 26) | public function stop();
method isStarted (line 33) | public function isStarted();
method queueMessage (line 42) | public function queueMessage(Swift_Mime_SimpleMessage $message);
method flushQueue (line 52) | public function flushQueue(Swift_Transport $transport, &$failedRecipie...
FILE: lib/classes/Swift/SpoolTransport.php
class Swift_SpoolTransport (line 16) | class Swift_SpoolTransport extends Swift_Transport_SpoolTransport
method __construct (line 21) | public function __construct(Swift_Spool $spool)
FILE: lib/classes/Swift/StreamFilter.php
type Swift_StreamFilter (line 16) | interface Swift_StreamFilter
method shouldBuffer (line 25) | public function shouldBuffer($buffer);
method filter (line 34) | public function filter($buffer);
FILE: lib/classes/Swift/StreamFilters/ByteArrayReplacementFilter.php
class Swift_StreamFilters_ByteArrayReplacementFilter (line 18) | class Swift_StreamFilters_ByteArrayReplacementFilter implements Swift_St...
method __construct (line 40) | public function __construct($search, $replace)
method shouldBuffer (line 100) | public function shouldBuffer($buffer)
method filter (line 115) | public function filter($buffer, $minReplaces = -1)
FILE: lib/classes/Swift/StreamFilters/StringReplacementFilter.php
class Swift_StreamFilters_StringReplacementFilter (line 16) | class Swift_StreamFilters_StringReplacementFilter implements Swift_Strea...
method __construct (line 30) | public function __construct($search, $replace)
method shouldBuffer (line 43) | public function shouldBuffer($buffer)
method filter (line 66) | public function filter($buffer)
FILE: lib/classes/Swift/StreamFilters/StringReplacementFilterFactory.php
class Swift_StreamFilters_StringReplacementFilterFactory (line 16) | class Swift_StreamFilters_StringReplacementFilterFactory implements Swif...
method createFilter (line 29) | public function createFilter($search, $replace)
FILE: lib/classes/Swift/SwiftException.php
class Swift_SwiftException (line 16) | class Swift_SwiftException extends Exception
method __construct (line 24) | public function __construct($message, $code = 0, Exception $previous =...
FILE: lib/classes/Swift/Transport.php
type Swift_Transport (line 16) | interface Swift_Transport
method isStarted (line 23) | public function isStarted();
method start (line 28) | public function start();
method stop (line 33) | public function stop();
method ping (line 56) | public function ping();
method send (line 70) | public function send(Swift_Mime_SimpleMessage $message, &$failedRecipi...
method registerPlugin (line 75) | public function registerPlugin(Swift_Events_EventListener $plugin);
FILE: lib/classes/Swift/Transport/AbstractSmtpTransport.php
class Swift_Transport_AbstractSmtpTransport (line 16) | abstract class Swift_Transport_AbstractSmtpTransport implements Swift_Tr...
method getBufferParams (line 42) | abstract protected function getBufferParams();
method __construct (line 49) | public function __construct(Swift_Transport_IoBuffer $buf, Swift_Event...
method setLocalDomain (line 71) | public function setLocalDomain($domain)
method getLocalDomain (line 94) | public function getLocalDomain()
method setSourceIp (line 104) | public function setSourceIp($source)
method getSourceIp (line 114) | public function getSourceIp()
method setAddressEncoder (line 119) | public function setAddressEncoder(Swift_AddressEncoder $addressEncoder)
method getAddressEncoder (line 124) | public function getAddressEncoder()
method start (line 132) | public function start()
method isStarted (line 163) | public function isStarted()
method send (line 178) | public function send(Swift_Mime_SimpleMessage $message, &$failedRecipi...
method stop (line 231) | public function stop()
method ping (line 262) | public function ping()
method registerPlugin (line 285) | public function registerPlugin(Swift_Events_EventListener $plugin)
method reset (line 293) | public function reset()
method getBuffer (line 303) | public function getBuffer()
method executeCommand (line 324) | public function executeCommand($command, $codes = [], &$failures = nul...
method readGreeting (line 358) | protected function readGreeting()
method doHeloCommand (line 364) | protected function doHeloCommand()
method doMailFromCommand (line 372) | protected function doMailFromCommand($address)
method doRcptToCommand (line 381) | protected function doRcptToCommand($address)
method doDataCommand (line 390) | protected function doDataCommand(&$failedRecipients)
method streamMessage (line 396) | protected function streamMessage(Swift_Mime_SimpleMessage $message)
method getReversePath (line 410) | protected function getReversePath(Swift_Mime_SimpleMessage $message)
method throwException (line 431) | protected function throwException(Swift_TransportException $e)
method assertResponseCode (line 444) | protected function assertResponseCode($response, $wanted)
method getFullResponse (line 464) | protected function getFullResponse($seq)
method doMailTransaction (line 482) | private function doMailTransaction($message, $reversePath, array $reci...
method sendTo (line 511) | private function sendTo(Swift_Mime_SimpleMessage $message, $reversePat...
method __destruct (line 524) | public function __destruct()
method __sleep (line 532) | public function __sleep()
method __wakeup (line 537) | public function __wakeup()
FILE: lib/classes/Swift/Transport/Esmtp/Auth/CramMd5Authenticator.php
class Swift_Transport_Esmtp_Auth_CramMd5Authenticator (line 16) | class Swift_Transport_Esmtp_Auth_CramMd5Authenticator implements Swift_T...
method getAuthKeyword (line 23) | public function getAuthKeyword()
method authenticate (line 31) | public function authenticate(Swift_Transport_SmtpAgent $agent, $userna...
method getResponse (line 57) | private function getResponse($secret, $challenge)
FILE: lib/classes/Swift/Transport/Esmtp/Auth/LoginAuthenticator.php
class Swift_Transport_Esmtp_Auth_LoginAuthenticator (line 16) | class Swift_Transport_Esmtp_Auth_LoginAuthenticator implements Swift_Tra...
method getAuthKeyword (line 23) | public function getAuthKeyword()
method authenticate (line 31) | public function authenticate(Swift_Transport_SmtpAgent $agent, $userna...
FILE: lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php
class Swift_Transport_Esmtp_Auth_NTLMAuthenticator (line 18) | class Swift_Transport_Esmtp_Auth_NTLMAuthenticator implements Swift_Tran...
method getAuthKeyword (line 28) | public function getAuthKeyword()
method authenticate (line 38) | public function authenticate(Swift_Transport_SmtpAgent $agent, $userna...
method si2bin (line 68) | protected function si2bin($si, $bits = 32)
method sendMessage1 (line 99) | protected function sendMessage1(Swift_Transport_SmtpAgent $agent)
method parseMessage2 (line 113) | protected function parseMessage2($response)
method readSubBlock (line 145) | protected function readSubBlock($block)
method sendMessage3 (line 182) | protected function sendMessage3($response, $username, $password, $time...
method createMessage1 (line 210) | protected function createMessage1()
method createMessage3 (line 228) | protected function createMessage3($domain, $username, $workstation, $l...
method createBlob (line 264) | protected function createBlob($timestamp, $client, $targetInfo)
method getDomainAndUsername (line 284) | protected function getDomainAndUsername($name)
method createLMPassword (line 308) | protected function createLMPassword($password, $challenge)
method createNTLMPassword (line 337) | protected function createNTLMPassword($password, $challenge)
method getCorrectTimestamp (line 357) | protected function getCorrectTimestamp($time)
method createLMv2Password (line 384) | protected function createLMv2Password($password, $username, $domain, $...
method createNTLMv2Hash (line 413) | protected function createNTLMv2Hash($password, $username, $domain, $ch...
method createDesKey (line 426) | protected function createDesKey($key)
method createSecurityBuffer (line 466) | protected function createSecurityBuffer($value, $offset, $is16 = false)
method readSecurityBuffer (line 482) | protected function readSecurityBuffer($value)
method castToByte (line 497) | protected function castToByte($v)
method uRShift (line 511) | protected function uRShift($a, $b)
method createByte (line 529) | protected function createByte($input, $bytes = 4, $isHex = true)
method desEncrypt (line 550) | protected function desEncrypt($value, $key)
method md5Encrypt (line 563) | protected function md5Encrypt($key, $msg)
method md4Encrypt (line 586) | protected function md4Encrypt($input)
method convertTo16bit (line 600) | protected function convertTo16bit($input)
method debug (line 608) | protected function debug($message)
FILE: lib/classes/Swift/Transport/Esmtp/Auth/PlainAuthenticator.php
class Swift_Transport_Esmtp_Auth_PlainAuthenticator (line 16) | class Swift_Transport_Esmtp_Auth_PlainAuthenticator implements Swift_Tra...
method getAuthKeyword (line 23) | public function getAuthKeyword()
method authenticate (line 31) | public function authenticate(Swift_Transport_SmtpAgent $agent, $userna...
FILE: lib/classes/Swift/Transport/Esmtp/Auth/XOAuth2Authenticator.php
class Swift_Transport_Esmtp_Auth_XOAuth2Authenticator (line 26) | class Swift_Transport_Esmtp_Auth_XOAuth2Authenticator implements Swift_T...
method getAuthKeyword (line 33) | public function getAuthKeyword()
method authenticate (line 41) | public function authenticate(Swift_Transport_SmtpAgent $agent, $email,...
method constructXOAuth2Params (line 60) | protected function constructXOAuth2Params($email, $token)
FILE: lib/classes/Swift/Transport/Esmtp/AuthHandler.php
class Swift_Transport_Esmtp_AuthHandler (line 16) | class Swift_Transport_Esmtp_AuthHandler implements Swift_Transport_Esmtp...
method __construct (line 58) | public function __construct(array $authenticators)
method setAuthenticators (line 68) | public function setAuthenticators(array $authenticators)
method getAuthenticators (line 78) | public function getAuthenticators()
method setUsername (line 88) | public function setUsername($username)
method getUsername (line 98) | public function getUsername()
method setPassword (line 108) | public function setPassword($password)
method getPassword (line 118) | public function getPassword()
method setAuthMode (line 128) | public function setAuthMode($mode)
method getAuthMode (line 138) | public function getAuthMode()
method getHandledKeyword (line 148) | public function getHandledKeyword()
method setKeywordParams (line 158) | public function setKeywordParams(array $parameters)
method afterEhlo (line 168) | public function afterEhlo(Swift_Transport_SmtpAgent $agent)
method getMailParams (line 198) | public function getMailParams()
method getRcptParams (line 206) | public function getRcptParams()
method onCommand (line 214) | public function onCommand(Swift_Transport_SmtpAgent $agent, $command, ...
method getPriorityOver (line 227) | public function getPriorityOver($esmtpKeyword)
method exposeMixinMethods (line 237) | public function exposeMixinMethods()
method resetState (line 245) | public function resetState()
method getAuthenticatorsForAgent (line 254) | protected function getAuthenticatorsForAgent()
FILE: lib/classes/Swift/Transport/Esmtp/Authenticator.php
type Swift_Transport_Esmtp_Authenticator (line 16) | interface Swift_Transport_Esmtp_Authenticator
method getAuthKeyword (line 23) | public function getAuthKeyword();
method authenticate (line 35) | public function authenticate(Swift_Transport_SmtpAgent $agent, $userna...
FILE: lib/classes/Swift/Transport/Esmtp/EightBitMimeHandler.php
class Swift_Transport_Esmtp_EightBitMimeHandler (line 23) | class Swift_Transport_Esmtp_EightBitMimeHandler implements Swift_Transpo...
method __construct (line 31) | public function __construct(string $encoding = '8BITMIME')
method getHandledKeyword (line 41) | public function getHandledKeyword()
method setKeywordParams (line 49) | public function setKeywordParams(array $parameters)
method afterEhlo (line 56) | public function afterEhlo(Swift_Transport_SmtpAgent $agent)
method getMailParams (line 65) | public function getMailParams()
method getRcptParams (line 73) | public function getRcptParams()
method onCommand (line 81) | public function onCommand(Swift_Transport_SmtpAgent $agent, $command, ...
method getPriorityOver (line 94) | public function getPriorityOver($esmtpKeyword)
method exposeMixinMethods (line 102) | public function exposeMixinMethods()
method resetState (line 110) | public function resetState()
FILE: lib/classes/Swift/Transport/Esmtp/SmtpUtf8Handler.php
class Swift_Transport_Esmtp_SmtpUtf8Handler (line 24) | class Swift_Transport_Esmtp_SmtpUtf8Handler implements Swift_Transport_E...
method __construct (line 26) | public function __construct()
method getHandledKeyword (line 35) | public function getHandledKeyword()
method setKeywordParams (line 43) | public function setKeywordParams(array $parameters)
method afterEhlo (line 50) | public function afterEhlo(Swift_Transport_SmtpAgent $agent)
method getMailParams (line 59) | public function getMailParams()
method getRcptParams (line 67) | public function getRcptParams()
method onCommand (line 75) | public function onCommand(Swift_Transport_SmtpAgent $agent, $command, ...
method getPriorityOver (line 88) | public function getPriorityOver($esmtpKeyword)
method exposeMixinMethods (line 96) | public function exposeMixinMethods()
method resetState (line 104) | public function resetState()
FILE: lib/classes/Swift/Transport/EsmtpHandler.php
type Swift_Transport_EsmtpHandler (line 16) | interface Swift_Transport_EsmtpHandler
method getHandledKeyword (line 23) | public function getHandledKeyword();
method setKeywordParams (line 30) | public function setKeywordParams(array $parameters);
method afterEhlo (line 37) | public function afterEhlo(Swift_Transport_SmtpAgent $agent);
method getMailParams (line 44) | public function getMailParams();
method getRcptParams (line 51) | public function getRcptParams();
method onCommand (line 62) | public function onCommand(Swift_Transport_SmtpAgent $agent, $command, ...
method getPriorityOver (line 73) | public function getPriorityOver($esmtpKeyword);
method exposeMixinMethods (line 80) | public function exposeMixinMethods();
method resetState (line 85) | public function resetState();
FILE: lib/classes/Swift/Transport/EsmtpTransport.php
class Swift_Transport_EsmtpTransport (line 16) | class Swift_Transport_EsmtpTransport extends Swift_Transport_AbstractSmt...
method __construct (line 54) | public function __construct(Swift_Transport_IoBuffer $buf, array $exte...
method setHost (line 69) | public function setHost($host)
method getHost (line 81) | public function getHost()
method setPort (line 93) | public function setPort($port)
method getPort (line 105) | public function getPort()
method setTimeout (line 117) | public function setTimeout($timeout)
method getTimeout (line 130) | public function getTimeout()
method setEncryption (line 142) | public function setEncryption($encryption)
method getEncryption (line 161) | public function getEncryption()
method setStreamOptions (line 173) | public function setStreamOptions($options)
method getStreamOptions (line 185) | public function getStreamOptions()
method setSourceIp (line 199) | public function setSourceIp($source)
method getSourceIp (line 211) | public function getSourceIp()
method setPipelining (line 227) | public function setPipelining($enabled)
method getPipelining (line 240) | public function getPipelining()
method setExtensionHandlers (line 252) | public function setExtensionHandlers(array $handlers)
method getExtensionHandlers (line 272) | public function getExtensionHandlers()
method executeCommand (line 291) | public function executeCommand($command, $codes = [], &$failures = nul...
method __call (line 309) | public function __call($method, $args)
method getBufferParams (line 328) | protected function getBufferParams()
method doHeloCommand (line 334) | protected function doHeloCommand()
method doMailFromCommand (line 376) | protected function doMailFromCommand($address)
method doRcptToCommand (line 391) | protected function doRcptToCommand($address)
method getCapabilities (line 406) | private function getCapabilities($ehloResponse)
method setHandlerParams (line 425) | private function setHandlerParams()
method getActiveHandlers (line 435) | private function getActiveHandlers()
FILE: lib/classes/Swift/Transport/FailoverTransport.php
class Swift_Transport_FailoverTransport (line 16) | class Swift_Transport_FailoverTransport extends Swift_Transport_LoadBala...
method __construct (line 26) | public function __construct()
method ping (line 34) | public function ping()
method send (line 59) | public function send(Swift_Mime_SimpleMessage $message, &$failedRecipi...
method getNextTransport (line 89) | protected function getNextTransport()
method killCurrentTransport (line 98) | protected function killCurrentTransport()
FILE: lib/classes/Swift/Transport/IoBuffer.php
type Swift_Transport_IoBuffer (line 16) | interface Swift_Transport_IoBuffer extends Swift_InputByteStream, Swift_...
method initialize (line 29) | public function initialize(array $params);
method setParam (line 37) | public function setParam($param, $value);
method terminate (line 42) | public function terminate();
method setWriteTranslations (line 52) | public function setWriteTranslations(array $replacements);
method readLine (line 64) | public function readLine($sequence);
FILE: lib/classes/Swift/Transport/LoadBalancedTransport.php
class Swift_Transport_LoadBalancedTransport (line 16) | class Swift_Transport_LoadBalancedTransport implements Swift_Transport
method __construct (line 40) | public function __construct()
method setTransports (line 49) | public function setTransports(array $transports)
method getTransports (line 60) | public function getTransports()
method getLastUsedTransport (line 70) | public function getLastUsedTransport()
method isStarted (line 80) | public function isStarted()
method start (line 88) | public function start()
method stop (line 96) | public function stop()
method ping (line 106) | public function ping()
method send (line 127) | public function send(Swift_Mime_SimpleMessage $message, &$failedRecipi...
method registerPlugin (line 158) | public function registerPlugin(Swift_Events_EventListener $plugin)
method getNextTransport (line 170) | protected function getNextTransport()
method killCurrentTransport (line 182) | protected function killCurrentTransport()
FILE: lib/classes/Swift/Transport/NullTransport.php
class Swift_Transport_NullTransport (line 16) | class Swift_Transport_NullTransport implements Swift_Transport
method __construct (line 24) | public function __construct(Swift_Events_EventDispatcher $eventDispatc...
method isStarted (line 34) | public function isStarted()
method start (line 42) | public function start()
method stop (line 49) | public function stop()
method ping (line 56) | public function ping()
method send (line 68) | public function send(Swift_Mime_SimpleMessage $message, &$failedRecipi...
method registerPlugin (line 94) | public function registerPlugin(Swift_Events_EventListener $plugin)
FILE: lib/classes/Swift/Transport/SendmailTransport.php
class Swift_Transport_SendmailTransport (line 20) | class Swift_Transport_SendmailTransport extends Swift_Transport_Abstract...
method __construct (line 39) | public function __construct(Swift_Transport_IoBuffer $buf, Swift_Event...
method start (line 47) | public function start()
method setCommand (line 68) | public function setCommand($command)
method getCommand (line 80) | public function getCommand()
method send (line 98) | public function send(Swift_Mime_SimpleMessage $message, &$failedRecipi...
method getBufferParams (line 154) | protected function getBufferParams()
FILE: lib/classes/Swift/Transport/SmtpAgent.php
type Swift_Transport_SmtpAgent (line 16) | interface Swift_Transport_SmtpAgent
method getBuffer (line 23) | public function getBuffer();
method executeCommand (line 35) | public function executeCommand($command, $codes = [], &$failures = null);
FILE: lib/classes/Swift/Transport/SpoolTransport.php
class Swift_Transport_SpoolTransport (line 16) | class Swift_Transport_SpoolTransport implements Swift_Transport
method __construct (line 27) | public function __construct(Swift_Events_EventDispatcher $eventDispatc...
method setSpool (line 38) | public function setSpool(Swift_Spool $spool)
method getSpool (line 50) | public function getSpool()
method isStarted (line 60) | public function isStarted()
method start (line 68) | public function start()
method stop (line 75) | public function stop()
method ping (line 82) | public function ping()
method send (line 94) | public function send(Swift_Mime_SimpleMessage $message, &$failedRecipi...
method registerPlugin (line 116) | public function registerPlugin(Swift_Events_EventListener $plugin)
FILE: lib/classes/Swift/Transport/StreamBuffer.php
class Swift_Transport_StreamBuffer (line 16) | class Swift_Transport_StreamBuffer extends Swift_ByteStream_AbstractFilt...
method __construct (line 39) | public function __construct(Swift_ReplacementFilterFactory $replacemen...
method initialize (line 49) | public function initialize(array $params)
method setParam (line 69) | public function setParam($param, $value)
method startTLS (line 88) | public function startTLS()
method terminate (line 100) | public function terminate()
method setWriteTranslations (line 128) | public function setWriteTranslations(array $replacements)
method readLine (line 159) | public function readLine($sequence)
method read (line 187) | public function read($length)
method setReadPointer (line 203) | public function setReadPointer($byteOffset)
method flush (line 208) | protected function flush()
method doCommit (line 216) | protected function doCommit($bytes)
method establishSocketConnection (line 240) | private function establishSocketConnection()
method establishProcessConnection (line 282) | private function establishProcessConnection()
method getReadConnectionDescription (line 300) | private function getReadConnectionDescription()
FILE: lib/classes/Swift/TransportException.php
class Swift_TransportException (line 16) | class Swift_TransportException extends Swift_IoException
method __construct (line 24) | public function __construct($message, $code = 0, Exception $previous =...
FILE: lib/swiftmailer_generate_mimes_config.php
function generateUpToDateMimeArray (line 7) | function generateUpToDateMimeArray()
FILE: tests/IdenticalBinaryConstraint.php
class IdenticalBinaryConstraint (line 8) | class IdenticalBinaryConstraint extends \PHPUnit\Framework\Constraint\Co...
method __construct (line 12) | public function __construct($value)
method matches (line 23) | public function matches($other): bool
method toString (line 34) | public function toString(): string
method asHexString (line 46) | private function asHexString($binary)
FILE: tests/StreamCollector.php
class Swift_StreamCollector (line 3) | class Swift_StreamCollector
method __invoke (line 7) | public function __invoke($arg)
FILE: tests/SwiftMailerSmokeTestCase.php
class SwiftMailerSmokeTestCase (line 8) | class SwiftMailerSmokeTestCase extends SwiftMailerTestCase
method setUp (line 10) | protected function setUp()
method getMailer (line 19) | protected function getMailer()
FILE: tests/SwiftMailerTestCase.php
class SwiftMailerTestCase (line 10) | class SwiftMailerTestCase extends \PHPUnit\Framework\TestCase
method regExp (line 14) | public static function regExp($pattern)
method assertIdenticalBinary (line 23) | public function assertIdenticalBinary($expected, $actual, $message = '')
method getMockery (line 29) | protected function getMockery($class)
FILE: tests/acceptance/Swift/AttachmentAcceptanceTest.php
class Swift_AttachmentAcceptanceTest (line 6) | class Swift_AttachmentAcceptanceTest extends Swift_Mime_AttachmentAccept...
method createAttachment (line 8) | protected function createAttachment()
FILE: tests/acceptance/Swift/ByteStream/FileByteStreamAcceptanceTest.php
class Swift_ByteStream_FileByteStreamAcceptanceTest (line 3) | class Swift_ByteStream_FileByteStreamAcceptanceTest extends \PHPUnit\Fra...
method setUp (line 7) | protected function setUp()
method tearDown (line 13) | protected function tearDown()
method testFileDataCanBeRead (line 18) | public function testFileDataCanBeRead()
method testFileDataCanBeReadSequentially (line 28) | public function testFileDataCanBeReadSequentially()
method testFilenameIsReturned (line 36) | public function testFilenameIsReturned()
method testFileCanBeWrittenTo (line 42) | public function testFileCanBeWrittenTo()
method testReadingFromThenWritingToFile (line 49) | public function testReadingFromThenWritingToFile()
method testWritingToFileWithCanonicalization (line 58) | public function testWritingToFileWithCanonicalization()
method testWritingWithFulleMessageLengthOfAMultipleOf8192 (line 68) | public function testWritingWithFulleMessageLengthOfAMultipleOf8192()
method testBindingOtherStreamsMirrorsWriteOperations (line 77) | public function testBindingOtherStreamsMirrorsWriteOperations()
method testBindingOtherStreamsMirrorsFlushOperations (line 103) | public function testBindingOtherStreamsMirrorsFlushOperations()
method testUnbindingStreamPreventsFurtherWrites (line 122) | public function testUnbindingStreamPreventsFurtherWrites()
method createFilter (line 148) | private function createFilter($search, $replace)
method createMockInputStream (line 153) | private function createMockInputStream()
method createFileStream (line 158) | private function createFileStream($file, $writable = false)
FILE: tests/acceptance/Swift/CharacterReaderFactory/SimpleCharacterReaderFactoryAcceptanceTest.php
class Swift_CharacterReaderFactory_SimpleCharacterReaderFactoryAcceptanceTest (line 3) | class Swift_CharacterReaderFactory_SimpleCharacterReaderFactoryAcceptanc...
method setUp (line 8) | protected function setUp()
method testCreatingUtf8Reader (line 13) | public function testCreatingUtf8Reader()
method testCreatingIso8859XReaders (line 21) | public function testCreatingIso8859XReaders()
method testCreatingWindows125XReaders (line 40) | public function testCreatingWindows125XReaders()
method testCreatingCodePageReaders (line 57) | public function testCreatingCodePageReaders()
method testCreatingAnsiReader (line 82) | public function testCreatingAnsiReader()
method testCreatingMacintoshReader (line 91) | public function testCreatingMacintoshReader()
method testCreatingKOIReaders (line 100) | public function testCreatingKOIReaders()
method testCreatingIsciiReaders (line 117) | public function testCreatingIsciiReaders()
method testCreatingMIKReader (line 126) | public function testCreatingMIKReader()
method testCreatingCorkReader (line 135) | public function testCreatingCorkReader()
method testCreatingUcs2Reader (line 144) | public function testCreatingUcs2Reader()
method testCreatingUtf16Reader (line 153) | public function testCreatingUtf16Reader()
method testCreatingUcs4Reader (line 162) | public function testCreatingUcs4Reader()
method testCreatingUtf32Reader (line 171) | public function testCreatingUtf32Reader()
FILE: tests/acceptance/Swift/DependencyContainerAcceptanceTest.php
class Swift_DependencyContainerAcceptanceTest (line 7) | class Swift_DependencyContainerAcceptanceTest extends PHPUnit\Framework\...
method testNoLookupsFail (line 9) | public function testNoLookupsFail()
FILE: tests/acceptance/Swift/EmbeddedFileAcceptanceTest.php
class Swift_EmbeddedFileAcceptanceTest (line 6) | class Swift_EmbeddedFileAcceptanceTest extends Swift_Mime_EmbeddedFileAc...
method createEmbeddedFile (line 8) | protected function createEmbeddedFile()
FILE: tests/acceptance/Swift/Encoder/Base64EncoderAcceptanceTest.php
class Swift_Encoder_Base64EncoderAcceptanceTest (line 3) | class Swift_Encoder_Base64EncoderAcceptanceTest extends \PHPUnit\Framewo...
method setUp (line 8) | protected function setUp()
method testEncodingAndDecodingSamples (line 14) | public function testEncodingAndDecodingSamples()
FILE: tests/acceptance/Swift/Encoder/QpEncoderAcceptanceTest.php
class Swift_Encoder_QpEncoderAcceptanceTest (line 3) | class Swift_Encoder_QpEncoderAcceptanceTest extends \PHPUnit\Framework\T...
method setUp (line 8) | protected function setUp()
method testEncodingAndDecodingSamples (line 14) | public function testEncodingAndDecodingSamples()
FILE: tests/acceptance/Swift/Encoder/Rfc2231EncoderAcceptanceTest.php
class Swift_Encoder_Rfc2231EncoderAcceptanceTest (line 3) | class Swift_Encoder_Rfc2231EncoderAcceptanceTest extends \PHPUnit\Framew...
method setUp (line 8) | protected function setUp()
method testEncodingAndDecodingSamples (line 14) | public function testEncodingAndDecodingSamples()
FILE: tests/acceptance/Swift/KeyCache/ArrayKeyCacheAcceptanceTest.php
class Swift_KeyCache_ArrayKeyCacheAcceptanceTest (line 3) | class Swift_KeyCache_ArrayKeyCacheAcceptanceTest extends \PHPUnit\Framew...
method setUp (line 9) | protected function setUp()
method testStringDataCanBeSetAndFetched (line 16) | public function testStringDataCanBeSetAndFetched()
method testStringDataCanBeOverwritten (line 24) | public function testStringDataCanBeOverwritten()
method testStringDataCanBeAppended (line 35) | public function testStringDataCanBeAppended()
method testHasKeyReturnValue (line 46) | public function testHasKeyReturnValue()
method testNsKeyIsWellPartitioned (line 55) | public function testNsKeyIsWellPartitioned()
method testItemKeyIsWellPartitioned (line 67) | public function testItemKeyIsWellPartitioned()
method testByteStreamCanBeImported (line 79) | public function testByteStreamCanBeImported()
method testByteStreamCanBeAppended (line 90) | public function testByteStreamCanBeAppended()
method testByteStreamAndStringCanBeAppended (line 108) | public function testByteStreamAndStringCanBeAppended()
method testDataCanBeExportedToByteStream (line 123) | public function testDataCanBeExportedToByteStream()
method testKeyCanBeCleared (line 141) | public function testKeyCanBeCleared()
method testNsKeyCanBeCleared (line 151) | public function testNsKeyCanBeCleared()
method testKeyCacheInputStream (line 166) | public function testKeyCacheInputStream()
FILE: tests/acceptance/Swift/KeyCache/DiskKeyCacheAcceptanceTest.php
class Swift_KeyCache_DiskKeyCacheAcceptanceTest (line 3) | class Swift_KeyCache_DiskKeyCacheAcceptanceTest extends \PHPUnit\Framewo...
method setUp (line 9) | protected function setUp()
method testStringDataCanBeSetAndFetched (line 16) | public function testStringDataCanBeSetAndFetched()
method testStringDataCanBeOverwritten (line 24) | public function testStringDataCanBeOverwritten()
method testStringDataCanBeAppended (line 35) | public function testStringDataCanBeAppended()
method testHasKeyReturnValue (line 46) | public function testHasKeyReturnValue()
method testNsKeyIsWellPartitioned (line 55) | public function testNsKeyIsWellPartitioned()
method testItemKeyIsWellPartitioned (line 67) | public function testItemKeyIsWellPartitioned()
method testByteStreamCanBeImported (line 79) | public function testByteStreamCanBeImported()
method testByteStreamCanBeAppended (line 90) | public function testByteStreamCanBeAppended()
method testByteStreamAndStringCanBeAppended (line 108) | public function testByteStreamAndStringCanBeAppended()
method testDataCanBeExportedToByteStream (line 123) | public function testDataCanBeExportedToByteStream()
method testKeyCanBeCleared (line 141) | public function testKeyCanBeCleared()
method testNsKeyCanBeCleared (line 151) | public function testNsKeyCanBeCleared()
method testKeyCacheInputStream (line 166) | public function testKeyCacheInputStream()
FILE: tests/acceptance/Swift/MessageAcceptanceTest.php
class Swift_MessageAcceptanceTest (line 6) | class Swift_MessageAcceptanceTest extends Swift_Mime_SimpleMessageAccept...
method testAddPartWrapper (line 8) | public function testAddPartWrapper()
method createMessage (line 48) | protected function createMessage()
FILE: tests/acceptance/Swift/Mime/AttachmentAcceptanceTest.php
class Swift_Mime_AttachmentAcceptanceTest (line 5) | class Swift_Mime_AttachmentAcceptanceTest extends \PHPUnit\Framework\Tes...
method setUp (line 12) | protected function setUp()
method testDispositionIsSetInHeader (line 33) | public function testDispositionIsSetInHeader()
method testDispositionIsAttachmentByDefault (line 46) | public function testDispositionIsAttachmentByDefault()
method testFilenameIsSetInHeader (line 58) | public function testFilenameIsSetInHeader()
method testSizeIsSetInHeader (line 71) | public function testSizeIsSetInHeader()
method testMultipleParametersInHeader (line 84) | public function testMultipleParametersInHeader()
method testEndToEnd (line 98) | public function testEndToEnd()
method createAttachment (line 115) | protected function createAttachment()
FILE: tests/acceptance/Swift/Mime/ContentEncoder/Base64ContentEncoderAcceptanceTest.php
class Swift_Mime_ContentEncoder_Base64ContentEncoderAcceptanceTest (line 3) | class Swift_Mime_ContentEncoder_Base64ContentEncoderAcceptanceTest exten...
method setUp (line 8) | protected function setUp()
method testEncodingAndDecodingSamples (line 14) | public function testEncodingAndDecodingSamples()
FILE: tests/acceptance/Swift/Mime/ContentEncoder/NativeQpContentEncoderAcceptanceTest.php
class Swift_Mime_ContentEncoder_NativeQpContentEncoderAcceptanceTest (line 3) | class Swift_Mime_ContentEncoder_NativeQpContentEncoderAcceptanceTest ext...
method setUp (line 12) | protected function setUp()
method testEncodingAndDecodingSamples (line 18) | public function testEncodingAndDecodingSamples()
method testEncodingAndDecodingSamplesFromDiConfiguredInstance (line 61) | public function testEncodingAndDecodingSamplesFromDiConfiguredInstance()
method testCharsetChangeNotImplemented (line 67) | public function testCharsetChangeNotImplemented()
method testGetName (line 76) | public function testGetName()
method createEncoderFromContainer (line 81) | private function createEncoderFromContainer()
FILE: tests/acceptance/Swift/Mime/ContentEncoder/PlainContentEncoderAcceptanceTest.php
class Swift_Mime_ContentEncoder_PlainContentEncoderAcceptanceTest (line 3) | class Swift_Mime_ContentEncoder_PlainContentEncoderAcceptanceTest extend...
method setUp (line 8) | protected function setUp()
method testEncodingAndDecodingSamplesString (line 14) | public function testEncodingAndDecodingSamplesString()
method testEncodingAndDecodingSamplesByteStream (line 46) | public function testEncodingAndDecodingSamplesByteStream()
FILE: tests/acceptance/Swift/Mime/ContentEncoder/QpContentEncoderAcceptanceTest.php
class Swift_Mime_ContentEncoder_QpContentEncoderAcceptanceTest (line 3) | class Swift_Mime_ContentEncoder_QpContentEncoderAcceptanceTest extends \...
method setUp (line 8) | protected function setUp()
method tearDown (line 14) | protected function tearDown()
method testEncodingAndDecodingSamples (line 19) | public function testEncodingAndDecodingSamples()
method testEncodingAndDecodingSamplesFromDiConfiguredInstance (line 66) | public function testEncodingAndDecodingSamplesFromDiConfiguredInstance()
method testEncodingLFTextWithDiConfiguredInstance (line 111) | public function testEncodingLFTextWithDiConfiguredInstance()
method testEncodingCRTextWithDiConfiguredInstance (line 117) | public function testEncodingCRTextWithDiConfiguredInstance()
method testEncodingLFCRTextWithDiConfiguredInstance (line 123) | public function testEncodingLFCRTextWithDiConfiguredInstance()
method testEncodingCRLFTextWithDiConfiguredInstance (line 129) | public function testEncodingCRLFTextWithDiConfiguredInstance()
method testEncodingDotStuffingWithDiConfiguredInstance (line 135) | public function testEncodingDotStuffingWithDiConfiguredInstance()
method testDotStuffingEncodingAndDecodingSamplesFromDiConfiguredInstance (line 147) | public function testDotStuffingEncodingAndDecodingSamplesFromDiConfigu...
method createEncoderFromContainer (line 154) | private function createEncoderFromContainer()
FILE: tests/acceptance/Swift/Mime/EmbeddedFileAcceptanceTest.php
class Swift_Mime_EmbeddedFileAcceptanceTest (line 5) | class Swift_Mime_EmbeddedFileAcceptanceTest extends \PHPUnit\Framework\T...
method setUp (line 12) | protected function setUp()
method testContentIdIsSetInHeader (line 33) | public function testContentIdIsSetInHeader()
method testDispositionIsSetInHeader (line 47) | public function testDispositionIsSetInHeader()
method testFilenameIsSetInHeader (line 62) | public function testFilenameIsSetInHeader()
method testSizeIsSetInHeader (line 77) | public function testSizeIsSetInHeader()
method testMultipleParametersInHeader (line 92) | public function testMultipleParametersInHeader()
method testEndToEnd (line 109) | public function testEndToEnd()
method createEmbeddedFile (line 128) | protected function createEmbeddedFile()
FILE: tests/acceptance/Swift/Mime/HeaderEncoder/Base64HeaderEncoderAcceptanceTest.php
class Swift_Mime_HeaderEncoder_Base64HeaderEncoderAcceptanceTest (line 3) | class Swift_Mime_HeaderEncoder_Base64HeaderEncoderAcceptanceTest extends...
method setUp (line 7) | protected function setUp()
method testEncodingJIS (line 12) | public function testEncodingJIS()
FILE: tests/acceptance/Swift/Mime/MimePartAcceptanceTest.php
class Swift_Mime_MimePartAcceptanceTest (line 5) | class Swift_Mime_MimePartAcceptanceTest extends \PHPUnit\Framework\TestCase
method setUp (line 12) | protected function setUp()
method testCharsetIsSetInHeader (line 39) | public function testCharsetIsSetInHeader()
method testFormatIsSetInHeaders (line 54) | public function testFormatIsSetInHeaders()
method testDelSpIsSetInHeaders (line 69) | public function testDelSpIsSetInHeaders()
method testAll3ParamsInHeaders (line 84) | public function testAll3ParamsInHeaders()
method testBodyIsCanonicalized (line 101) | public function testBodyIsCanonicalized()
method createMimePart (line 119) | protected function createMimePart()
FILE: tests/acceptance/Swift/Mime/SimpleMessageAcceptanceTest.php
class Swift_Mime_SimpleMessageAcceptanceTest (line 3) | class Swift_Mime_SimpleMessageAcceptanceTest extends \PHPUnit\Framework\...
method setUp (line 5) | protected function setUp()
method testBasicHeaders (line 10) | public function testBasicHeaders()
method testSubjectIsDisplayedIfSet (line 30) | public function testSubjectIsDisplayedIfSet()
method testDateCanBeSet (line 48) | public function testDateCanBeSet()
method testMessageIdCanBeSet (line 67) | public function testMessageIdCanBeSet()
method testContentTypeCanBeChanged (line 85) | public function testContentTypeCanBeChanged()
method testCharsetCanBeSet (line 104) | public function testCharsetCanBeSet()
method testFormatCanBeSet (line 124) | public function testFormatCanBeSet()
method testEncoderCanBeSet (line 143) | public function testEncoderCanBeSet()
method testFromAddressCanBeSet (line 165) | public function testFromAddressCanBeSet()
method testFromAddressCanBeSetWithName (line 184) | public function testFromAddressCanBeSetWithName()
method testMultipleFromAddressesCanBeSet (line 203) | public function testMultipleFromAddressesCanBeSet()
method testReturnPathAddressCanBeSet (line 225) | public function testReturnPathAddressCanBeSet()
method testEmptyReturnPathHeaderCanBeUsed (line 247) | public function testEmptyReturnPathHeaderCanBeUsed()
method testSenderCanBeSet (line 269) | public function testSenderCanBeSet()
method testSenderCanBeSetWithName (line 289) | public function testSenderCanBeSetWithName()
method testReplyToCanBeSet (line 309) | public function testReplyToCanBeSet()
method testMultipleReplyAddressCanBeUsed (line 330) | public function testMultipleReplyAddressCanBeUsed()
method testToAddressCanBeSet (line 354) | public function testToAddressCanBeSet()
method testMultipleToAddressesCanBeSet (line 380) | public function testMultipleToAddressesCanBeSet()
method testCcAddressCanBeSet (line 408) | public function testCcAddressCanBeSet()
method testMultipleCcAddressesCanBeSet (line 438) | public function testMultipleCcAddressesCanBeSet()
method testBccAddressCanBeSet (line 471) | public function testBccAddressCanBeSet()
method testMultipleBccAddressesCanBeSet (line 508) | public function testMultipleBccAddressesCanBeSet()
method testStringBodyIsAppended (line 545) | public function testStringBodyIsAppended()
method testStringBodyIsEncoded (line 574) | public function testStringBodyIsEncoded()
method testChildrenCanBeAttached (line 603) | public function testChildrenCanBeAttached()
method testAttachmentsBeingAttached (line 656) | public function testAttachmentsBeingAttached()
method testAttachmentsAndEmbeddedFilesBeingAttached (line 718) | public function testAttachmentsAndEmbeddedFilesBeingAttached()
method testComplexEmbeddingOfContent (line 804) | public function testComplexEmbeddingOfContent()
method testAttachingAndDetachingContent (line 881) | public function testAttachingAndDetachingContent()
method testBoundaryDoesNotAppearAfterAllPartsAreDetached (line 956) | public function testBoundaryDoesNotAppearAfterAllPartsAreDetached()
method testCharsetFormatOrDelSpAreNotShownWhenBoundaryIsSet (line 999) | public function testCharsetFormatOrDelSpAreNotShownWhenBoundaryIsSet()
method testBodyCanBeSetWithAttachments (line 1055) | public function testBodyCanBeSetWithAttachments()
method testHtmlPartAlwaysAppearsLast (line 1105) | public function testHtmlPartAlwaysAppearsLast()
method testBodyBecomesPartIfOtherPartsAttached (line 1155) | public function testBodyBecomesPartIfOtherPartsAttached()
method testBodyIsCanonicalized (line 1202) | public function testBodyIsCanonicalized()
method createMessage (line 1231) | protected function createMessage()
method createMimePart (line 1236) | protected function createMimePart()
method createAttachment (line 1241) | protected function createAttachment()
method createEmbeddedFile (line 1246) | protected function createEmbeddedFile()
FILE: tests/acceptance/Swift/MimePartAcceptanceTest.php
class Swift_MimePartAcceptanceTest (line 6) | class Swift_MimePartAcceptanceTest extends Swift_Mime_MimePartAcceptance...
method createMimePart (line 8) | protected function createMimePart()
FILE: tests/acceptance/Swift/Transport/StreamBuffer/AbstractStreamBufferAcceptanceTest.php
class Swift_Transport_StreamBuffer_AbstractStreamBufferAcceptanceTest (line 3) | abstract class Swift_Transport_StreamBuffer_AbstractStreamBufferAcceptan...
method initializeBuffer (line 7) | abstract protected function initializeBuffer();
method setUp (line 9) | protected function setUp()
method testReadLine (line 23) | public function testReadLine()
method testWrite (line 36) | public function testWrite()
method testBindingOtherStreamsMirrorsWriteOperations (line 55) | public function testBindingOtherStreamsMirrorsWriteOperations()
method testBindingOtherStreamsMirrorsFlushOperations (line 82) | public function testBindingOtherStreamsMirrorsFlushOperations()
method testUnbindingStreamPreventsFurtherWrites (line 100) | public function testUnbindingStreamPreventsFurtherWrites()
method createMockInputStream (line 127) | private function createMockInputStream()
FILE: tests/acceptance/Swift/Transport/StreamBuffer/BasicSocketAcceptanceTest.php
class Swift_Transport_StreamBuffer_BasicSocketAcceptanceTest (line 5) | class Swift_Transport_StreamBuffer_BasicSocketAcceptanceTest extends Swi...
method setUp (line 7) | protected function setUp()
method initializeBuffer (line 18) | protected function initializeBuffer()
FILE: tests/acceptance/Swift/Transport/StreamBuffer/ProcessAcceptanceTest.php
class Swift_Transport_StreamBuffer_ProcessAcceptanceTest (line 5) | class Swift_Transport_StreamBuffer_ProcessAcceptanceTest extends Swift_T...
method setUp (line 7) | protected function setUp()
method testReadLine (line 19) | public function testReadLine()
method testWrite (line 28) | public function testWrite()
method initializeBuffer (line 37) | protected function initializeBuffer()
FILE: tests/acceptance/Swift/Transport/StreamBuffer/SocketTimeoutTest.php
class Swift_Transport_StreamBuffer_SocketTimeoutTest (line 3) | class Swift_Transport_StreamBuffer_SocketTimeoutTest extends \PHPUnit\Fr...
method setUp (line 9) | protected function setUp()
method initializeBuffer (line 32) | protected function initializeBuffer()
method testTimeoutException (line 47) | public function testTimeoutException()
method tearDown (line 59) | protected function tearDown()
FILE: tests/acceptance/Swift/Transport/StreamBuffer/SslSocketAcceptanceTest.php
class Swift_Transport_StreamBuffer_SslSocketAcceptanceTest (line 5) | class Swift_Transport_StreamBuffer_SslSocketAcceptanceTest extends Swift...
method setUp (line 7) | protected function setUp()
method initializeBuffer (line 25) | protected function initializeBuffer()
FILE: tests/acceptance/Swift/Transport/StreamBuffer/TlsSocketAcceptanceTest.php
class Swift_Transport_StreamBuffer_TlsSocketAcceptanceTest (line 5) | class Swift_Transport_StreamBuffer_TlsSocketAcceptanceTest extends Swift...
method setUp (line 7) | protected function setUp()
method initializeBuffer (line 29) | protected function initializeBuffer()
FILE: tests/bug/Swift/Bug111Test.php
class Swift_Bug111Test (line 3) | class Swift_Bug111Test extends \PHPUnit\Framework\TestCase
method testUnstructuredHeaderSlashesShouldNotBeEscaped (line 5) | public function testUnstructuredHeaderSlashesShouldNotBeEscaped()
FILE: tests/bug/Swift/Bug118Test.php
class Swift_Bug118Test (line 3) | class Swift_Bug118Test extends \PHPUnit\Framework\TestCase
method setUp (line 7) | protected function setUp()
method testCallingGenerateIdChangesTheMessageId (line 12) | public function testCallingGenerateIdChangesTheMessageId()
FILE: tests/bug/Swift/Bug206Test.php
class Swift_Bug206Test (line 5) | class Swift_Bug206Test extends \PHPUnit\Framework\TestCase
method setUp (line 9) | protected function setUp()
method testMailboxHeaderEncoding (line 22) | public function testMailboxHeaderEncoding()
method doTestHeaderIsFullyEncoded (line 30) | private function doTestHeaderIsFullyEncoded($email, $name, $expected)
FILE: tests/bug/Swift/Bug274Test.php
class Swift_Bug274Test (line 3) | class Swift_Bug274Test extends \PHPUnit\Framework\TestCase
method testEmptyFileNameAsAttachment (line 5) | public function testEmptyFileNameAsAttachment()
method testNonEmptyFileNameAsAttachment (line 14) | public function testNonEmptyFileNameAsAttachment()
FILE: tests/bug/Swift/Bug34Test.php
class Swift_Bug34Test (line 3) | class Swift_Bug34Test extends \PHPUnit\Framework\TestCase
method setUp (line 5) | protected function setUp()
method testEmbeddedFilesWithMultipartDataCreateMultipartRelatedContentAsAnAlternative (line 10) | public function testEmbeddedFilesWithMultipartDataCreateMultipartRelat...
FILE: tests/bug/Swift/Bug35Test.php
class Swift_Bug35Test (line 3) | class Swift_Bug35Test extends \PHPUnit\Framework\TestCase
method setUp (line 5) | protected function setUp()
method testHTMLPartAppearsLastEvenWhenAttachmentsAdded (line 10) | public function testHTMLPartAppearsLastEvenWhenAttachmentsAdded()
FILE: tests/bug/Swift/Bug38Test.php
class Swift_Bug38Test (line 3) | class Swift_Bug38Test extends \PHPUnit\Framework\TestCase
method setUp (line 9) | protected function setUp()
method testWritingMessageToByteStreamProducesCorrectStructure (line 17) | public function testWritingMessageToByteStreamProducesCorrectStructure()
method testWritingMessageToByteStreamTwiceProducesCorrectStructure (line 71) | public function testWritingMessageToByteStreamTwiceProducesCorrectStru...
method testWritingMessageToByteStreamTwiceUsingAFileAttachment (line 128) | public function testWritingMessageToByteStreamTwiceUsingAFileAttachment()
method assertPatternInStream (line 184) | public function assertPatternInStream($pattern, $stream, $message = '%s')
FILE: tests/bug/Swift/Bug518Test.php
class Swift_Bug518Test (line 5) | class Swift_Bug518Test extends \SwiftMailerTestCase
method testIfEmailChangesAfterQueued (line 7) | public function testIfEmailChangesAfterQueued()
FILE: tests/bug/Swift/Bug51Test.php
class Swift_Bug51Test (line 3) | class Swift_Bug51Test extends \SwiftMailerTestCase
method setUp (line 8) | protected function setUp()
method tearDown (line 17) | protected function tearDown()
method testAttachmentsDoNotGetTruncatedUsingToByteStream (line 23) | public function testAttachmentsDoNotGetTruncatedUsingToByteStream()
method testAttachmentsDoNotGetTruncatedUsingToString (line 45) | public function testAttachmentsDoNotGetTruncatedUsingToString()
method assertAttachmentFromSourceMatches (line 62) | public function assertAttachmentFromSourceMatches($attachmentData, $so...
method fillFileWithRandomBytes (line 82) | private function fillFileWithRandomBytes($byteCount, $file)
method createMessageWithRandomAttachment (line 96) | private function createMessageWithRandomAttachment($size, $attachmentP...
FILE: tests/bug/Swift/Bug534Test.php
class Swift_Bug534Test (line 5) | class Swift_Bug534Test extends \SwiftMailerTestCase
method testEmbeddedImagesAreEmbedded (line 7) | public function testEmbeddedImagesAreEmbedded()
FILE: tests/bug/Swift/Bug650Test.php
class Swift_Bug650Test (line 5) | class Swift_Bug650Test extends \PHPUnit\Framework\TestCase
method testMailboxHeaderEncoding (line 13) | public function testMailboxHeaderEncoding($name, $expectedEncodedName)
method encodingDataProvider (line 28) | public function encodingDataProvider()
FILE: tests/bug/Swift/Bug71Test.php
class Swift_Bug71Test (line 3) | class Swift_Bug71Test extends \PHPUnit\Framework\TestCase
method setUp (line 7) | protected function setUp()
method testCallingToStringAfterSettingNewBodyReflectsChanges (line 12) | public function testCallingToStringAfterSettingNewBodyReflectsChanges()
FILE: tests/bug/Swift/Bug76Test.php
class Swift_Bug76Test (line 3) | class Swift_Bug76Test extends \PHPUnit\Framework\TestCase
method setUp (line 9) | protected function setUp()
method tearDown (line 20) | protected function tearDown()
method testBase64EncodedLineLengthNeverExceeds76CharactersEvenIfArgsDo (line 26) | public function testBase64EncodedLineLengthNeverExceeds76CharactersEve...
method assertMaxLineLength (line 40) | public function assertMaxLineLength($length, $filePath, $message = '%s')
method fillFileWithRandomBytes (line 48) | private function fillFileWithRandomBytes($byteCount, $file)
method createEncoder (line 62) | private function createEncoder()
method createStream (line 67) | private function createStream($file)
FILE: tests/bug/Swift/BugFileByteStreamConsecutiveReadCallsTest.php
class Swift_FileByteStreamConsecutiveReadCalls (line 3) | class Swift_FileByteStreamConsecutiveReadCalls extends \PHPUnit\Framewor...
method testShouldThrowExceptionOnConsecutiveRead (line 5) | public function testShouldThrowExceptionOnConsecutiveRead()
FILE: tests/fixtures/MimeEntityFixture.php
class MimeEntityFixture (line 3) | class MimeEntityFixture extends Swift_Mime_SimpleMimeEntity
method __construct (line 9) | public function __construct($level = null, $string = '', $contentType ...
method getNestingLevel (line 16) | public function getNestingLevel()
method toString (line 21) | public function toString()
method getContentType (line 26) | public function getContentType()
method getId (line 32) | public function getId()
method getHeaders (line 36) | public function getHeaders()
method getBody (line 40) | public function getBody()
method setBody (line 44) | public function setBody($body, $contentType = null)
method toByteStream (line 48) | public function toByteStream(Swift_InputByteStream $is)
method charsetChanged (line 52) | public function charsetChanged($charset)
method encoderChanged (line 56) | public function encoderChanged(Swift_Mime_ContentEncoder $encoder)
method getChildren (line 60) | public function getChildren()
method setChildren (line 64) | public function setChildren(array $children, $compoundLevel = null)
FILE: tests/smoke/Swift/Smoke/AttachmentSmokeTest.php
class Swift_Smoke_AttachmentSmokeTest (line 6) | class Swift_Smoke_AttachmentSmokeTest extends SwiftMailerSmokeTestCase
method setUp (line 10) | protected function setUp()
method testAttachmentSending (line 16) | public function testAttachmentSending()
FILE: tests/smoke/Swift/Smoke/BasicSmokeTest.php
class Swift_Smoke_BasicSmokeTest (line 6) | class Swift_Smoke_BasicSmokeTest extends SwiftMailerSmokeTestCase
method testBasicSending (line 8) | public function testBasicSending()
FILE: tests/smoke/Swift/Smoke/HtmlWithAttachmentSmokeTest.php
class Swift_Smoke_HtmlWithAttachmentSmokeTest (line 6) | class Swift_Smoke_HtmlWithAttachmentSmokeTest extends SwiftMailerSmokeTe...
method setUp (line 10) | protected function setUp()
method testAttachmentSending (line 17) | public function testAttachmentSending()
FILE: tests/smoke/Swift/Smoke/InternationalSmokeTest.php
class Swift_Smoke_InternationalSmokeTest (line 6) | class Swift_Smoke_InternationalSmokeTest extends SwiftMailerSmokeTestCase
method setUp (line 10) | protected function setUp()
method testAttachmentSending (line 16) | public function testAttachmentSending()
FILE: tests/unit/Swift/ByteStream/ArrayByteStreamTest.php
class Swift_ByteStream_ArrayByteStreamTest (line 3) | class Swift_ByteStream_ArrayByteStreamTest extends \PHPUnit\Framework\Te...
method testReadingSingleBytesFromBaseInput (line 5) | public function testReadingSingleBytesFromBaseInput()
method testReadingMultipleBytesFromBaseInput (line 18) | public function testReadingMultipleBytesFromBaseInput()
method testReadingOddOffsetOnLastByte (line 31) | public function testReadingOddOffsetOnLastByte()
method testSettingPointerPartway (line 44) | public function testSettingPointerPartway()
method testResettingPointerAfterExhaustion (line 54) | public function testResettingPointerAfterExhaustion()
method testPointerNeverSetsBelowZero (line 67) | public function testPointerNeverSetsBelowZero()
method testPointerNeverSetsAboveStackSize (line 78) | public function testPointerNeverSetsAboveStackSize()
method testBytesCanBeWrittenToStream (line 89) | public function testBytesCanBeWrittenToStream()
method testContentsCanBeFlushed (line 105) | public function testContentsCanBeFlushed()
method testConstructorCanTakeStringArgument (line 117) | public function testConstructorCanTakeStringArgument()
method testBindingOtherStreamsMirrorsWriteOperations (line 129) | public function testBindingOtherStreamsMirrorsWriteOperations()
method testBindingOtherStreamsMirrorsFlushOperations (line 155) | public function testBindingOtherStreamsMirrorsFlushOperations()
method testUnbindingStreamPreventsFurtherWrites (line 172) | public function testUnbindingStreamPreventsFurtherWrites()
method createArrayStream (line 198) | private function createArrayStream($input)
FILE: tests/unit/Swift/CharacterReader/GenericFixedWidthReaderTest.php
class Swift_CharacterReader_GenericFixedWidthReaderTest (line 3) | class Swift_CharacterReader_GenericFixedWidthReaderTest extends \PHPUnit...
method testInitialByteSizeMatchesWidth (line 5) | public function testInitialByteSizeMatchesWidth()
method testValidationValueIsBasedOnOctetCount (line 14) | public function testValidationValueIsBasedOnOctetCount()
method testValidationFailsIfTooManyOctets (line 35) | public function testValidationFailsIfTooManyOctets()
FILE: tests/unit/Swift/CharacterReader/UsAsciiReaderTest.php
class Swift_CharacterReader_UsAsciiReaderTest (line 3) | class Swift_CharacterReader_UsAsciiReaderTest extends \PHPUnit\Framework...
method setUp (line 21) | protected function setUp()
method testAllValidAsciiCharactersReturnZero (line 26) | public function testAllValidAsciiCharactersReturnZero()
method testMultipleBytesAreInvalid (line 35) | public function testMultipleBytesAreInvalid()
method testBytesAboveAsciiRangeAreInvalid (line 44) | public function testBytesAboveAsciiRangeAreInvalid()
FILE: tests/unit/Swift/CharacterReader/Utf8ReaderTest.php
class Swift_CharacterReader_Utf8ReaderTest (line 3) | class Swift_CharacterReader_Utf8ReaderTest extends \PHPUnit\Framework\Te...
method setUp (line 7) | protected function setUp()
method testLeading7BitOctetCausesReturnZero (line 12) | public function testLeading7BitOctetCausesReturnZero()
method testLeadingByteOf2OctetCharCausesReturn1 (line 21) | public function testLeadingByteOf2OctetCharCausesReturn1()
method testLeadingByteOf3OctetCharCausesReturn2 (line 30) | public function testLeadingByteOf3OctetCharCausesReturn2()
method testLeadingByteOf4OctetCharCausesReturn3 (line 39) | public function testLeadingByteOf4OctetCharCausesReturn3()
method testLeadingByteOf5OctetCharCausesReturn4 (line 48) | public function testLeadingByteOf5OctetCharCausesReturn4()
method testLeadingByteOf6OctetCharCausesReturn5 (line 57) | public function testLeadingByteOf6OctetCharCausesReturn5()
FILE: tests/unit/Swift/CharacterStream/ArrayCharacterStreamTest.php
class Swift_CharacterStream_ArrayCharacterStreamTest (line 3) | class Swift_CharacterStream_ArrayCharacterStreamTest extends \SwiftMaile...
method testValidatorAlgorithmOnImportString (line 5) | public function testValidatorAlgorithmOnImportString()
method testCharactersWrittenUseValidator (line 33) | public function testCharactersWrittenUseValidator()
method testReadCharactersAreInTact (line 64) | public function testReadCharactersAreInTact()
method testCharactersCanBeReadAsByteArrays (line 109) | public function testCharactersCanBeReadAsByteArrays()
method testRequestingLargeCharCountPastEndOfStream (line 152) | public function testRequestingLargeCharCountPastEndOfStream()
method testRequestingByteArrayCountPastEndOfStream (line 175) | public function testRequestingByteArrayCountPastEndOfStream()
method testPointerOffsetCanBeSet (line 198) | public function testPointerOffsetCanBeSet()
method testContentsCanBeFlushed (line 225) | public function testContentsCanBeFlushed()
method testByteStreamCanBeImportingUsesValidator (line 246) | public function testByteStreamCanBeImportingUsesValidator()
method testImportingStreamProducesCorrectCharArray (line 278) | public function testImportingStreamProducesCorrectCharArray()
method testAlgorithmWithFixedWidthCharsets (line 316) | public function testAlgorithmWithFixedWidthCharsets()
method getReader (line 340) | private function getReader()
method getFactory (line 345) | private function getFactory($reader)
method getByteStream (line 356) | private function getByteStream()
FILE: tests/unit/Swift/DependencyContainerTest.php
class One (line 3) | class One
method __construct (line 8) | public function __construct($arg1 = null, $arg2 = null)
class Swift_DependencyContainerTest (line 15) | class Swift_DependencyContainerTest extends \PHPUnit\Framework\TestCase
method setUp (line 19) | protected function setUp()
method testRegisterAndLookupValue (line 24) | public function testRegisterAndLookupValue()
method testHasReturnsTrueForRegisteredValue (line 30) | public function testHasReturnsTrueForRegisteredValue()
method testHasReturnsFalseForUnregisteredValue (line 36) | public function testHasReturnsFalseForUnregisteredValue()
method testRegisterAndLookupNewInstance (line 41) | public function testRegisterAndLookupNewInstance()
method testHasReturnsTrueForRegisteredInstance (line 47) | public function testHasReturnsTrueForRegisteredInstance()
method testNewInstanceIsAlwaysNew (line 53) | public function testNewInstanceIsAlwaysNew()
method testRegisterAndLookupSharedInstance (line 61) | public function testRegisterAndLookupSharedInstance()
method testHasReturnsTrueForSharedInstance (line 67) | public function testHasReturnsTrueForSharedInstance()
method testMultipleSharedInstancesAreSameInstance (line 73) | public function testMultipleSharedInstancesAreSameInstance()
method testRegisterAndLookupArray (line 81) | public function testRegisterAndLookupArray()
method testNewInstanceWithDependencies (line 87) | public function testNewInstanceWithDependencies()
method testNewInstanceWithMultipleDependencies (line 96) | public function testNewInstanceWithMultipleDependencies()
method testNewInstanceWithInjectedObjects (line 107) | public function testNewInstanceWithInjectedObjects()
method testNewInstanceWithAddConstructorValue (line 118) | public function testNewInstanceWithAddConstructorValue()
method testNewInstanceWithAddConstructorLookup (line 128) | public function testNewInstanceWithAddConstructorLookup()
method testResolvedDependenciesCanBeLookedUp (line 141) | public function testResolvedDependenciesCanBeLookedUp()
method testArrayOfDependenciesCanBeSpecified (line 153) | public function testArrayOfDependenciesCanBeSpecified()
method testArrayWithDependencies (line 165) | public function testArrayWithDependencies()
method testAliasCanBeSet (line 174) | public function testAliasCanBeSet()
method testAliasOfAliasCanBeSet (line 182) | public function testAliasOfAliasCanBeSet()
FILE: tests/unit/Swift/Encoder/Base64EncoderTest.php
class Swift_Encoder_Base64EncoderTest (line 3) | class Swift_Encoder_Base64EncoderTest extends \PHPUnit\Framework\TestCase
method setUp (line 7) | protected function setUp()
method testInputOutputRatioIs3to4Bytes (line 18) | public function testInputOutputRatioIs3to4Bytes()
method testPadLength (line 44) | public function testPadLength()
method testMaximumLineLengthIs76Characters (line 91) | public function testMaximumLineLengthIs76Characters()
method testMaximumLineLengthCanBeSpecified (line 122) | public function testMaximumLineLengthCanBeSpecified()
method testFirstLineLengthCanBeDifferent (line 149) | public function testFirstLineLengthCanBeDifferent()
FILE: tests/unit/Swift/Encoder/QpEncoderTest.php
class Swift_Encoder_QpEncoderTest (line 3) | class Swift_Encoder_QpEncoderTest extends \SwiftMailerTestCase
method testPermittedCharactersAreNotEncoded (line 21) | public function testPermittedCharactersAreNotEncoded()
method testWhiteSpaceAtLineEndingIsEncoded (line 54) | public function testWhiteSpaceAtLineEndingIsEncoded()
method testCRLFIsLeftAlone (line 131) | public function testCRLFIsLeftAlone()
method testLinesLongerThan76CharactersAreSoftBroken (line 184) | public function testLinesLongerThan76CharactersAreSoftBroken()
method testMaxLineLengthCanBeSpecified (line 225) | public function testMaxLineLengthCanBeSpecified()
method testBytesBelowPermittedRangeAreEncoded (line 255) | public function testBytesBelowPermittedRangeAreEncoded()
method testDecimalByte61IsEncoded (line 285) | public function testDecimalByte61IsEncoded()
method testBytesAbovePermittedRangeAreEncoded (line 311) | public function testBytesAbovePermittedRangeAreEncoded()
method testFirstLineLengthCanBeDifferent (line 341) | public function testFirstLineLengthCanBeDifferent()
method testTextIsPreWrapped (line 375) | public function testTextIsPreWrapped()
method createCharStream (line 388) | private function createCharStream()
method createEncoder (line 393) | private function createEncoder()
FILE: tests/unit/Swift/Encoder/Rfc2231EncoderTest.php
class Swift_Encoder_Rfc2231EncoderTest (line 3) | class Swift_Encoder_Rfc2231EncoderTest extends \SwiftMailerTestCase
method testEncodingAsciiCharactersProducesValidToken (line 16) | public function testEncodingAsciiCharactersProducesValidToken()
method testEncodingNonAsciiCharactersProducesValidToken (line 47) | public function testEncodingNonAsciiCharactersProducesValidToken()
method testMaximumLineLengthCanBeSet (line 77) | public function testMaximumLineLengthCanBeSet()
method testFirstLineCanHaveShorterLength (line 110) | public function testFirstLineCanHaveShorterLength()
FILE: tests/unit/Swift/Events/CommandEventTest.php
class Swift_Events_CommandEventTest (line 3) | class Swift_Events_CommandEventTest extends \PHPUnit\Framework\TestCase
method testCommandCanBeFetchedByGetter (line 5) | public function testCommandCanBeFetchedByGetter()
method testSuccessCodesCanBeFetchedViaGetter (line 11) | public function testSuccessCodesCanBeFetchedViaGetter()
method testSourceIsBuffer (line 17) | public function testSourceIsBuffer()
method createEvent (line 25) | private function createEvent(Swift_Transport $source, $command, $succe...
method createTransport (line 30) | private function createTransport()
FILE: tests/unit/Swift/Events/EventObjectTest.php
class Swift_Events_EventObjectTest (line 3) | class Swift_Events_EventObjectTest extends \PHPUnit\Framework\TestCase
method testEventSourceCanBeReturnedViaGetter (line 5) | public function testEventSourceCanBeReturnedViaGetter()
method testEventDoesNotHaveCancelledBubbleWhenNew (line 13) | public function testEventDoesNotHaveCancelledBubbleWhenNew()
method testBubbleCanBeCancelledInEvent (line 20) | public function testBubbleCanBeCancelledInEvent()
method createEvent (line 28) | private function createEvent($source)
FILE: tests/unit/Swift/Events/ResponseEventTest.php
class Swift_Events_ResponseEventTest (line 3) | class Swift_Events_ResponseEventTest extends \PHPUnit\Framework\TestCase
method testResponseCanBeFetchViaGetter (line 5) | public function testResponseCanBeFetchViaGetter()
method testResultCanBeFetchedViaGetter (line 13) | public function testResultCanBeFetchedViaGetter()
method testSourceIsBuffer (line 21) | public function testSourceIsBuffer()
method createEvent (line 29) | private function createEvent(Swift_Transport $source, $response, $result)
method createTransport (line 34) | private function createTransport()
FILE: tests/unit/Swift/Events/SendEventTest.php
class Swift_Events_SendEventTest (line 3) | class Swift_Events_SendEventTest extends \PHPUnit\Framework\TestCase
method testMessageCanBeFetchedViaGetter (line 5) | public function testMessageCanBeFetchedViaGetter()
method testTransportCanBeFetchViaGetter (line 18) | public function testTransportCanBeFetchViaGetter()
method testTransportCanBeFetchViaGetSource (line 31) | public function testTransportCanBeFetchViaGetSource()
method testResultCanBeSetAndGet (line 44) | public function testResultCanBeSetAndGet()
method testFailedRecipientsCanBeSetAndGet (line 59) | public function testFailedRecipientsCanBeSetAndGet()
method testFailedRecipientsGetsPickedUpCorrectly (line 73) | public function testFailedRecipientsGetsPickedUpCorrectly()
method createEvent (line 82) | private function createEvent(Swift_Transport $source, Swift_Mime_Simpl...
method createTransport (line 87) | private function createTransport()
method createMessage (line 92) | private function createMessage()
FILE: tests/unit/Swift/Events/SimpleEventDispatcherTest.php
class Swift_Events_SimpleEventDispatcherTest (line 3) | class Swift_Events_SimpleEventDispatcherTest extends \PHPUnit\Framework\...
method setUp (line 7) | protected function setUp()
method testSendEventCanBeCreated (line 12) | public function testSendEventCanBeCreated()
method testCommandEventCanBeCreated (line 22) | public function testCommandEventCanBeCreated()
method testResponseEventCanBeCreated (line 32) | public function testResponseEventCanBeCreated()
method testTransportChangeEventCanBeCreated (line 42) | public function testTransportChangeEventCanBeCreated()
method testTransportExceptionEventCanBeCreated (line 50) | public function testTransportExceptionEventCanBeCreated()
method testListenersAreNotifiedOfDispatchedEvent (line 60) | public function testListenersAreNotifiedOfDispatchedEvent()
method testListenersAreOnlyCalledIfImplementingCorrectInterface (line 82) | public function testListenersAreOnlyCalledIfImplementingCorrectInterfa...
method testListenersCanCancelBubblingOfEvent (line 104) | public function testListenersCanCancelBubblingOfEvent()
method testPreventFlushingQueueBubbleOnInternalEventsRising (line 131) | public function testPreventFlushingQueueBubbleOnInternalEventsRising()
method createDispatcher (line 166) | private function createDispatcher(array $map)
class DummyListener (line 172) | class DummyListener implements Swift_Events_EventListener
method sendPerformed (line 174) | public function sendPerformed(Swift_Events_SendEvent $evt)
FILE: tests/unit/Swift/Events/TransportChangeEventTest.php
class Swift_Events_TransportChangeEventTest (line 3) | class Swift_Events_TransportChangeEventTest extends \PHPUnit\Framework\T...
method testGetTransportReturnsTransport (line 5) | public function testGetTransportReturnsTransport()
method testSourceIsTransport (line 13) | public function testSourceIsTransport()
method createEvent (line 21) | private function createEvent(Swift_Transport $source)
method createTransport (line 26) | private function createTransport()
FILE: tests/unit/Swift/Events/TransportExceptionEventTest.php
class Swift_Events_TransportExceptionEventTest (line 3) | class Swift_Events_TransportExceptionEventTest extends \PHPUnit\Framewor...
method testExceptionCanBeFetchViaGetter (line 5) | public function testExceptionCanBeFetchViaGetter()
method testSourceIsTransport (line 16) | public function testSourceIsTransport()
method createEvent (line 27) | private function createEvent(Swift_Transport $transport, Swift_Transpo...
method createTransport (line 32) | private function createTransport()
method createException (line 37) | private function createException()
FILE: tests/unit/Swift/KeyCache/ArrayKeyCacheTest.php
class Swift_KeyCache_ArrayKeyCacheTest (line 3) | class Swift_KeyCache_ArrayKeyCacheTest extends \PHPUnit\Framework\TestCase
method testStringDataCanBeSetAndFetched (line 8) | public function testStringDataCanBeSetAndFetched()
method testStringDataCanBeOverwritten (line 18) | public function testStringDataCanBeOverwritten()
method testStringDataCanBeAppended (line 32) | public function testStringDataCanBeAppended()
method testHasKeyReturnValue (line 46) | public function testHasKeyReturnValue()
method testNsKeyIsWellPartitioned (line 57) | public function testNsKeyIsWellPartitioned()
method testItemKeyIsWellPartitioned (line 72) | public function testItemKeyIsWellPartitioned()
method testByteStreamCanBeImported (line 87) | public function testByteStreamCanBeImported()
method testByteStreamCanBeAppended (line 102) | public function testByteStreamCanBeAppended()
method testByteStreamAndStringCanBeAppended (line 128) | public function testByteStreamAndStringCanBeAppended()
method testDataCanBeExportedToByteStream (line 148) | public function testDataCanBeExportedToByteStream()
method testKeyCanBeCleared (line 166) | public function testKeyCanBeCleared()
method testNsKeyCanBeCleared (line 179) | public function testNsKeyCanBeCleared()
method createCache (line 197) | private function createCache($is)
method createKeyCacheInputStream (line 202) | private function createKeyCacheInputStream()
method createOutputStream (line 207) | private function createOutputStream()
method createInputStream (line 212) | private function createInputStream()
FILE: tests/unit/Swift/KeyCache/SimpleKeyCacheInputStreamTest.php
class Swift_KeyCache_SimpleKeyCacheInputStreamTest (line 3) | class Swift_KeyCache_SimpleKeyCacheInputStreamTest extends \PHPUnit\Fram...
method testStreamWritesToCacheInAppendMode (line 7) | public function testStreamWritesToCacheInAppendMode()
method testFlushContentClearsKey (line 28) | public function testFlushContentClearsKey()
method testClonedStreamStillReferencesSameCache (line 43) | public function testClonedStreamStillReferencesSameCache()
FILE: tests/unit/Swift/Mailer/ArrayRecipientIteratorTest.php
class Swift_Mailer_ArrayRecipientIteratorTest (line 3) | class Swift_Mailer_ArrayRecipientIteratorTest extends \PHPUnit\Framework...
method testHasNextReturnsFalseForEmptyArray (line 5) | public function testHasNextReturnsFalseForEmptyArray()
method testHasNextReturnsTrueIfItemsLeft (line 11) | public function testHasNextReturnsTrueIfItemsLeft()
method testReadingToEndOfListCausesHasNextToReturnFalse (line 17) | public function testReadingToEndOfListCausesHasNextToReturnFalse()
method testReturnedValueHasPreservedKeyValuePair (line 25) | public function testReturnedValueHasPreservedKeyValuePair()
method testIteratorMovesNextAfterEachIteration (line 31) | public function testIteratorMovesNextAfterEachIteration()
FILE: tests/unit/Swift/MailerTest.php
class Swift_MailerTest (line 3) | class Swift_MailerTest extends \SwiftMailerTestCase
method testTransportIsStartedWhenSending (line 5) | public function testTransportIsStartedWhenSending()
method testTransportIsOnlyStartedOnce (line 28) | public function testTransportIsOnlyStartedOnce()
method testMessageIsPassedToTransport (line 53) | public function testMessageIsPassedToTransport()
method testSendReturnsCountFromTransport (line 65) | public function testSendReturnsCountFromTransport()
method testFailedRecipientReferenceIsPassedToTransport (line 78) | public function testFailedRecipientReferenceIsPassedToTransport()
method testSendRecordsRfcComplianceExceptionAsEntireSendFailure (line 93) | public function testSendRecordsRfcComplianceExceptionAsEntireSendFailu...
method testRegisterPluginDelegatesToTransport (line 113) | public function testRegisterPluginDelegatesToTransport()
method createPlugin (line 126) | private function createPlugin()
method createTransport (line 131) | private function createTransport()
method createMessage (line 136) | private function createMessage()
method createMailer (line 141) | private function createMailer(Swift_Transport $transport)
FILE: tests/unit/Swift/MessageTest.php
class Swift_MessageTest (line 3) | class Swift_MessageTest extends \PHPUnit\Framework\TestCase
method testCloning (line 5) | public function testCloning()
method testCloningWithSigners (line 16) | public function testCloningWithSigners()
method testBodySwap (line 31) | public function testBodySwap()
method recursiveObjectCloningCheck (line 61) | protected function recursiveObjectCloningCheck($obj1, $obj2, $obj1_clone)
method recursiveArrayCloningCheck (line 100) | protected function recursiveArrayCloningCheck($array1, $array2, $array...
FILE: tests/unit/Swift/Mime/AbstractMimeEntityTest.php
class Swift_Mime_AbstractMimeEntityTest (line 5) | abstract class Swift_Mime_AbstractMimeEntityTest extends \SwiftMailerTes...
method testGetHeadersReturnsHeaderSet (line 7) | public function testGetHeadersReturnsHeaderSet()
method testContentTypeIsReturnedFromHeader (line 16) | public function testContentTypeIsReturnedFromHeader()
method testContentTypeIsSetInHeader (line 26) | public function testContentTypeIsSetInHeader()
method testContentTypeHeaderIsAddedIfNoneSet (line 44) | public function testContentTypeHeaderIsAddedIfNoneSet()
method testContentTypeCanBeSetViaSetBody (line 59) | public function testContentTypeCanBeSetViaSetBody()
method testGetEncoderFromConstructor (line 74) | public function testGetEncoderFromConstructor()
method testSetAndGetEncoder (line 83) | public function testSetAndGetEncoder()
method testSettingEncoderUpdatesTransferEncoding (line 94) | public function testSettingEncoderUpdatesTransferEncoding()
method testSettingEncoderAddsEncodingHeaderIfNonePresent (line 115) | public function testSettingEncoderAddsEncodingHeaderIfNonePresent()
method testIdIsReturnedFromHeader (line 130) | public function testIdIsReturnedFromHeader()
method testIdIsSetInHeader (line 147) | public function testIdIsSetInHeader()
method testIdIsAutoGenerated (line 164) | public function testIdIsAutoGenerated()
method testGenerateIdCreatesNewId (line 172) | public function testGenerateIdCreatesNewId()
method testGenerateIdSetsNewId (line 183) | public function testGenerateIdSetsNewId()
method testDescriptionIsReadFromHeader (line 193) | public function testDescriptionIsReadFromHeader()
method testDescriptionIsSetInHeader (line 211) | public function testDescriptionIsSetInHeader()
method testDescriptionHeaderIsAddedIfNotPresent (line 224) | public function testDescriptionHeaderIsAddedIfNotPresent()
method testSetAndGetMaxLineLength (line 239) | public function testSetAndGetMaxLineLength()
method testEncoderIsUsedForStringGeneration (line 248) | public function testEncoderIsUsedForStringGeneration()
method testMaxLineLengthIsProvidedWhenEncoding (line 262) | public function testMaxLineLengthIsProvidedWhenEncoding()
method testHeadersAppearInString (line 277) | public function testHeadersAppearInString()
method testSetAndGetBody (line 297) | public function testSetAndGetBody()
method testBodyIsAppended (line 306) | public function testBodyIsAppended()
method testGetBodyReturnsStringFromByteStream (line 325) | public function testGetBodyReturnsStringFromByteStream()
method testByteStreamBodyIsAppended (line 335) | public function testByteStreamBodyIsAppended()
method testBoundaryCanBeRetrieved (line 355) | public function testBoundaryCanBeRetrieved()
method testBoundaryNeverChanges (line 376) | public function testBoundaryNeverChanges()
method testBoundaryCanBeSet (line 387) | public function testBoundaryCanBeSet()
method testAddingChildrenGeneratesBoundaryInHeaders (line 396) | public function testAddingChildrenGeneratesBoundaryInHeaders()
method testChildrenOfLevelAttachmentAndLessCauseMultipartMixed (line 414) | public function testChildrenOfLevelAttachmentAndLessCauseMultipartMixed()
method testChildrenOfLevelAlternativeAndLessCauseMultipartAlternative (line 436) | public function testChildrenOfLevelAlternativeAndLessCauseMultipartAlt...
method testChildrenOfLevelRelatedAndLessCauseMultipartRelated (line 458) | public function testChildrenOfLevelRelatedAndLessCauseMultipartRelated()
method testHighestLevelChildDeterminesContentType (line 480) | public function testHighestLevelChildDeterminesContentType()
method testChildrenAppearNestedInString (line 532) | public function testChildrenAppearNestedInString()
method testMixingLevelsIsHierarchical (line 578) | public function testMixingLevelsIsHierarchical()
method testSettingEncoderNotifiesChildren (line 631) | public function testSettingEncoderNotifiesChildren()
method testReceiptOfEncoderChangeNotifiesChildren (line 647) | public function testReceiptOfEncoderChangeNotifiesChildren()
method testReceiptOfCharsetChangeNotifiesChildren (line 663) | public function testReceiptOfCharsetChangeNotifiesChildren()
method testEntityIsWrittenToByteStream (line 677) | public function testEntityIsWrittenToByteStream()
method testEntityHeadersAreComittedToByteStream (line 689) | public function testEntityHeadersAreComittedToByteStream()
method testOrderingTextBeforeHtml (line 703) | public function testOrderingTextBeforeHtml()
method testOrderingEqualContentTypesMaintainsOriginalOrdering (line 743) | public function testOrderingEqualContentTypesMaintainsOriginalOrdering()
method testUnsettingChildrenRestoresContentType (line 783) | public function testUnsettingChildrenRestoresContentType()
method testBodyIsReadFromCacheWhenUsingToStringIfPresent (line 809) | public function testBodyIsReadFromCacheWhenUsingToStringIfPresent()
method testBodyIsAddedToCacheWhenUsingToString (line 839) | public function testBodyIsAddedToCacheWhenUsingToString()
method testBodyIsClearedFromCacheIfNewBodySet (line 863) | public function testBodyIsClearedFromCacheIfNewBodySet()
method testBodyIsNotClearedFromCacheIfSameBodySet (line 886) | public function testBodyIsNotClearedFromCacheIfSameBodySet()
method testBodyIsClearedFromCacheIfNewEncoderSet (line 908) | public function testBodyIsClearedFromCacheIfNewEncoderSet()
method testBodyIsReadFromCacheWhenUsingToByteStreamIfPresent (line 932) | public function testBodyIsReadFromCacheWhenUsingToByteStreamIfPresent()
method testBodyIsAddedToCacheWhenUsingToByteStream (line 952) | public function testBodyIsAddedToCacheWhenUsingToByteStream()
method testFluidInterface (line 972) | public function testFluidInterface()
method createEntity (line 991) | abstract protected function createEntity($headers, $encoder, $cache);
method createChild (line 993) | protected function createChild($level = null, $string = '', $stub = true)
method createEncoder (line 1008) | protected function createEncoder($name = 'quoted-printable', $stub = t...
method createCache (line 1025) | protected function createCache($stub = true)
method createHeaderSet (line 1030) | protected function createHeaderSet($headers = [], $stub = true)
method createHeader (line 1047) | protected function createHeader($name, $model = null, $params = [], $s...
method createOutputStream (line 1065) | protected function createOutputStream($data = null, $stub = true)
method createInputStream (line 1088) | protected function createInputStream($stub = true)
FILE: tests/unit/Swift/Mime/AttachmentTest.php
class Swift_Mime_AttachmentTest (line 3) | class Swift_Mime_AttachmentTest extends Swift_Mime_AbstractMimeEntityTest
method testNestingLevelIsAttachment (line 5) | public function testNestingLevelIsAttachment()
method testDispositionIsReturnedFromHeader (line 15) | public function testDispositionIsReturnedFromHeader()
method testDispositionIsSetInHeader (line 28) | public function testDispositionIsSetInHeader()
method testDispositionIsAddedIfNonePresent (line 46) | public function testDispositionIsAddedIfNonePresent()
method testDispositionIsAutoDefaultedToAttachment (line 61) | public function testDispositionIsAutoDefaultedToAttachment()
method testDefaultContentTypeInitializedToOctetStream (line 75) | public function testDefaultContentTypeInitializedToOctetStream()
method testFilenameIsReturnedFromHeader (line 92) | public function testFilenameIsReturnedFromHeader()
method testFilenameIsSetInHeader (line 107) | public function testFilenameIsSetInHeader()
method testSettingFilenameSetsNameInContentType (line 125) | public function testSettingFilenameSetsNameInContentType()
method testSizeIsReturnedFromHeader (line 147) | public function testSizeIsReturnedFromHeader()
method testSizeIsSetInHeader (line 162) | public function testSizeIsSetInHeader()
method testFilnameCanBeReadFromFileStream (line 180) | public function testFilnameCanBeReadFromFileStream()
method testContentTypeCanBeSetViaSetFile (line 197) | public function testContentTypeCanBeSetViaSetFile()
method XtestContentTypeCanBeLookedUpFromCommonListIfNotProvided (line 225) | public function XtestContentTypeCanBeLookedUpFromCommonListIfNotProvid...
method testDataCanBeReadFromFile (line 253) | public function testDataCanBeReadFromFile()
method testFluidInterface (line 263) | public function testFluidInterface()
method createEntity (line 285) | protected function createEntity($headers, $encoder, $cache)
method createAttachment (line 290) | protected function createAttachment($headers, $encoder, $cache, $mimeT...
method createFileStream (line 297) | protected function createFileStream($path, $data, $stub = true)
FILE: tests/unit/Swift/Mime/ContentEncoder/Base64ContentEncoderTest.php
class Swift_Mime_ContentEncoder_Base64ContentEncoderTest (line 3) | class Swift_Mime_ContentEncoder_Base64ContentEncoderTest extends \SwiftM...
method setUp (line 7) | protected function setUp()
method testNameIsBase64 (line 12) | public function testNameIsBase64()
method testInputOutputRatioIs3to4Bytes (line 23) | public function testInputOutputRatioIs3to4Bytes()
method testPadLength (line 53) | public function testPadLength()
method testMaximumLineLengthIs76Characters (line 139) | public function testMaximumLineLengthIs76Characters()
method testMaximumLineLengthCanBeDifferent (line 187) | public function testMaximumLineLengthCanBeDifferent()
method testMaximumLineLengthIsNeverMoreThan76Chars (line 230) | public function testMaximumLineLengthIsNeverMoreThan76Chars()
method testFirstLineLengthCanBeDifferent (line 272) | public function testFirstLineLengthCanBeDifferent()
method createOutputByteStream (line 314) | private function createOutputByteStream($stub = false)
method createInputByteStream (line 319) | private function createInputByteStream($stub = false)
FILE: tests/unit/Swift/Mime/ContentEncoder/PlainContentEncoderTest.php
class Swift_Mime_ContentEncoder_PlainContentEncoderTest (line 3) | class Swift_Mime_ContentEncoder_PlainContentEncoderTest extends \SwiftMa...
method testNameCanBeSpecifiedInConstructor (line 5) | public function testNameCanBeSpecifiedInConstructor()
method testNoOctetsAreModifiedInString (line 14) | public function testNoOctetsAreModifiedInString()
method testNoOctetsAreModifiedInByteStream (line 23) | public function testNoOctetsAreModifiedInByteStream()
method testLineLengthCanBeSpecified (line 48) | public function testLineLengthCanBeSpecified()
method testLineLengthCanBeSpecifiedInByteStream (line 66) | public function testLineLengthCanBeSpecifiedInByteStream()
method testencodeStringGeneratesCorrectCrlf (line 95) | public function testencodeStringGeneratesCorrectCrlf()
method crlfProvider (line 115) | public function crlfProvider()
method testCanonicEncodeByteStreamGeneratesCorrectCrlf (line 129) | public function testCanonicEncodeByteStreamGeneratesCorrectCrlf($test,...
method getEncoder (line 157) | private function getEncoder($name, $canonical = false)
method createOutputByteStream (line 162) | private function createOutputByteStream($stub = false)
method createInputByteStream (line 167) | private function createInputByteStream($stub = false)
FILE: tests/unit/Swift/Mime/ContentEncoder/QpContentEncoderTest.php
class Swift_Mime_ContentEncoder_QpContentEncoderTest (line 3) | class Swift_Mime_ContentEncoder_QpContentEncoderTest extends \SwiftMaile...
method testNameIsQuotedPrintable (line 5) | public function testNameIsQuotedPrintable()
method testPermittedCharactersAreNotEncoded (line 29) | public function testPermittedCharactersAreNotEncoded()
method testLinearWhiteSpaceAtLineEndingIsEncoded (line 69) | public function testLinearWhiteSpaceAtLineEndingIsEncoded()
method testCRLFIsLeftAlone (line 180) | public function testCRLFIsLeftAlone()
method testLinesLongerThan76CharactersAreSoftBroken (line 258) | public function testLinesLongerThan76CharactersAreSoftBroken()
method testMaxLineLengthCanBeSpecified (line 298) | public function testMaxLineLengthCanBeSpecified()
method testBytesBelowPermittedRangeAreEncoded (line 328) | public function testBytesBelowPermittedRangeAreEncoded()
method testDecimalByte61IsEncoded (line 363) | public function testDecimalByte61IsEncoded()
method testBytesAbovePermittedRangeAreEncoded (line 396) | public function testBytesAbovePermittedRangeAreEncoded()
method testFirstLineLengthCanBeDifferent (line 431) | public function testFirstLineLengthCanBeDifferent()
method testObserverInterfaceCanChangeCharset (line 464) | public function testObserverInterfaceCanChangeCharset()
method testTextIsPreWrapped (line 475) | public function testTextIsPreWrapped()
method createCharacterStream (line 494) | private function createCharacterStream($stub = false)
method createEncoder (line 499) | private function createEncoder()
method createOutputByteStream (line 507) | private function createOutputByteStream($stub = false)
method createInputByteStream (line 512) | private function createInputByteStream($stub = false)
FILE: tests/unit/Swift/Mime/EmbeddedFileTest.php
class Swift_Mime_EmbeddedFileTest (line 3) | class Swift_Mime_EmbeddedFileTest extends Swift_Mime_AttachmentTest
method testNestingLevelIsAttachment (line 5) | public function testNestingLevelIsAttachment()
method testNestingLevelIsEmbedded (line 11) | public function testNestingLevelIsEmbedded()
method testIdIsAutoGenerated (line 21) | public function testIdIsAutoGenerated()
method testDefaultDispositionIsInline (line 33) | public function testDefaultDispositionIsInline()
method createAttachment (line 47) | protected function createAttachment($headers, $encoder, $cache, $mimeT...
method createEmbeddedFile (line 52) | private function createEmbeddedFile($headers, $encoder, $cache)
FILE: tests/unit/Swift/Mime/HeaderEncoder/Base64HeaderEncoderTest.php
class Swift_Mime_HeaderEncoder_Base64HeaderEncoderTest (line 3) | class Swift_Mime_HeaderEncoder_Base64HeaderEncoderTest extends \PHPUnit\...
method testNameIsB (line 8) | public function testNameIsB()
FILE: tests/unit/Swift/Mime/HeaderEncoder/QpHeaderEncoderTest.php
class Swift_Mime_HeaderEncoder_QpHeaderEncoderTest (line 3) | class Swift_Mime_HeaderEncoder_QpHeaderEncoderTest extends \SwiftMailerT...
method testNameIsQ (line 8) | public function testNameIsQ()
method testSpaceAndTabNeverAppear (line 16) | public function testSpaceAndTabNeverAppear()
method testSpaceIsRepresentedByUnderscore (line 35) | public function testSpaceIsRepresentedByUnderscore()
method testEqualsAndQuestionAndUnderscoreAreEncoded (line 66) | public function testEqualsAndQuestionAndUnderscoreAreEncoded()
method testParensAndQuotesAreEncoded (line 95) | public function testParensAndQuotesAreEncoded()
method testOnlyCharactersAllowedInPhrasesAreUsed (line 122) | public function testOnlyCharactersAllowedInPhrasesAreUsed()
method testEqualsNeverAppearsAtEndOfLine (line 176) | public function testEqualsNeverAppearsAtEndOfLine()
method createEncoder (line 212) | private function createEncoder($charStream)
method createCharacterStream (line 217) | private function createCharacterStream($stub = false)
FILE: tests/unit/Swift/Mime/Headers/DateHeaderTest.php
class Swift_Mime_Headers_DateHeaderTest (line 3) | class Swift_Mime_Headers_DateHeaderTest extends \PHPUnit\Framework\TestCase
method testTypeIsDateHeader (line 9) | public function testTypeIsDateHeader()
method testGetDateTime (line 15) | public function testGetDateTime()
method testDateTimeCanBeSetBySetter (line 23) | public function testDateTimeCanBeSetBySetter()
method testDateTimeIsConvertedToImmutable (line 31) | public function testDateTimeIsConvertedToImmutable()
method testDateTimeIsImmutable (line 41) | public function testDateTimeIsImmutable()
method testDateTimeIsConvertedToRfc2822Date (line 52) | public function testDateTimeIsConvertedToRfc2822Date()
method testSetBodyModel (line 60) | public function testSetBodyModel()
method testGetBodyModel (line 68) | public function testGetBodyModel()
method testToString (line 76) | public function testToString()
method getHeader (line 86) | private function getHeader($name)
FILE: tests/unit/Swift/Mime/Headers/IdentificationHeaderTest.php
class Swift_Mime_Headers_IdentificationHeaderTest (line 5) | class Swift_Mime_Headers_IdentificationHeaderTest extends \PHPUnit\Frame...
method testTypeIsIdHeader (line 7) | public function testTypeIsIdHeader()
method testValueMatchesMsgIdSpec (line 13) | public function testValueMatchesMsgIdSpec()
method testIdCanBeRetrievedVerbatim (line 38) | public function testIdCanBeRetrievedVerbatim()
method testMultipleIdsCanBeSet (line 45) | public function testMultipleIdsCanBeSet()
method testSettingMultipleIdsProducesAListValue (line 52) | public function testSettingMultipleIdsProducesAListValue()
method testIdLeftCanBeQuoted (line 70) | public function testIdLeftCanBeQuoted()
method testIdLeftCanContainAnglesAsQuotedPairs (line 82) | public function testIdLeftCanContainAnglesAsQuotedPairs()
method testIdLeftCanBeDotAtom (line 94) | public function testIdLeftCanBeDotAtom()
method testInvalidIdLeftThrowsException (line 102) | public function testInvalidIdLeftThrowsException()
method testIdRightCanBeDotAtom (line 111) | public function testIdRightCanBeDotAtom()
method testIdRightCanBeLiteral (line 123) | public function testIdRightCanBeLiteral()
method testIdRigthIsIdnEncoded (line 135) | public function testIdRigthIsIdnEncoded()
method testInvalidIdRightThrowsException (line 143) | public function testInvalidIdRightThrowsException()
method testMissingAtSignThrowsException (line 152) | public function testMissingAtSignThrowsException()
method testSetBodyModel (line 164) | public function testSetBodyModel()
method testGetBodyModel (line 171) | public function testGetBodyModel()
method testStringValue (line 178) | public function testStringValue()
method getHeader (line 185) | private function getHeader($name)
FILE: tests/unit/Swift/Mime/Headers/MailboxHeaderTest.php
class Swift_Mime_Headers_MailboxHeaderTest (line 5) | class Swift_Mime_Headers_MailboxHeaderTest extends \SwiftMailerTestCase
method testTypeIsMailboxHeader (line 12) | public function testTypeIsMailboxHeader()
method testMailboxIsSetForAddress (line 18) | public function testMailboxIsSetForAddress()
method testMailboxIsRenderedForNameAddress (line 27) | public function testMailboxIsRenderedForNameAddress()
method testAddressCanBeReturnedForAddress (line 36) | public function testAddressCanBeReturnedForAddress()
method testAddressCanBeReturnedForNameAddress (line 43) | public function testAddressCanBeReturnedForNameAddress()
method testQuotesInNameAreQuoted (line 50) | public function testQuotesInNameAreQuoted()
method testEscapeCharsInNameAreQuoted (line 62) | public function testEscapeCharsInNameAreQuoted()
method testUtf8CharsInDomainAreIdnEncoded (line 74) | public function testUtf8CharsInDomainAreIdnEncoded()
method testUtf8CharsInLocalPartThrows (line 86) | public function testUtf8CharsInLocalPartThrows()
method testUtf8CharsInEmail (line 97) | public function testUtf8CharsInEmail()
method testGetMailboxesReturnsNameValuePairs (line 109) | public function testGetMailboxesReturnsNameValuePairs()
method testMultipleAddressesCanBeSetAndFetched (line 120) | public function testMultipleAddressesCanBeSetAndFetched()
method testMultipleAddressesAsMailboxes (line 132) | public function testMultipleAddressesAsMailboxes()
method testMultipleAddressesAsMailboxStrings (line 144) | public function testMultipleAddressesAsMailboxStrings()
method testMultipleNamedMailboxesReturnsMultipleAddresses (line 156) | public function testMultipleNamedMailboxesReturnsMultipleAddresses()
method testMultipleNamedMailboxesReturnsMultipleMailboxes (line 169) | public function testMultipleNamedMailboxesReturnsMultipleMailboxes()
method testMultipleMailboxesProducesMultipleMailboxStrings (line 184) | public function testMultipleMailboxesProducesMultipleMailboxStrings()
method testSetAddressesOverwritesAnyMailboxes (line 199) | public function testSetAddressesOverwritesAnyMailboxes()
method testNameIsEncodedIfNonAscii (line 228) | public function testNameIsEncodedIfNonAscii()
method testEncodingLineLengthCalculations (line 248) | public function testEncodingLineLengthCalculations()
method testGetValueReturnsMailboxStringValue (line 269) | public function testGetValueReturnsMailboxStringValue()
method testGetValueReturnsMailboxStringValueForMultipleMailboxes (line 280) | public function testGetValueReturnsMailboxStringValueForMultipleMailbo...
method testRemoveAddressesWithSingleValue (line 293) | public function testRemoveAddressesWithSingleValue()
method testRemoveAddressesWithList (line 306) | public function testRemoveAddressesWithList()
method testSetBodyModel (line 319) | public function testSetBodyModel()
method testGetBodyModel (line 326) | public function testGetBodyModel()
method testToString (line 333) | public function testToString()
method getHeader (line 347) | private function getHeader($name, $encoder = null, $addressEncoder = n...
method getEncoder (line 357) | private function getEncoder($type)
FILE: tests/unit/Swift/Mime/Headers/ParameterizedHeaderTest.php
class Swift_Mime_Headers_ParameterizedHeaderTest (line 3) | class Swift_Mime_Headers_ParameterizedHeaderTest extends \SwiftMailerTes...
method testTypeIsParameterizedHeader (line 8) | public function testTypeIsParameterizedHeader()
method testValueIsReturnedVerbatim (line 16) | public function testValueIsReturnedVerbatim()
method testParametersAreAppended (line 25) | public function testParametersAreAppended()
method testSpaceInParamResultsInQuotedString (line 54) | public function testSpaceInParamResultsInQuotedString()
method testLongParamsAreBrokenIntoMultipleAttributeStrings (line 66) | public function testLongParamsAreBrokenIntoMultipleAttributeStrings()
method testEncodedParamDataIncludesCharsetAndLanguage (line 119) | public function testEncodedParamDataIncludesCharsetAndLanguage()
method testMultipleEncodedParamLinesAreFormattedCorrectly (line 166) | public function testMultipleEncodedParamLinesAreFormattedCorrectly()
method testToString (line 221) | public function testToString()
method testValueCanBeEncodedIfNonAscii (line 233) | public function testValueCanBeEncodedIfNonAscii()
method testValueAndParamCanBeEncodedIfNonAscii (line 251) | public function testValueAndParamCanBeEncodedIfNonAscii()
method testParamsAreEncodedWithEncodedWordsIfNoParamEncoderSet (line 275) | public function testParamsAreEncodedWithEncodedWordsIfNoParamEncoderSet()
method testLanguageInformationAppearsInEncodedWords (line 293) | public function testLanguageInformationAppearsInEncodedWords()
method testSetBodyModel (line 335) | public function testSetBodyModel()
method testGetBodyModel (line 344) | public function testGetBodyModel()
method testSetParameter (line 353) | public function testSetParameter()
method testGetParameter (line 365) | public function testGetParameter()
method getHeader (line 374) | private function getHeader($name, $encoder, $paramEncoder)
method getHeaderEncoder (line 382) | private function getHeaderEncoder($type, $stub = false)
method getParameterEncoder (line 392) | private function getParameterEncoder($stub = false)
FILE: tests/unit/Swift/Mime/Headers/PathHeaderTest.php
class Swift_Mime_Headers_PathHeaderTest (line 5) | class Swift_Mime_Headers_PathHeaderTest extends \PHPUnit\Framework\TestCase
method testTypeIsPathHeader (line 7) | public function testTypeIsPathHeader()
method testSingleAddressCanBeSetAndFetched (line 13) | public function testSingleAddressCanBeSetAndFetched()
method testAddressMustComplyWithRfc2822 (line 20) | public function testAddressMustComplyWithRfc2822()
method testValueIsAngleAddrWithValidAddress (line 28) | public function testValueIsAngleAddrWithValidAddress()
method testAddressIsIdnEncoded (line 43) | public function testAddressIsIdnEncoded()
method testAddressMustBeEncodable (line 50) | public function testAddressMustBeEncodable()
method testValueIsEmptyAngleBracketsIfEmptyAddressSet (line 59) | public function testValueIsEmptyAngleBracketsIfEmptyAddressSet()
method testSetBodyModel (line 66) | public function testSetBodyModel()
method testGetBodyModel (line 73) | public function testGetBodyModel()
method testToString (line 80) | public function testToString()
method getHeader (line 89) | private function getHeader($name)
FILE: tests/unit/Swift/Mime/Headers/UnstructuredHeaderTest.php
class Swift_Mime_Headers_UnstructuredHeaderTest (line 3) | class Swift_Mime_Headers_UnstructuredHeaderTest extends \SwiftMailerTest...
method testTypeIsTextHeader (line 7) | public function testTypeIsTextHeader()
method testGetNameReturnsNameVerbatim (line 13) | public function testGetNameReturnsNameVerbatim()
method testGetValueReturnsValueVerbatim (line 19) | public function testGetValueReturnsValueVerbatim()
method testBasicStructureIsKeyValuePair (line 26) | public function testBasicStructureIsKeyValuePair()
method testLongHeadersAreFoldedAtWordBoundary (line 37) | public function testLongHeadersAreFoldedAtWordBoundary()
method testPrintableAsciiOnlyAppearsInHeaders (line 68) | public function testPrintableAsciiOnlyAppearsInHeaders()
method testEncodedWordsFollowGeneralStructure (line 86) | public function testEncodedWordsFollowGeneralStructure()
method testEncodedWordIncludesCharsetAndEncodingMethodAndText (line 103) | public function testEncodedWordIncludesCharsetAndEncodingMethodAndText()
method testEncodedWordsAreUsedToEncodedNonPrintableAscii (line 129) | public function testEncodedWordsAreUsedToEncodedNonPrintableAscii()
method testEncodedWordsAreUsedToEncode8BitOctets (line 156) | public function testEncodedWordsAreUsedToEncode8BitOctets()
method testEncodedWordsAreNoMoreThan75CharsPerLine (line 178) | public function testEncodedWordsAreNoMoreThan75CharsPerLine()
method testFWSPIsUsedWhenEncoderReturnsMultipleLines (line 211) | public function testFWSPIsUsedWhenEncoderReturnsMultipleLines()
method testAdjacentWordsAreEncodedTogether (line 243) | public function testAdjacentWordsAreEncodedTogether()
method testLanguageInformationAppearsInEncodedWords (line 287) | public function testLanguageInformationAppearsInEncodedWords()
method testSetBodyModel (line 322) | public function testSetBodyModel()
method testGetBodyModel (line 329) | public function testGetBodyModel()
method getHeader (line 336) | private function getHeader($name, $encoder)
method getEncoder (line 344) | private function getEncoder($type, $stub = false)
FILE: tests/unit/Swift/Mime/IdGeneratorTest.php
class Swift_Mime_IdGeneratorTest (line 6) | class Swift_Mime_IdGeneratorTest extends \PHPUnit\Framework\TestCase
method testIdGeneratorSetRightId (line 11) | public function testIdGeneratorSetRightId()
method testIdGenerateId (line 20) | public function testIdGenerateId()
FILE: tests/unit/Swift/Mime/MimePartTest.php
class Swift_Mime_MimePartTest (line 3) | class Swift_Mime_MimePartTest extends Swift_Mime_AbstractMimeEntityTest
method testNestingLevelIsSubpart (line 5) | public function testNestingLevelIsSubpart()
method testCharsetIsReturnedFromHeader (line 15) | public function testCharsetIsReturnedFromHeader()
method testCharsetIsSetInHeader (line 39) | public function testCharsetIsSetInHeader()
method testCharsetIsSetInHeaderIfPassedToSetBody (line 53) | public function testCharsetIsSetInHeaderIfPassedToSetBody()
method testSettingCharsetNotifiesEncoder (line 67) | public function testSettingCharsetNotifiesEncoder()
method testSettingCharsetNotifiesHeaders (line 80) | public function testSettingCharsetNotifiesHeaders()
method testSettingCharsetNotifiesChildren (line 93) | public function testSettingCharsetNotifiesChildren()
method testCharsetChangeUpdatesCharset (line 107) | public function testCharsetChangeUpdatesCharset()
method testSettingCharsetClearsCache (line 121) | public function testSettingCharsetClearsCache()
method testFormatIsReturnedFromHeader (line 145) | public function testFormatIsReturnedFromHeader()
method testFormatIsSetInHeader (line 160) | public function testFormatIsSetInHeader()
method testDelSpIsReturnedFromHeader (line 172) | public function testDelSpIsReturnedFromHeader()
method testDelSpIsSetInHeader (line 187) | public function testDelSpIsSetInHeader()
method testFluidInterface (line 199) | public function testFluidInterface()
method createEntity (line 222) | protected function createEntity($headers, $encoder, $cache)
method createMimePart (line 227) | protected function createMimePart($headers, $encoder, $cache)
FILE: tests/unit/Swift/Mime/SimpleHeaderFactoryTest.php
class Swift_Mime_SimpleHeaderFactoryTest (line 5) | class Swift_Mime_SimpleHeaderFactoryTest extends \PHPUnit\Framework\Test...
method setUp (line 9) | protected function setUp()
method testMailboxHeaderIsCorrectType (line 14) | public function testMailboxHeaderIsCorrectType()
method testMailboxHeaderHasCorrectName (line 20) | public function testMailboxHeaderHasCorrectName()
method testMailboxHeaderHasCorrectModel (line 26) | public function testMailboxHeaderHasCorrectModel()
method testDateHeaderHasCorrectType (line 34) | public function testDateHeaderHasCorrectType()
method testDateHeaderHasCorrectName (line 40) | public function testDateHeaderHasCorrectName()
method testDateHeaderHasCorrectModel (line 46) | public function testDateHeaderHasCorrectModel()
method testTextHeaderHasCorrectType (line 53) | public function testTextHeaderHasCorrectType()
method testTextHeaderHasCorrectName (line 59) | public function testTextHeaderHasCorrectName()
method testTextHeaderHasCorrectModel (line 65) | public function testTextHeaderHasCorrectModel()
method testParameterizedHeaderHasCorrectType (line 71) | public function testParameterizedHeaderHasCorrectType()
method testParameterizedHeaderHasCorrectName (line 77) | public function testParameterizedHeaderHasCorrectName()
method testParameterizedHeaderHasCorrectModel (line 83) | public function testParameterizedHeaderHasCorrectModel()
method testParameterizedHeaderHasCorrectParams (line 89) | public function testParameterizedHeaderHasCorrectParams()
method testIdHeaderHasCorrectType (line 97) | public function testIdHeaderHasCorrectType()
method testIdHeaderHasCorrectName (line 103) | public function testIdHeaderHasCorrectName()
method testIdHeaderHasCorrectModel (line 109) | public function testIdHeaderHasCorrectModel()
method testPathHeaderHasCorrectType (line 115) | public function testPathHeaderHasCorrectType()
method testPathHeaderHasCorrectName (line 121) | public function testPathHeaderHasCorrectName()
method testPathHeaderHasCorrectModel (line 127) | public function testPathHeaderHasCorrectModel()
method testCharsetChangeNotificationNotifiesEncoders (line 133) | public function testCharsetChangeNotificationNotifiesEncoders()
method createFactory (line 149) | private function createFactory($encoder = null, $paramEncoder = null)
method createHeaderEncoder (line 160) | private function createHeaderEncoder()
method createParamEncoder (line 165) | private function createParamEncoder()
FILE: tests/unit/Swift/Mime/SimpleHeaderSetTest.php
class Swift_Mime_SimpleHeaderSetTest (line 3) | class Swift_Mime_SimpleHeaderSetTest extends \PHPUnit\Framework\TestCase
method testAddMailboxHeaderDelegatesToFactory (line 5) | public function testAddMailboxHeaderDelegatesToFactory()
method testAddDateHeaderDelegatesToFactory (line 17) | public function testAddDateHeaderDelegatesToFactory()
method testAddTextHeaderDelegatesToFactory (line 31) | public function testAddTextHeaderDelegatesToFactory()
method testAddParameterizedHeaderDelegatesToFactory (line 43) | public function testAddParameterizedHeaderDelegatesToFactory()
method testAddIdHeaderDelegatesToFactory (line 57) | public function testAddIdHeaderDelegatesToFactory()
method testAddPathHeaderDelegatesToFactory (line 69) | public function testAddPathHeaderDelegatesToFactory()
method testHasReturnsFalseWhenNoHeaders (line 81) | public function testHasReturnsFalseWhenNoHeaders()
method testAddedMailboxHeaderIsSeenByHas (line 87) | public function testAddedMailboxHeaderIsSeenByHas()
method testAddedDateHeaderIsSeenByHas (line 100) | public function testAddedDateHeaderIsSeenByHas()
method testAddedTextHeaderIsSeenByHas (line 115) | public function testAddedTextHeaderIsSeenByHas()
method testAddedParameterizedHeaderIsSeenByHas (line 128) | public function testAddedParameterizedHeaderIsSeenByHas()
method testAddedIdHeaderIsSeenByHas (line 143) | public function testAddedIdHeaderIsSeenByHas()
method testAddedPathHeaderIsSeenByHas (line 156) | public function testAddedPathHeaderIsSeenByHas()
method testNewlySetHeaderIsSeenByHas (line 169) | public function testNewlySetHeaderIsSeenByHas()
method testHasCanAcceptOffset (line 178) | public function testHasCanAcceptOffset()
method testHasWithIllegalOffsetReturnsFalse (line 191) | public function testHasWithIllegalOffsetReturnsFalse()
method testHasCanDistinguishMultipleHeaders (line 204) | public function testHasCanDistinguishMultipleHeaders()
method testGetWithUnspecifiedOffset (line 224) | public function testGetWithUnspecifiedOffset()
method testGetWithSpeiciedOffset (line 238) | public function testGetWithSpeiciedOffset()
method testGetReturnsNullIfHeaderNotSet (line 264) | public function testGetReturnsNullIfHeaderNotSet()
method testGetAllReturnsAllHeadersMatchingName (line 270) | public function testGetAllReturnsAllHeadersMatchingName()
method testGetAllReturnsAllHeadersIfNoArguments (line 299) | public function testGetAllReturnsAllHeadersIfNoArguments()
method testGetAllReturnsEmptyArrayIfNoneSet (line 328) | public function testGetAllReturnsEmptyArrayIfNoneSet()
method testRemoveWithUnspecifiedOffset (line 334) | public function testRemoveWithUnspecifiedOffset()
method testRemoveWithSpecifiedIndexRemovesHeader (line 349) | public function testRemoveWithSpecifiedIndexRemovesHeader()
method testRemoveWithSpecifiedIndexLeavesOtherHeaders (line 377) | public function testRemoveWithSpecifiedIndexLeavesOtherHeaders()
method testRemoveWithInvalidOffsetDoesNothing (line 400) | public function testRemoveWithInvalidOffsetDoesNothing()
method testRemoveAllRemovesAllHeadersWithName (line 415) | public function testRemoveAllRemovesAllHeadersWit
Condensed preview — 364 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (4,081K chars).
[
{
"path": ".gitattributes",
"chars": 219,
"preview": "*.crt -crlf\n*.key -crlf\n*.srl -crlf\n*.pub -crlf\n*.priv -crlf\n*.txt -crlf\n\n# ignore directories in the git-generated dist"
},
{
"path": ".github/ISSUE_TEMPLATE.md",
"chars": 491,
"preview": "<!-- Please fill in this template according to your issue. -->\n\n| Q | A\n| ------------------- | -----\n"
},
{
"path": ".github/PULL_REQUEST_TEMPLATE.md",
"chars": 405,
"preview": "<!-- Please fill in this template according to the PR you're about to submit. -->\n\n| Q | A\n| ------------- |"
},
{
"path": ".github/workflows/tests.yml",
"chars": 1438,
"preview": "name: tests\n\non:\n push:\n pull_request:\n\njobs:\n linux_tests:\n runs-on: ubuntu-20.04\n\n services:\n mailcatche"
},
{
"path": ".gitignore",
"chars": 143,
"preview": "/.php_cs.cache\n/.phpunit\n/.phpunit.result.cache\n/build/*\n/composer.lock\n/phpunit.xml\n/tests/acceptance.conf.php\n/tests/s"
},
{
"path": ".php_cs.dist",
"chars": 831,
"preview": "<?php\n\nreturn PhpCsFixer\\Config::create()\n ->setRules([\n '@Symfony' => true,\n '@Symfony:risky' => true,"
},
{
"path": "CHANGES",
"chars": 12269,
"preview": "Changelog\n=========\n\n**Swiftmailer will stop being maintained at the end of November 2021.**\n\nPlease, move to Symfony Ma"
},
{
"path": "LICENSE",
"chars": 1065,
"preview": "Copyright (c) 2013-2021 Fabien Potencier\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\no"
},
{
"path": "README.md",
"chars": 1077,
"preview": "Swift Mailer\n------------\n\n**Swiftmailer will stop being maintained at the end of November 2021.**\n\nPlease, move to [Sym"
},
{
"path": "composer.json",
"chars": 1159,
"preview": "{\n \"name\": \"swiftmailer/swiftmailer\",\n \"type\": \"library\",\n \"description\": \"Swiftmailer, free feature-rich PHP m"
},
{
"path": "doc/headers.rst",
"chars": 20478,
"preview": "Message Headers\n===============\n\nSometimes you'll want to add your own headers to a message or modify/remove\nheaders tha"
},
{
"path": "doc/index.rst",
"chars": 135,
"preview": "Swiftmailer\n===========\n\n.. toctree::\n :maxdepth: 2\n\n introduction\n messages\n headers\n sending\n plugin"
},
{
"path": "doc/introduction.rst",
"chars": 2086,
"preview": "Swift Mailer: A feature-rich PHP Mailer\n=======================================\n\nSwift Mailer is a component based libra"
},
{
"path": "doc/japanese.rst",
"chars": 552,
"preview": "Using Swift Mailer for Japanese Emails\n======================================\n\nTo send emails in Japanese, you need to t"
},
{
"path": "doc/messages.rst",
"chars": 40376,
"preview": "Creating Messages\n=================\n\nCreating messages in Swift Mailer is done by making use of the various MIME\nentitie"
},
{
"path": "doc/notes/CHARSETS",
"chars": 968,
"preview": "Following is a list of character sets along with their widths:\n---------------------------------------------------------"
},
{
"path": "doc/notes/rfc/rfc0821.txt",
"chars": 120432,
"preview": "\n \n\n RFC 821\n "
},
{
"path": "doc/notes/rfc/rfc0822.txt",
"chars": 106299,
"preview": "\n \n\n\n\n\n RFC # 822\n\n Obsoletes: RFC #733 (NIC #41952)\n\n\n\n\n\n\n\n\n\n\n\n\n STANDARD FOR THE FOR"
},
{
"path": "doc/notes/rfc/rfc1341.txt",
"chars": 211117,
"preview": "\n\n\n\n\n\n Network Working Group N. Borenstein, Bellcore\n Request for Comments: 1341 "
},
{
"path": "doc/notes/rfc/rfc1521.txt",
"chars": 187424,
"preview": "\n\n\n\n\n\nNetwork Working Group N. Borenstein\nRequest for Comments: 1521 "
},
{
"path": "doc/notes/rfc/rfc1854.txt",
"chars": 14097,
"preview": "\n\n\n\n\n\nNetwork Working Group N. Freed\nRequest For Comments: 1854 "
},
{
"path": "doc/notes/rfc/rfc2015.txt",
"chars": 14222,
"preview": "\n\n\n\n\nNetwork Working Group M. Elkins\nRequest for Comments: 2015 "
},
{
"path": "doc/notes/rfc/rfc2045.txt",
"chars": 72932,
"preview": "\n\n\n\n\n\nNetwork Working Group N. Freed\nRequest for Comments: 2045 "
},
{
"path": "doc/notes/rfc/rfc2046.txt",
"chars": 105854,
"preview": "\n\n\n\n\n\nNetwork Working Group N. Freed\nRequest for Comments: 2046 "
},
{
"path": "doc/notes/rfc/rfc2047.txt",
"chars": 33262,
"preview": "\n\n\n\n\n\nNetwork Working Group K. Moore\nRequest for Comments: 2047 "
},
{
"path": "doc/notes/rfc/rfc2048.txt",
"chars": 45034,
"preview": "\n\n\n\n\n\nNetwork Working Group N. Freed\nRequest for Comments: 2048 "
},
{
"path": "doc/notes/rfc/rfc2049.txt",
"chars": 51207,
"preview": "\n\n\n\n\n\nNetwork Working Group N. Freed\nRequest for Comments: 2049 "
},
{
"path": "doc/notes/rfc/rfc2183.txt",
"chars": 23158,
"preview": "\n\n\n\n\n\nNetwork Working Group R. Troost\nRequest for Comments: 2183 "
},
{
"path": "doc/notes/rfc/rfc2222.txt",
"chars": 35010,
"preview": "\n\n\n\n\n\nNetwork Working Group J. Myers\nRequest for Comments: 2222 "
},
{
"path": "doc/notes/rfc/rfc2231.txt",
"chars": 19280,
"preview": "\n\n\n\n\n\nNetwork Working Group N. Freed\nRequest for Comments: 2231 "
},
{
"path": "doc/notes/rfc/rfc2234.txt",
"chars": 24265,
"preview": "\n\n\n\n\n\nNetwork Working Group D. Crocker, Ed.\nRequest for Comments: 2234 "
},
{
"path": "doc/notes/rfc/rfc2440.txt",
"chars": 141370,
"preview": "\n\n\n\n\nNetwork Working Group J. Callas\nRequest for Comments: 2440 "
},
{
"path": "doc/notes/rfc/rfc2487.txt",
"chars": 15120,
"preview": "\n\n\n\n\n\nNetwork Working Group P. Hoffman\nRequest for Comments: 2487 I"
},
{
"path": "doc/notes/rfc/rfc2554.txt",
"chars": 20534,
"preview": "\n\n\n\n\n\nNetwork Working Group J. Myers\nRequest for Comments: 2554 "
},
{
"path": "doc/notes/rfc/rfc2821.txt",
"chars": 192504,
"preview": "\n\n\n\n\n\nNetwork Working Group J. Klensin, Editor\nRequest for Comments: 2821 "
},
{
"path": "doc/notes/rfc/rfc2822.txt",
"chars": 110695,
"preview": "\n\n\n\n\n\nNetwork Working Group P. Resnick, Editor\nRequest for Comments: 2822 "
},
{
"path": "doc/notes/rfc/rfc3156.txt",
"chars": 26808,
"preview": "\n\n\n\n\nNetwork Working Group M. Elkins\nRequest for Comments: 3156 "
},
{
"path": "doc/notes/rfc/rfc3676.txt",
"chars": 42441,
"preview": "\n\n\n\n\n\nNetwork Working Group R. Gellens\nRequest for Comments: 3676 "
},
{
"path": "doc/notes/rfc/rfc4505.txt",
"chars": 16599,
"preview": "\n\n\n\n\n\nNetwork Working Group K. Zeilenga, Ed.\nRequest for Comments: 4505 "
},
{
"path": "doc/notes/rfc/rfc4616.txt",
"chars": 20270,
"preview": "\n\n\n\n\n\nNetwork Working Group K. Zeilenga, Ed.\nRequest for Comments: 4616 "
},
{
"path": "doc/notes/rfc/rfc4870.txt",
"chars": 87377,
"preview": "\n\n\n\n\nNetwork Working Group M. Delany\nRequest for Comments: 4870 "
},
{
"path": "doc/notes/rfc/rfc4871.txt",
"chars": 166054,
"preview": "\n\n\n\n\n\nNetwork Working Group E. Allman\nRequest for Comments: 4871 "
},
{
"path": "doc/notes/rfc/rfc4880.txt",
"chars": 203705,
"preview": "\n\n\n\n\nNetwork Working Group J. Callas\nRequest for Comments: 4880 "
},
{
"path": "doc/notes/rfc/rfc4954.txt",
"chars": 43493,
"preview": "\n\n\n\n\n\nNetwork Working Group R. Siemborski, Ed.\nRequest for Comments: 4954 "
},
{
"path": "doc/notes/rfc/rfc5751.txt",
"chars": 98638,
"preview": "\n\n\n\n\n\nInternet Engineering Task Force (IETF) B. Ramsdell\nRequest for Comments: 5751 "
},
{
"path": "doc/notes/rfc/whats_where.txt",
"chars": 1428,
"preview": "RFC 1854:\n---------\nPIPELINING extension\n\nRFC 2222:\n---------\nSASL\n\nRFC 4505:\n---------\nANYNONYMOUS SASL\n\nRFC 4616:\n----"
},
{
"path": "doc/notes/rfc5672.txt",
"chars": 29677,
"preview": "\n\n\n\n\n\nNetwork Working Group D. Crocker, Ed.\nRequest for Comments: 5672 "
},
{
"path": "doc/notes/rfc6376.txt",
"chars": 176999,
"preview": "\n\n\n\n\n\nInternet Engineering Task Force (IETF) D. Crocker, Ed.\nRequest for Comments: 6376 "
},
{
"path": "doc/notes/smtp.txt",
"chars": 1688,
"preview": "General Notes\n--------------\n * MX is NOT required, but an A record, or CNAME to a MX MUST be present at the least.\n * E"
},
{
"path": "doc/plugins.rst",
"chars": 13125,
"preview": "Plugins\n=======\n\nPlugins exist to extend, or modify the behaviour of Swift Mailer. They respond\nto Events that are fired"
},
{
"path": "doc/sending.rst",
"chars": 17464,
"preview": "Sending Messages\n================\n\nQuick Reference for Sending a Message\n-------------------------------------\n\nSending "
},
{
"path": "lib/classes/Swift/AddressEncoder/IdnAddressEncoder.php",
"chars": 1582,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2018 Christian Schmidt\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/AddressEncoder/Utf8AddressEncoder.php",
"chars": 1112,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2018 Christian Schmidt\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/AddressEncoder.php",
"chars": 595,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2018 Christian Schmidt\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/AddressEncoderException.php",
"chars": 721,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2018 Christian Schmidt\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Attachment.php",
"chars": 1449,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/ByteStream/AbstractFilterableInputStream.php",
"chars": 4023,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/ByteStream/ArrayByteStream.php",
"chars": 4146,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/ByteStream/FileByteStream.php",
"chars": 6049,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/ByteStream/TemporaryFileByteStream.php",
"chars": 1237,
"preview": "<?php\n\n/*\n* This file is part of SwiftMailer.\n* (c) 2004-2009 Chris Corbyn\n*\n* For the full copyright and license inform"
},
{
"path": "lib/classes/Swift/CharacterReader/GenericFixedWidthReader.php",
"chars": 2365,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/CharacterReader/UsAsciiReader.php",
"chars": 1978,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/CharacterReader/Utf8Reader.php",
"chars": 8269,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/CharacterReader.php",
"chars": 1740,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/CharacterReaderFactory/SimpleCharacterReaderFactory.php",
"chars": 3288,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/CharacterReaderFactory.php",
"chars": 542,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/CharacterStream/ArrayCharacterStream.php",
"chars": 8282,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/CharacterStream/NgCharacterStream.php",
"chars": 6585,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/CharacterStream.php",
"chars": 2158,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/ConfigurableSpool.php",
"chars": 1362,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2009 Fabien Potencier <fabien.potencier@gmail.com>\n *\n * For the f"
},
{
"path": "lib/classes/Swift/DependencyContainer.php",
"chars": 9928,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/DependencyException.php",
"chars": 588,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/EmbeddedFile.php",
"chars": 1407,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Encoder/Base64Encoder.php",
"chars": 1595,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Encoder/QpEncoder.php",
"chars": 10744,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Encoder/Rfc2231Encoder.php",
"chars": 2320,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Encoder.php",
"chars": 734,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Events/CommandEvent.php",
"chars": 1372,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Events/CommandListener.php",
"chars": 523,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Events/Event.php",
"chars": 777,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Events/EventDispatcher.php",
"chars": 2001,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Events/EventListener.php",
"chars": 351,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Events/EventObject.php",
"chars": 1284,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Events/ResponseEvent.php",
"chars": 1269,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Events/ResponseListener.php",
"chars": 526,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Events/SendEvent.php",
"chars": 2653,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Events/SendListener.php",
"chars": 667,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Events/SimpleEventDispatcher.php",
"chars": 4354,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Events/TransportChangeEvent.php",
"chars": 564,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Events/TransportChangeListener.php",
"chars": 996,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Events/TransportExceptionEvent.php",
"chars": 954,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Events/TransportExceptionListener.php",
"chars": 573,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/FailoverTransport.php",
"chars": 865,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/FileSpool.php",
"chars": 5620,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2009 Fabien Potencier <fabien.potencier@gmail.com>\n *\n * For the f"
},
{
"path": "lib/classes/Swift/FileStream.php",
"chars": 488,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Filterable.php",
"chars": 626,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/IdGenerator.php",
"chars": 433,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Image.php",
"chars": 1052,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/InputByteStream.php",
"chars": 1963,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/IoException.php",
"chars": 605,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/KeyCache/ArrayKeyCache.php",
"chars": 5241,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/KeyCache/DiskKeyCache.php",
"chars": 8049,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/KeyCache/KeyCacheInputStream.php",
"chars": 1070,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/KeyCache/NullKeyCache.php",
"chars": 2586,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/KeyCache/SimpleKeyCacheInputStream.php",
"chars": 2674,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/KeyCache.php",
"chars": 2802,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/LoadBalancedTransport.php",
"chars": 878,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mailer/ArrayRecipientIterator.php",
"chars": 1164,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mailer/RecipientIterator.php",
"chars": 744,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mailer.php",
"chars": 2566,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/MemorySpool.php",
"chars": 2760,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2011 Fabien Potencier <fabien.potencier@gmail.com>\n *\n * For the f"
},
{
"path": "lib/classes/Swift/Message.php",
"chars": 7167,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/Attachment.php",
"chars": 3575,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/CharsetObserver.php",
"chars": 509,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/ContentEncoder/Base64ContentEncoder.php",
"chars": 3710,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/ContentEncoder/NativeQpContentEncoder.php",
"chars": 3402,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/ContentEncoder/NullContentEncoder.php",
"chars": 1846,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/ContentEncoder/PlainContentEncoder.php",
"chars": 4232,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/ContentEncoder/QpContentEncoder.php",
"chars": 4204,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/ContentEncoder/QpContentEncoderProxy.php",
"chars": 2353,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/ContentEncoder/RawContentEncoder.php",
"chars": 1555,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/ContentEncoder.php",
"chars": 969,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/EmbeddedFile.php",
"chars": 1054,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/EncodingObserver.php",
"chars": 516,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/Header.php",
"chars": 1997,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/HeaderEncoder/Base64HeaderEncoder.php",
"chars": 1619,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/HeaderEncoder/QpHeaderEncoder.php",
"chars": 1758,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/HeaderEncoder.php",
"chars": 488,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/Headers/AbstractHeader.php",
"chars": 14404,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/Headers/DateHeader.php",
"chars": 2690,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/Headers/IdentificationHeader.php",
"chars": 4495,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/Headers/MailboxHeader.php",
"chars": 9513,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/Headers/OpenDKIMHeader.php",
"chars": 2584,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/Headers/ParameterizedHeader.php",
"chars": 7054,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/Headers/PathHeader.php",
"chars": 3797,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/Headers/UnstructuredHeader.php",
"chars": 2225,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/IdGenerator.php",
"chars": 1062,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/MimePart.php",
"chars": 5068,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/SimpleHeaderFactory.php",
"chars": 5364,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/SimpleHeaderSet.php",
"chars": 10415,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/SimpleMessage.php",
"chars": 16425,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Mime/SimpleMimeEntity.php",
"chars": 22827,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/MimePart.php",
"chars": 1168,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/NullTransport.php",
"chars": 673,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2009 Fabien Potencier <fabien.potencier@gmail.com>\n *\n * For the f"
},
{
"path": "lib/classes/Swift/OutputByteStream.php",
"chars": 1128,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/AntiFloodPlugin.php",
"chars": 3018,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/BandwidthMonitorPlugin.php",
"chars": 3366,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/Decorator/Replacements.php",
"chars": 763,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/DecoratorPlugin.php",
"chars": 7042,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/ImpersonatePlugin.php",
"chars": 1593,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2009 Fabien Potencier\n *\n * For the full copyright and license inf"
},
{
"path": "lib/classes/Swift/Plugins/Logger.php",
"chars": 614,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/LoggerPlugin.php",
"chars": 3436,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/Loggers/ArrayLogger.php",
"chars": 1247,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/Loggers/EchoLogger.php",
"chars": 1077,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/MessageLogger.php",
"chars": 1336,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2011 Fabien Potencier\n *\n * For the full copyright and license inf"
},
{
"path": "lib/classes/Swift/Plugins/Pop/Pop3Connection.php",
"chars": 718,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/Pop/Pop3Exception.php",
"chars": 582,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/PopBeforeSmtpPlugin.php",
"chars": 6191,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/RedirectingPlugin.php",
"chars": 4918,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2009 Fabien Potencier\n *\n * For the full copyright and license inf"
},
{
"path": "lib/classes/Swift/Plugins/Reporter.php",
"chars": 785,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/ReporterPlugin.php",
"chars": 1822,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/Reporters/HitReporter.php",
"chars": 1346,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/Reporters/HtmlReporter.php",
"chars": 1138,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/Sleeper.php",
"chars": 431,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/ThrottlerPlugin.php",
"chars": 4667,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Plugins/Timer.php",
"chars": 426,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Preferences.php",
"chars": 2225,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/ReplacementFilterFactory.php",
"chars": 549,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/RfcComplianceException.php",
"chars": 554,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/SendmailTransport.php",
"chars": 886,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Signer.php",
"chars": 365,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Signers/BodySigner.php",
"chars": 706,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Signers/DKIMSigner.php",
"chars": 17507,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Signers/DomainKeySigner.php",
"chars": 12077,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Signers/HeaderSigner.php",
"chars": 1324,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Signers/OpenDKIMSigner.php",
"chars": 5142,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Signers/SMimeSigner.php",
"chars": 17871,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/SmtpTransport.php",
"chars": 1723,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Spool.php",
"chars": 1240,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2009 Fabien Potencier <fabien.potencier@gmail.com>\n *\n * For the f"
},
{
"path": "lib/classes/Swift/SpoolTransport.php",
"chars": 780,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2009 Fabien Potencier <fabien.potencier@gmail.com>\n *\n * For the f"
},
{
"path": "lib/classes/Swift/StreamFilter.php",
"chars": 720,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/StreamFilters/ByteArrayReplacementFilter.php",
"chars": 5287,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/StreamFilters/StringReplacementFilter.php",
"chars": 1613,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/StreamFilters/StringReplacementFilterFactory.php",
"chars": 1214,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/SwiftException.php",
"chars": 601,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Transport/AbstractSmtpTransport.php",
"chars": 16047,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Transport/Esmtp/Auth/CramMd5Authenticator.php",
"chars": 1932,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Transport/Esmtp/Auth/LoginAuthenticator.php",
"chars": 1135,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php",
"chars": 21479,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * This authentication is for Exchange s"
},
{
"path": "lib/classes/Swift/Transport/Esmtp/Auth/PlainAuthenticator.php",
"chars": 1054,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Transport/Esmtp/Auth/XOAuth2Authenticator.php",
"chars": 1665,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Transport/Esmtp/AuthHandler.php",
"chars": 6274,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Transport/Esmtp/Authenticator.php",
"chars": 973,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Transport/Esmtp/EightBitMimeHandler.php",
"chars": 2465,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2018 Christian Schmidt\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Transport/Esmtp/SmtpUtf8Handler.php",
"chars": 2274,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2018 Christian Schmidt\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Transport/EsmtpHandler.php",
"chars": 2321,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Transport/EsmtpTransport.php",
"chars": 12069,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Transport/FailoverTransport.php",
"chars": 2755,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Transport/IoBuffer.php",
"chars": 1636,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
},
{
"path": "lib/classes/Swift/Transport/LoadBalancedTransport.php",
"chars": 4635,
"preview": "<?php\n\n/*\n * This file is part of SwiftMailer.\n * (c) 2004-2009 Chris Corbyn\n *\n * For the full copyright and license in"
}
]
// ... and 164 more files (download for full content)
About this extraction
This page contains the full source code of the swiftmailer/swiftmailer GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 364 files (3.7 MB), approximately 1.0M tokens, and a symbol index with 2448 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.