All Projects → yiisoft → mailer

yiisoft / mailer

Licence: BSD-3-Clause license
Generic mailer

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to mailer

Meteor-Mailer
📮 Bulletproof email queue on top of NodeMailer with support of multiple clusters and servers setup
Stars: ✭ 21 (+31.25%)
Mutual labels:  mail, mailer, email-sender
release-notify-action
GitHub Action that triggers e-mails with release notes when these are created
Stars: ✭ 64 (+300%)
Mutual labels:  mailer, email-sender
Play Mailer
Play mailer plugin
Stars: ✭ 243 (+1418.75%)
Mutual labels:  mailer, email-sender
bulk-mail-cli
Do quick, hassle-free email marketing with this small but very powerful tool! 🔥
Stars: ✭ 88 (+450%)
Mutual labels:  mail, mailer
Android-Email-App-using-Javamail-Api
An Android App to send mail without gamil/email interaction!
Stars: ✭ 19 (+18.75%)
Mutual labels:  mail, email-sender
Yii2 Swiftmailer
Yii 2 swiftmailer extension.
Stars: ✭ 109 (+581.25%)
Mutual labels:  mail, mailer
mailing
📬 Sending emails with pleasure and prepared templates.
Stars: ✭ 15 (-6.25%)
Mutual labels:  mail, mailer
ESP-Mail-Client
⚡️Arduino Mail Client Library to send, read and get incoming mail notification for ESP32, ESP8266 and SAMD21 devices. The library also supported other Arduino devices using Clients interfaces e.g. WiFiClient, EthernetClient, and GSMClient.
Stars: ✭ 78 (+387.5%)
Mutual labels:  mail, email-sender
Mailer
A lightweight PHP SMTP mail sender
Stars: ✭ 53 (+231.25%)
Mutual labels:  mail, mailer
Mail
📧 Handy email creation and transfer library for PHP with both text and MIME-compliant support.
Stars: ✭ 288 (+1700%)
Mutual labels:  mail, mailer
django-yubin
Send e-mails asyncronously using cron
Stars: ✭ 44 (+175%)
Mutual labels:  mail, mailer
yii2-symfonymailer
Yii 2 Symfony mailer extension.
Stars: ✭ 29 (+81.25%)
Mutual labels:  mail, mailer
easymail
Easy way to install a mail server.
Stars: ✭ 60 (+275%)
Mutual labels:  mail, mailer
yapople
Yet another POP3 email library
Stars: ✭ 22 (+37.5%)
Mutual labels:  mail
mailer-plugin
This plugin allows you to configure email notifications for build results
Stars: ✭ 35 (+118.75%)
Mutual labels:  mailer
aliyun-direct-mail
[DEPRECATED] 阿里云 DirectMail for Laravel.
Stars: ✭ 26 (+62.5%)
Mutual labels:  mail
sendcloud
SendCloud Mail SDK
Stars: ✭ 21 (+31.25%)
Mutual labels:  mail
mailparse
Rust library to parse mail files
Stars: ✭ 148 (+825%)
Mutual labels:  mail
enough mail app
Mail app for iOS, Android and hopefully more platforms in the future. Based on Flutter.
Stars: ✭ 84 (+425%)
Mutual labels:  mail
Galleon
A badass SMTP mail server built on Node to make your life simpler.
Stars: ✭ 14 (-12.5%)
Mutual labels:  mail

Yii Mailer Library


Latest Stable Version Total Downloads Build status Scrutinizer Code Quality Code Coverage Mutation testing badge static analysis type-coverage

The package provides the content composition functionality, and a basic interface for sending emails. Actual mail sending is provided by separate interchangeable packages.

Out of the box the package profiles a file mailer that, instead of actually sending an email, writes its contents into a file. There are also Swift Mailer and Symfony Mailer based official drivers available as a separate packages that actually can send emails.

Installation

The package could be installed with composer:

composer require yiisoft/mailer --prefer-dist

General usage

The following code can be used to send an email:

/**
 * @var \Yiisoft\Mailer\MailerInterface $mailer
 */

$message = $mailer
    ->compose()
    ->withFrom('[email protected]')
    ->withTo('[email protected]')
    ->withSubject('Message subject')
    ->withTextBody('Plain text content')
    ->withHtmlBody('<b>HTML content</b>');
    
$mailer->send($message);

See Yii guide to mailing for more info.

Localize view file

You can set a specific locale that will be used to localize view files with withLocale() method:

/**
 * @var \Yiisoft\Mailer\MailerInterface $mailer
 */

$message = $mailer
    ->withLocale('de_DE')
    ->compose('html-view')
    ->withFrom('[email protected]')
    ->withTo('[email protected]')
    ->withSubject('Message subject');
    
$mailer->send($message);

Mailer implementations

Testing

Unit testing

The package is tested with PHPUnit. To run tests:

./vendor/bin/phpunit

Mutation testing

The package tests are checked with Infection mutation framework with Infection Static Analysis Plugin. To run it:

./vendor/bin/roave-infection-static-analysis-plugin

Static analysis

The code is statically analyzed with Psalm. To run static analysis:

./vendor/bin/psalm

License

The Yii Mailer Library is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.

Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].