Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/znframework/package-email
ZN Framework Email Package
https://github.com/znframework/package-email
Last synced: 9 days ago
JSON representation
ZN Framework Email Package
- Host: GitHub
- URL: https://github.com/znframework/package-email
- Owner: znframework
- License: mit
- Created: 2018-01-19T12:02:34.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2025-01-05T14:12:01.000Z (19 days ago)
- Last Synced: 2025-01-05T14:38:27.411Z (19 days ago)
- Language: PHP
- Size: 53.7 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
ZN Framework Email Package
Follow the steps below for installation and use.Installation
You only need to run the following code for the installation.```
composer require znframework/package-email
```Documentation
Click for documentation of your library.Example Usage
Basic level usage is shown below.```php
'smtp',
'smtp' =>
[
'host' => '',
'user' => '',
'password' => '',
'port' => 587,
'keepAlive' => false,
'timeout' => 10,
'encode' => '', # empty, tls, ssl
'dsn' => false,
'auth' => true
],
'general' =>
[
'senderMail' => '', # Default Sender E-mail Address.
'senderName' => '', # Default Sender Name.
'priority' => 3, # 1, 2, 3, 4, 5
'charset' => 'UTF-8', # Charset Type
'contentType' => 'html', # plain, html
'multiPart' => 'mixed', # mixed, related, alternative
'xMailer' => 'ZN',
'encoding' => '8bit', # 8bit, 7bit
'mimeVersion' => '1.0', # MIME Version
'mailPath' => '/usr/sbin/sendmail' # Default Mail Path
]
]);Email::from('[email protected]')
->to('[email protected]')
->send('This is Subject', 'This is message.');Output::display(Email::error());
```