Skip to content
This repository has been archived by the owner on Nov 30, 2017. It is now read-only.

Introduce SendGrid Adapter #422

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions bundles/SyliusMailerBundle/your_first_email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ Let's say you want to send a notification to the website team when someone submi

You can do it in few simple steps:

Configure Your Adapter
----------------------

Sylius provide two adapters:
- ``sylius.email_sender.adapter.swiftmailer`` which is used by default and use ``SwiftMailer`` to send emails.
- and ``sylius.email_sender.adapter.sendgrid`` which use ``SendGrid`` to send emails.

In order to use the ``sylius.email_sender.adapter.sendgrid`` adapter, in your ``app/config/config.yml``, under ``sylius_mailer`` you should configure the sender adapter and sendgrid api:

.. code-block:: yaml

# app/config/config.yml

sylius_mailer:
driver: doctrine/orm
sender_adapter: sylius.email_sender.adapter.sendgrid
sendgrid_api: YOUR_SENDGRID_API_KEY


Configure Your E-Mail
---------------------

Expand Down