Well, I'm not so diving to much in Drupal core, but I'd like to suggest that we work on a solution for SMTP in core.

#331180: fix pluggable smtp/mail framework suggests we have changes on the mail system, so I will still go through the code to get to know it.

The reasons for this are that we have some real need for this support. As Dries himself pointed once, if you take a look at the usage statistics of http://drupal.org/project/smtp you'll see what I mean. Lot's of people depend on it.

I'm not necessarily suggesting that SMTP module gets in the core, specially because it relies on an external library, but perhaps we can implement if not all but most of the functionality it does (or what it's similar projects do).

Thougths?

Comments

Damien Tournoud’s picture

Status: Active » Postponed

Let's see what happens with the SMTP contrib module for Drupal 7. If it is revamped correctly (no feature creep, respect of coding standards, tests), it should be fairly easy to integrate into core.

franz’s picture

Status: Postponed » Active

Currently, it depends on PHP Mailer library, which is LGPL, and I think that would block it from being shipped with core, right?

scyllar’s picture

Version: 8.x-dev » 7.x-dev

The SMTP is very important, please make it core. As far as I know, joomla just allows smtp since a long time ago.

Damien Tournoud’s picture

Version: 7.x-dev » 8.x-dev

Drupal 7 is feature frozen at this point.

oadaeh’s picture

I'm guessing this is a duplicate of #28604: Separate mail backend.

franz’s picture

D7 version of smtp module have been clean up a quite a bunch and also now ships with the PHPMailer library. If anyone care to test it on D7, if the module get's functional and clean, should be a lot easier to integrate into core later.

http://drupal.org/project/smtp

sun’s picture

An implementation for core should be primarily based on http://drupal.org/project/phpmailer

Just had a quick look at SMTP module's implementation, and it still looks like it's missing some fundamentally required pieces, and at the same time, containing plenty of weird/undocumented processing and parsing code, which shouldn't be necessary in the first place.

The PHPMailer library is licensed under LGPL v2.1. According to Drupal's Licensing FAQ and GPL-Compatible Free Software Licenses, it is compatible with Drupal's GPL v2+.

franz’s picture

@sun

Then I guess we need to basically check for changes that need to be done on core first (maybe those on #6) and proceed to add the new module to core.

In the first batch of work, we can think of a proper way Drupal can have pluggable/flexible mail backends. Also, we need to make sure the system can also properly integrate with a solution for HTML/Multipart mail (like http://drupal.org/project/mimemail ).

BeatnikDude’s picture

+1 for SMTP in core

timb’s picture

I would like to see an SMTP solution in core by Drupal 8

ParisLiakos’s picture

Version: 8.x-dev » 9.x-dev

unfortunately we are in feature freeze, so i guess it falls into D9 now

darol100’s picture

Version: 9.x-dev » 8.1.x-dev
Issue summary: View changes

What about try this features for 8.1.x instead of moving to D9 ?

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

heddn’s picture

Project: Drupal core » Drupal core ideas
Version: 8.3.x-dev »
Component: mail system » Idea

Might not be a bad idea to move this over to another queue?

Shyamala’s picture

Plus one to have this in d8 core!

yoroy’s picture

Status: Active » Needs work

This needs an update to the issue summary:

Why is it a good idea to have SMTP in core? Not only looking at usage stats, but why should this be a core feature of a CMS framework? What problem does it solve for whom?

heddn’s picture

Well, symfony decided to add a full mail solution with http://swiftmailer.org/ into the default bundle of symfony. Seems like a full featured mail solution makes sense to include in core.

Berdir’s picture

We already have #1803948: [META] Adopt the symfony mailer component and a few other issues to do that.

yoroy’s picture

#19 sounds like "because we can" :) #1803948: [META] Adopt the symfony mailer component already does a good job explaining the benefits of swiftmailer though.

Grayside’s picture

Countless IT departments have this as a built-in practice for sending email, and having it be part of core saves research time to solve that problem for each new IT group that runs into Drupal. Not sure if that's sufficient to bring into Core, but it's the kind of functionality that changes slowly and tends to be enabled, configured, and ignored for site lifetimes.

imclean’s picture

#18,

Why is it a good idea to have SMTP in core? Not only looking at usage stats, but why should this be a core feature of a CMS framework? What problem does it solve for whom?

Email should really be relayed by mail servers, not web servers or CMSes. SMTP is the protocol for doing so. This improves reliability, deliverability and standards compliance. Even if your web server is your mail server you can send via SMTP to localhost.

This also allows the CMS to hand off mail delivery quickly so it can finish the current request rather than trying to send directly to remote servers during the request.

While the problem it solves may not be immediately obvious to everyone, it is a further refinement of how Drupal performs a specific task and will benefit a lot of users.

If SMTP itself is a step too far, an improved pluggable mail system would be a good first step.