Answer the question
In order to leave comments, you need to log in
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)
Answer the question
In order to leave comments, you need to log in
Try sending via SMTP.
If already, check if spf, dkim, dmarc are configured correctly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question