I
I
Igor2017-06-24 08:33:01
Drupal
Igor, 2017-06-24 08:33:01

How to install drupal/swiftmailer in Drupal8?

I'm trying to set up sending emails via swiftmailer according to the instructions
https://niklan.net/blog/131
The command to install swiftmailer
composer require drupal/swiftmailer:~1.0 fails. It always gives the
following:
Problem 1
- The requested package drupal/swiftmailer could not be found in any version, there may be a typo in the package name.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
afi13, 2017-06-24
@pingvin156

You need to add the Drupal repository to your composer.json:
Or just add to the file:

"repositories": {
        "drupal": {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
    },

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question