https://github.com/g4code/mailer
https://github.com/g4code/mailer
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/g4code/mailer
- Owner: g4code
- License: mit
- Created: 2016-02-10T08:46:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-07-31T12:50:33.000Z (11 months ago)
- Last Synced: 2025-10-11T04:04:53.197Z (9 months ago)
- Language: PHP
- Size: 46.9 KB
- Stars: 0
- Watchers: 10
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mailer
======
> mailer - [php](http://php.net) library
## Install
Via Composer
```sh
composer require g4/mailer
```
## Usage
```php
"smtp",
'adapter' => "smtp",
'params' => [
'host' => "smtp.example.com",
'port' => "587",
'connection_class' => "plain",
'connection_config' => [
'ssl' => "tls",
'username' => "smtp_username",
'password' => "smtp_password"
]
]
];
// Create message
$message = new \G4\Mailer\Message(
'receiver@example.com',
'sender@example.com',
'Email subject',
'This is a html email part',
'This is a text email part'
);
// Create mailer instance
$mailer = \G4\Mailer\Mailer::factory($options);
// send message
$mailer->send($message);
?>
```
## Development
### Install dependencies
$ make install
### Run tests
$ make test
## License
(The MIT License)
see LICENSE file for details...