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
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedLet'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.
Comment #2
franzCurrently, it depends on PHP Mailer library, which is LGPL, and I think that would block it from being shipped with core, right?
Comment #3
scyllar CreditAttribution: scyllar commentedThe SMTP is very important, please make it core. As far as I know, joomla just allows smtp since a long time ago.
Comment #4
Damien Tournoud CreditAttribution: Damien Tournoud commentedDrupal 7 is feature frozen at this point.
Comment #5
oadaeh CreditAttribution: oadaeh commentedI'm guessing this is a duplicate of #28604: Separate mail backend.
Comment #6
pillarsdotnet CreditAttribution: pillarsdotnet commentedSee related:
#1135262: drupal_mail() should support using different MailSystemInterface classes for format() and mail()
#1089956: Provide Administrative UI and Developers API for safely setting the mail_system variable.
Comment #7
franzD7 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
Comment #8
sunAn 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+.
Comment #9
franz@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 ).
Comment #10
BeatnikDude CreditAttribution: BeatnikDude commented+1 for SMTP in core
Comment #11
timb CreditAttribution: timb commentedI would like to see an SMTP solution in core by Drupal 8
Comment #12
ParisLiakos CreditAttribution: ParisLiakos commentedunfortunately we are in feature freeze, so i guess it falls into D9 now
Comment #13
darol100 CreditAttribution: darol100 as a volunteer and commentedWhat about try this features for 8.1.x instead of moving to D9 ?
Comment #16
heddnMight not be a bad idea to move this over to another queue?
Comment #17
Shyamala CreditAttribution: Shyamala at UniMity Solutions Pvt Limited commentedPlus one to have this in d8 core!
Comment #18
yoroy CreditAttribution: yoroy at Roy Scholten commentedThis 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?
Comment #19
heddnWell, 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.
Comment #20
BerdirWe already have #1803948: [META] Adopt the symfony mailer component and a few other issues to do that.
Comment #21
yoroy CreditAttribution: yoroy at Roy Scholten commented#19 sounds like "because we can" :) #1803948: [META] Adopt the symfony mailer component already does a good job explaining the benefits of swiftmailer though.
Comment #22
Grayside CreditAttribution: Grayside at Phase2 commentedCountless 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.
Comment #23
imclean CreditAttribution: imclean commented#18,
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.