Download the PHP package mailpace/mailpace-swiftmailer without Composer

On this page you can find all versions of the php package mailpace/mailpace-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 mailpace-swiftmailer

The official Swiftmailer transport for MailPace

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

MailPace lets you send transactional emails from your app over an easy to use API.

This MailPace PHP Package is a transport for SwiftMailer to send emails via MailPace to make sending emails from PHP apps super simple. You can use this with popular frameworks such as Laravel, Codeigniter and Symfony to send transactional emails, or with a standalone PHP app.

This package uses the MailPace HTTPS /send endpoint to send the email - which is generally faster and more reliable than SMTP, although you can of course use SMTP to send out emails from your PHP app without installing this package if you prefer.

Pre-requisites

You will need an MailPace account with a verified domain and organization with an active plan.

Installation

Install the package via composer:

Account Setup

Set up an account at MailPace and complete the Onboarding steps

Configure the Package

First you will need to retrieve your API token for your sending domain from MailPace. You can find it under Organization -> Domain -> API Tokens

You'll need to store this API token somewhere in your app/runtime, we recommend Environment Variables for this, and the examples below assume that you have an environment variable called OHMYSMTP_API_TOKEN that contains your API token

Sending without a framework

Sending with Laravel

To send with Laravel you need to make a few small tweaks, but it really only takes a moment.

  1. Add mailpace to the config/mail.php configuration file:

  2. Add the following to your config/services.php configuration file:

  3. In config/app.php, add the following to the providers array:

and remove / comment out the line:

  1. In your .env file (or wherever you store environment variables), change the MAIL_MAILER variable as follows:

MAIL_MAILER=mailpace

  1. Create a new file called MailpaceServiceProvider.php in App/Providers with the following contents:

After completing the above steps, all email will be sent via MailPace.

Support

For support please check the MailPace Documentation or contact us at [email protected]

Contributing

Please ensure to add a test for any changes. To run the tests:

composer test

Pull requests always welcome

License

The gem is available as open source under the terms of the MIT License.


All versions of mailpace-swiftmailer with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
guzzlehttp/guzzle Version >=6.0
swiftmailer/swiftmailer Version >=6.2.7
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 mailpace/mailpace-swiftmailer contains the following files

Loading the files please wait ....