I
I
Igor2017-12-15 19:45:15
Drupal
Igor, 2017-12-15 19:45:15

Drupal8 emails end up in spam. How to fight?

I send emails using the SwiftMailer module, but some users' emails end up in spam, for example, those who are registered on gmail.com.
Letters are sent like this:


$mailManager = \Drupal::service('plugin.manager.mail');
....
$result = $mailManager->mail($module, $key, $to, $langcode, $params, NULL, $send)
;
and are formed via hook_mail

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
archelon, 2017-12-15
@archelon

Try sending via SMTP.
If already, check if spf, dkim, dmarc are configured correctly.

A
andead, 2017-12-15
@andead

https://www.mail-tester.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question