Download the PHP package pepijnsenders/swiftmailer without Composer

On this page you can find all versions of the php package pepijnsenders/swiftmailer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package swiftmailer

Swift Mailer Bundle, by Taylor Otwell

A Laravel Swift Mailer bundle, installable via the Artisan CLI:

php artisan bundle:install swiftmailer

You must then auto-load the bundle in bundles.php:

return array(
    'swiftmailer' => array('auto'=>true)
);

In your code, you need to get a Swift_Mailer instance:

$mailer = IoC::resolve('mailer');

You will also need a message instance that will allow you to construct your message and later send:

$message = Swift_Message::newInstance('Subject Of Email');

Ultimately the final code to construct a message will look something like this:

// If you do not want to auto-load the bundle, you can use this
Bundle::start('swiftmailer');

// Get the Swift Mailer instance
$mailer = IoC::resolve('mailer');

// Construct the message
$message = Swift_Message::newInstance('Message From Website')
    ->setFrom(array('[email protected]'=>'Mr Example'))
    ->setTo(array('[email protected]'=>'Mr Example'))
    ->addPart('My Plain Text Message','text/plain')
    ->setBody('<p>My HTML Message</p>','text/html');

// Send the email
$mailer->send($message);

Or, since your controllers have dynamic access to the IoC container:

$this->mailer->send($message);

Swift Mailer, by Chris Corbyn

Swift Mailer is a component based mailing solution for PHP 5. It is released under the LGPL 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, see the documentation.

IMPORTANT

Users upgrading from version 3.x or earlier absolutely MUST read the documentation. In short, the API is considerably different so your old code won't "just work".

Donations

If you'd like to make a donation, we are working on a system where donations are taken on a per-feature-request basis via the website with target amounts for each feature. In the meantime however you may donate directly to the author via PayPal:

PayPal: [email protected]

Donations are certainly voluntary, but seriously, you donors are complete legends and drive this project! :)


All versions of swiftmailer with dependencies

PHP Build Version
Package Version
Requires php Version >=5.2.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pepijnsenders/swiftmailer contains the following files

Loading the files please wait ....