PHPackages                             ride/lib-mail - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. ride/lib-mail

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

ride/lib-mail
=============

Mail library of the Ride framework

1.0.0(9y ago)05.6k10MITPHP

Since May 28Pushed 9y ago8 watchersCompare

[ Source](https://github.com/all-ride/ride-lib-mail)[ Packagist](https://packagist.org/packages/ride/lib-mail)[ RSS](/packages/ride-lib-mail/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (10)Used By (10)

Ride: Mail Library
==================

[](#ride-mail-library)

Mail library of the PHP Ride framework.

What's In This Library
----------------------

[](#whats-in-this-library)

### MailAddress

[](#mailaddress)

The *MailAddress* class is used to deal with email addresses. All recipients of a *MailMessage* are set with this class. It allows straight email addresses but also addresses in the format of *name* .

### MailMessage

[](#mailmessage)

The *MailMessage* class is a data container of the mail to send. You can set the recipients through the To, CC and BCC field. You can flag a message as an HTML message, add attachments and more.

### MimePart

[](#mimepart)

The *MimePart* class is internally used to add attachments to a *MailMessage*. You can use it manually to create a custom multipart message.

### Transport

[](#transport)

The *Transport* interface offers a way to implement the actual sending of a mail. It's also the starting point when you want to send a mail with this library as it also acts as a factory for messages.

A generic implentation is provided is this library through the *SimpleTransport* class. This uses the PHP functions to send a mail.

### MessageParser

[](#messageparser)

The *MessageParser* class is a helper for the *Transport* implementations. It takes a *MailMessage* and extracts all information into a structure which can be used by the transport.

Code Sample
-----------

[](#code-sample)

Check the following code sample to some of the possibilities of this library.

```
