I am a very grateful user of Backup and migrate, and it works flawlessly in a shared server.

Nevertheless, I am also usint it in a local server (without mail server) configured to send mail through SMTP Autentication Support module.

All the text mails generated by drupal are sent properly, but the backup mails generated by Backup and migrate are not sent.

Could anyone tell me whether Backup and Migrate is compatible with STMP Authentication Protocol?

Thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

samyue’s picture

yes, I have same problem. Looks like Backup module still use the php's mail() function to send email.

kkrehl’s picture

Title: mail destination works with SMTP Authentication Support module » Mail destination does not work with SMTP Authentication Support module
Version: 7.x-2.1 » 7.x-2.4
Category: support » bug

Looks like the problem still persists.

Anonymous’s picture

This is still a problem.... can anyone help?

PatchRanger’s picture

Title: Mail destination does not work with SMTP Authentication Support module » Mail destination does not work with SMTP
Version: 7.x-2.4 » 7.x-3.x-dev
Component: Miscellaneous » Code
Status: Active » Needs review
FileSize
2.45 KB

I have found a workaround: integration with Swiftmailer, which has support for both SMTP and attachments simultaneously.
Please review the patch, which tends to eliminate the issue by such integration - so anyone who is interested in sending via SMTP will use Swiftmailer while the module continues to work as expected for others who aren't interested in such functionality.

How it works:
1) Apply the patch.
2) Download and install Swiftmailer basing on its installation instructions.
3) Setup Swiftmailer as default mail system.
4) Configure Swiftmailer via its UI.
5) Get rid of SMTP Autentication Support module as it is not needed anymore.
That's it! Now you will get your backups to your mailbox, which are sent through SMTP server of your choice.
Hope it is going to be incorporated into B&M code base.

FranciscoLuz’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Applying the patch and following the instructions at #4 fixed the issue.

DamienMcKenna’s picture

FYI even the backup failure/success messages are sent directly via the mail() function, so I opened a new issue to replace it with drupal_mail(): #2498179: Use drupal_mail() for system notifications

couturier’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

Is this patch ready to be ported? Note that it may need to be rewritten based on the newest 7.x-3.2 release.

DamienMcKenna’s picture

Status: Patch (to be ported) » Needs review

The patch still applies cleanly to the 7.x-3.x branch.

couturier’s picture

Looks like users in comments #4 and #5 applied the patch successfully. Do we need more reviews?

DamienMcKenna’s picture

Title: Mail destination does not work with SMTP » Add support for the Swiftmailer module
Alex Andrascu’s picture

RTBC anyone please ?

DamienMcKenna’s picture

I'd really like someone to explain whether this is still needed after #2498179: Use drupal_mail() for system notifications was committed. Thanks.

couturier’s picture

Swiftmailer is in beta for D8 but has had no new recommended releases in a year. It does appear that someone is still working on D8 development versions, but I am in favor of closing this feature request given the ever-increasing need for a stable Backup & Migrate release for D8 and the limited resources to devote to duplicating functionality that already exists, as you pointed out.

DamienMcKenna’s picture

Closing this feature request would be the wrong approach to take just because there's a D8 version available. Lets see what the testbot says and go from there.

BrankoC’s picture

In 7.x-3.x, Warning: mail(): Multiple or malformed newlines found in additional_header in mime_mail->send() was committed. That patch replaces mail() by drupal_mail() for mailing out back-ups. Would that fix this problem?