Download the PHP package clinically-au/laravel-smtp2go without Composer

On this page you can find all versions of the php package clinically-au/laravel-smtp2go. 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 laravel-smtp2go

SMTP2Go Laravel Mail Transport

Tests Latest Version on Packagist Total Downloads License

A Laravel Mail transport driver for sending emails via the SMTP2Go API. This package provides seamless integration with Laravel's built-in mail system.

Features

Requirements

Installation

Install the package via Composer:

The service provider will be automatically registered.

Configuration

1. Add Environment Variables

Add your SMTP2Go API key to your .env file:

2. Configure Mail Driver

Add the SMTP2Go mailer to your config/mail.php:

3. Set as Default (Optional)

To use SMTP2Go as your default mailer:

Or in config/mail.php:

4. Publish Config (Optional)

If you need to customize the configuration:

This will create config/smtp2go.php:

Usage

Basic Email Sending

Once configured, use Laravel's Mail facade as normal:

Using a Specific Mailer

If you have multiple mailers configured:

Queued Emails

Send emails in the background using Laravel's queue system:

Email with CC and BCC

Email with Attachments

HTML and Plain Text

Testing

Package Test Suite

The package includes a comprehensive test suite:

Testing with Real SMTP2Go API

To verify the package works with your SMTP2Go account, use the included test script:

See test-app/README.md for detailed instructions.

Testing in Your Application

Use Laravel's mail faking in your tests:

How It Works

This package implements Laravel's custom mail transport interface by:

  1. Extending Symfony's AbstractTransport class
  2. Converting Laravel mail messages to SMTP2Go API format
  3. Sending via SMTP2Go's REST API with Guzzle HTTP client
  4. Automatic Base64 encoding of attachments
  5. Proper formatting of email addresses (Name [email protected])

All error handling, retries, and queue integration are handled by Laravel's mail system automatically.

API Documentation

For detailed SMTP2Go API documentation, see:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Contributions are welcome! Please see our contributing guidelines for details.

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-smtp2go with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
guzzlehttp/guzzle Version ^7.0
illuminate/contracts Version ^11.0||^12.0||^13.0
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 clinically-au/laravel-smtp2go contains the following files

Loading the files please wait ...