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.

2.0.0 2018-04-11 10:50 UTC

This package is auto-updated.

Last update: 2024-08-30 01:34:14 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