This project is not covered by Drupal’s security advisory policy.

Replaced by: 

A direct successor to Symfony Mailer maintaining as closely as possible the same features, behaviour and conventions. Uses the existing API with the inherent limitations. Choose this option if you want stability, with minimum change from swiftmailer.

A new mail-system with new API giving direct support modern email features such as HTML, CSS styling and file attachments. The UI allows extensive and customisation of many headers/attributes of emails. A back-compatibility layer gives decent support for the existing API but it's not as close as DSM-Lite (above).

This module provides a deep integration into Drupal mechanisms, including theme/template/render, multi-language, CSS libraries, configuration, plug-ins, hooks, and logging. Choose this option if you want new features.

This module is unsupported due to a security issue. See Swift Mailer - Moderately critical - Access bypass - SA-CONTRIB-2024-006 for more details.

Warning: the swiftmailer library is no longer maintained and so this module is obsolete.

The Drupal Swift Mailer module extends the basic e-mail sending functionality provided by Drupal by delegating all e-mail handling to the Swift Mailer library. This enables your site to take advantage of the many features which the Swift Mailer library provides, such as:

  • Sending e-mails directly through a SMTP server of your choice, a locally installed MTA agent such as sendmail.
  • Sending HTML (MIME) e-mails.
  • Adding file attachments to e-mails.
  • Adding inline images to e-mails.

The module also lets you theme e-mails so that they reflect the general look and feel of your site and at the same time appear correctly in various e-mail clients. Images required by the theme can be attached to the e-mail and displayed inline.

The module is also capable of automatically creating a plain text version based on the HTML version of an e-mail.

The Swift Mailer module depends on the mailsystem module. This module is responsible for actually making the Swift Mailer module available to Drupal. Furthermore, you are also required to download the Swift Mailer library to get up and running with this module.

7.x - Supported SwiftMailer Versions
The Drupal 7 version only supports SwiftMailer 5.x, see #2975488: update version 6.x swiftmailer

Supporting organizations: 

Project information

Releases