fond-of-spryker/smtp-mail

2.0.0 2018-04-11 10:50 UTC

This package is auto-updated.

Last update: 2024-03-30 00:20:06 UTC


README

PHP from Travis config license

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