fond-of-spryker / smtp-mail
n/a
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 2 638
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- spryker/glossary: ^3.0.0
- spryker/mail: ^4.0.0
- spryker/zed-request: ^3.0.0
Requires (Dev)
- codeception/codeception: ^2.3
- mikey179/vfsstream: ^1.6
- php-coveralls/php-coveralls: ^2.0
- phpro/grumphp: ^0.14
- sebastian/phpcpd: ^4.0
- spryker/code-sniffer: ^0.11
README
Extends the default Spryker mail module with smtp functionality.
Install
composer require fond-of-spryker/smtp-mail
1. Extend MailDependencyProvider
Open your MailDependencyProvider, mostly stored in Pyz\Zed\Mail. Extend your MailDependency with the FondOfSprykerMailDependencyProvider instaead the SprykerMailDependency.
class MailDependencyProvider extends FondOfSprykerMailDependencyProvider
2. Set Configuration
Set the following variables to your ConfigFile like config_default_whatever.php
$config[MailConfigConstants::MAILER_SMTP_HOST] = 'localhost';
$config[MailConfigConstants::MAILER_SMTP_PORT] = 25;
$config[MailConfigConstants::MAILER_SMTP_USER] = 'JohnDoe';
$config[MailConfigConstants::MAILER_SMTP_PASSWORD] = 'password';
You can extend the configuration by yourself. Take a look into FondOfSpryker\Zed\SmtpMail\MailDependencyProvider