Hi again,

Was wondering if you would consider making it possible to install this module via the non developer route of module and library installs in Drupal for us designers and builders. Module being enabled, sendgrid API library being put into libraries directory, api key being entered in third party system - and that's it.

Therefore making the composer manager an alternative method of install for non-drush and composer users?

Many thanks for your time

Comments

kingfisher64 created an issue. See original summary.

Perignon’s picture

Hello,

No, I had not planned on supporting libraries install method because D8 also requires Composer to operate as well. I had thought about it but canceled the idea since I have other higher priority work, such as porting to D8. And comparatively, Composer is FAR easier to use than the old method of using the libraries module. If you have Drush available, I would suggest using it. I can also maintain the API compatibility better with Composer than I can with Libraries. Libraries will not retrieve new versions of code for you.

kingfisher64’s picture

I see, will have a look at how to get this setup and installed. Do have a vps with command line access - used to have drush for drupal 7 working on an old server tried drush with drupal 8 but didn't get that working.

Tutorial time :)

Thanks for replying

Perignon’s picture

Make sure you use dev-master for Drush with Drupal 8 or at least Drush version 8.0.5.

The easiest way to use Drush is to install it globally with Composer, IMHO. http://www.drush.org/en/master/install-alternative/

Setting up Composer is also super easy, but if you are using a VPS I am willing to bet Composer is already setup for you.

kingfisher64’s picture

got this working. when a field is left blank like reply to the following is output. only a small issue.

Notice: Undefined index: fromname in sendgrid_integration_test() (line 27 of sites/all/modules/sendgrid_integration/sendgrid_integration.admin.inc).

thanks for the module.

Juc1’s picture

HI all,

"Installation" on https://www.drupal.org/project/sendgrid_integration says "4. Update dependencies via Drush and Composer Manager" - can anyone please provide some more detailed installation instructions for people who have not used Composer before ?

Perignon’s picture

Composer manager allows you to run composer commands within the confines of Drupal. I guess it isn't very well documented in Composer Manager. It's located in their documentation, but rather suttle.

It's basically this:

drush composer-manager COMMAND OPTIONS

Where command and options is composer command and options. Composer has extensive documentation.

To perform an update you would:

drush composer-manager update

Within your Drupal instalation.

  • Perignon committed e3a702b on 8.x-1.x
    Issue #2686377: Add links to Composer and Composer Manager documentation...

  • Perignon committed e3a702b on 7.x-1.x
    Issue #2686377: Add links to Composer and Composer Manager documentation...
Perignon’s picture

Added links to README.

Perignon’s picture

Status: Active » Closed (fixed)
kingfisher64’s picture

Should have probably added that it's basically

"composer require fastglass/sendgrid" in sites/all/

https://packagist.org/packages/fastglass/sendgrid

Perignon’s picture

Yeah I can add that to the Readme. But you still have to use Composer Manager module so that the libraries get loaded into Drupal properly since D7 doesn't have native Composer support like D8 does.

maxplus’s picture

Hi,
maybe interesting for people that have shared hosting without command line access and they can not use Composer Manager but they really want to use Sendgrid.

You can also use Sendgrid in combination of the SMTP Authentication Support module (https://www.drupal.org/project/smtp).

All info is found here: https://sendgrid.com/docs/Integrate/Open_Source_Apps/drupal.html

Summary:
Open your modules page, find the SMTP module, and configure it with the following settings:

  • SMTP Server - smtp.sendgrid.net
  • SMTP Port - 587
  • Use Encrypted Protocal - No. If you want encryption choose “Use SSL” and set SMTP Port to 465
  • Username - SendGrid Username
  • Password - SendGrid Password
wibcon’s picture

@Kingfisher64 thanks for posting

composer require fastglass/sendgrid

The command drush composer-manager update --no-dev was not working to install the sendgrid_integration API. I used drush composer-manager require fastglass/sendgrid and was able to install the sendgrid_integration module.

Spanners’s picture

Confirming that this worked for me also.

composer require fastglass/sendgrid

gatorjoe’s picture

Also confirming #15. Unable to use the readme instructions to install, but drush composer-manager require fastglass/sendgrid does work.

thechanceg’s picture

Confirming that #15 works while the command listed in the readme does not.

coderider’s picture

Confirming that #15 works while the command listed in the readme does not.
But lost more than 8 hours only because of not well documented readme

cycas’s picture

+ another one for #15. This is quite a headache to set up. Flashbacks to 2005.

devad’s picture

Just cross-posting for those who need.

D8 version can be used without composer as well - with the help of Ludwig module.

Here is the most recent update:

#3174909: Fix and update Ludwig integration