Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Drupal core uses email for a number of important tasks, such as verifying authenticated users' email address.

0
votes
1answer
18 views

Conditional email is not sent

I have a configured an email handler with the condition that an email message must be sent when a submission is updated by filling an image file field (the image file field has to be "filled"), but ...
0
votes
0answers
8 views

Why updated Mime mail module sending mails with attachment?

Recently we have updated Mime mail module and after that all the emails of our website is sending with an attachment named attachmet.dat. Can anyone help me to resolve this issue. That file has ...
1
vote
1answer
22 views

Attach file to email

I have a site with a webform, which when submitted sends an email. The form has a file upload which should then attach the file as an attachment to the email. I'm not getting any attachment. I've ...
1
vote
1answer
35 views

Emails aren't sent [closed]

I have Drupal Open Social distribution running in Compute Engine on Google Cloud. Compute Engine is essencially a virtual machine, very similar to Amazon EC2. I have installed the SMTP Authentication ...
0
votes
0answers
19 views

Formatting an email address from a related entity with spamspan

I have a node with a related node, which is a contact person. That related node has an email address. I'm trying to output that email address using spamspan. In the custom module, I'm able to get the ...
0
votes
2answers
28 views

Translations string email not work

in D8 (multilanguage site, with two languages) i wanna send email for registration, etc by user preference of language of user (People -> Edit people -> Language Settings) I've enabled all modules ...
1
vote
2answers
34 views

How to send the emails related to the user account in HTML?

I want to send the emails related to the user account in HTML version: forgotten password new account account canceled ... If I make a copied paste of my HTML code, it does not work. /admin/config/...
-1
votes
1answer
44 views

How to send formatted html email using swiftmailer?

How can I send styled html body using custom module to send an email. I am using swiftmailer module. With that I am able to send normal body, but I am not able to use html tags or css. How can I do ...
0
votes
0answers
8 views

Drupal sending multiple “From” in welcome email after PHP upgrade

We upgraded our Drupal installation (D7) from PHP V5.4 to V7.0.11. Now when Drupal sends a welcome email there are two "From" headers: noreply@domain.com (correct) and ly@domain.com The emails are ...
0
votes
0answers
10 views

drupal_mail and DSN (Delivery Status Notification)

I need to set-up DSN using drupal_mail or mail_alter hook but cannot find solution for this anywhere. I know from technical point how it should be done but cannot make it work. I'm trying do something ...
1
vote
1answer
69 views

Swiftmailer module installation fails although the swiftmailer external library is installed

I am trying to install the Swiftmailer module on Drupal 8, but I get the following error. Swift Mailer requires the external Swift Mailer library. The recommended way of solving this dependency is ...
0
votes
0answers
10 views

Specifying an STMP server with SimpleMail module

I am using the SimpleMail module to send an automated email when a CRON job completes. It has been working find for several days and has suddenly stopped send although the CRON job is working fine. ...
1
vote
1answer
24 views

Why wrap lines in plain emails?

Drupal adds line breaks after a width of 77 in the function wrapMailLine() of the class core/lib/Drupal/Core/Mail/MailFormatHelper.php. What is the reason for that? If you open the mail in a small ...
1
vote
1answer
50 views

How to arabic emails are right aligned

In my drupal8 site iam using arabic email for signup,login,forgot password etc.I have get arabic email content.The email content is left aligned.I am using PHP Mailer in my site to sending emails....
0
votes
0answers
18 views

Email gets empty values

I have created a web form form and configure email setting for that but it sends the empty values in the email. Here's my form: http://www.harvardstreet.org/request-appointment Here's my form ...
0
votes
1answer
63 views

Use of Twig template for webform email

I'm trying to help my father out by building a webform (D8 version) for the 4 theaters his Old Abbey Friends are putting up. I've made the webform, now i'm setting up an email handler so that ...
1
vote
2answers
71 views

Encode a line break in an HTML email sent by Rules?

I have a rule that sends out an email when a node gets edited in a certain way. The rule fills the body of the email with the value of a <textarea> field from the node that was updated. The ...
0
votes
0answers
35 views

Passing field values to hook_mail_alter()

I'm new to Drupal so I'm sure this is a simple question for some. I looked around but I keep finding either D6 or D7 solutions. Nothing on 8. This is what I have in my form alter. if ($form_id == '...
0
votes
1answer
21 views

What configures Drupal to send emails on the create or update of an unpublished content? [closed]

My Drupal installation attempts to send emails to a number of users whenever I create or update content but do not publish it. But because sending email is not configured errors are generated. I don'...
0
votes
0answers
19 views

Custom template for registration mail

I have a custom template that I use to send all my mails, and I want to use it too for the registration and password reset mail. I only know how to use hook_mail_alter(), but it seems that hook allows ...
0
votes
0answers
22 views

Send email using emails from webform values

I am using webform and webform workflow; I want to be able to send out emails to the emails addresses the user inputs in the form once the status of the webform is changed. I am trying to do it with ...
0
votes
2answers
44 views

How can I get the uploaded file path of a contact form in drupal 8

I'm using the hook_mail_alter() to create a custom email for contact forms. I was able to get the fields labels and values and use a twig template to send the email. Most of it is working just fine, ...
1
vote
0answers
27 views

Is it possible to cancel the creation of user without triggering an error?

I have a problem with account creation spam, in which a bot or other bad actor tries to create accounts using somebody elses email address. The owner of the email address flags the verification email ...
0
votes
0answers
14 views

Sending .ics attachment using drupal_mail() function [duplicate]

I am using Drupal 7, with the Mimemail and HTML mail modules enabled. I have some PHP code running on the background of a template file, and I am trying to send an email with a file of extension .ics ...
0
votes
1answer
127 views

How can I get the Contact Form “Manage Display” Settings programmatically?

I am trying to use hook_mail_alter to create a custom contact mail. I want to get the display setting of the contact form. (example path: http://mysite/admin/structure/contact/manage/my_contact_form/...
1
vote
1answer
27 views

How to send an email to multiple recepient with contact form?

I want to send an email to multiple recepients when the contact form is submitted. By default when contact form is submitted it is sending mail to default email id which is saved in system ...
1
vote
1answer
32 views

HTML removed from email using MailSystem and MimeMail

I am trying to send an email with a small html form of hidden fields and a submit button. I have been piecing this together from several very incomplete answers and documentation sources that take ...
0
votes
0answers
23 views

Send email without “to”

I would like to send an email to several users at once, so I need use "Bcc". I've tried the "'undisclosed-recipients:;'" sentence. Am I doing something wrong or that error is unavoidable? Emails get ...
0
votes
0answers
14 views

Custom created tokens are not replacing values when used in Rules->Action as email receiver

I'm trying to assign values from my custom created token called [custom:email] as the email receiver in Rules under Actions->Elements->Send Mail Following is described how I'm trying to achieve ...
1
vote
0answers
148 views

How to get the customer name in Commerce order confirmation e-mail?

How can I get the customer name from the billing information variable in the commerce-order-receipt.twig.html template of the Drupal 8 Commerce order confirmation e-mail?
0
votes
0answers
18 views

Inconsistent style for emails sent by rule?

I have a rule configured to fire off an email when the nightly cron tasks runs. So, every 4 a.m. an email gets sent out. If I trigger the rule by running cron manually, the resulting email has the ...
1
vote
1answer
31 views

Rules module doesn't send emails to user roles once conditions are met

I'm working in drupal 7 and I've configured the rules module to send emails you specific user roles when content is created. For some reason I'm getting inconsistent results, sometimes not receiving ...
0
votes
1answer
13 views

mailsystem module does not appear in the selection field for HTML Mail module class

when I go to the mailsystem module configuration, only two selection fields appear I do not know why this behavior can be given, there is some option that makes this disappear. I have installed the ...
-4
votes
1answer
40 views

Avoid undelivered mail returned to sender

I have a webform that sends emails to the user who completes it. When the wrong email address is entered, I receive an email whose subject is Undelivered Mail Returned to Sender. How can I avoid it? ...
1
vote
2answers
115 views

Send email to users after node update

I have a content type "Room" with this config: Title Body field_comments (Comments) field_members (Users Entity reference) When I create a room I send with hook_entity_insert() an email to users add ...
2
votes
1answer
37 views

Using Test Mail Collector to avoid sending emails to users during testing

This page offers some documentation on how to avoid sending emails to actual users during testing or in test environments: https://www.drupal.org/docs/develop/local-server-setup/managing-mail-...
1
vote
2answers
17 views

Why can't I save a Send HTML Email action in a Rules Component?

I have a rule component set up that currently sends an HTML email. I need to change the body of the email to include a new field, but when I do and press Save, it doesn't return to the Rule page, it ...
0
votes
0answers
18 views

Add more e-mail template options

Is there a way to add more e-mail templates so I can just type the content I want to be dynamic like this <p>Hey [submission:values:name]</p> <br> <p style="font-size: 1.1em; ...
1
vote
2answers
135 views

How to send an email to select set of users for moderation states?

We are using the following modules below for content moderation. Currently have we have 5 people with the Content Approver role and all of them are sent an email when a state transition occurs. There ...
0
votes
0answers
57 views

Changing SMTP server host

I am using a Windows 2008 R2 server using Acquia Drupal 7.55 and we changed SMTP server for sending emails. I changed the SMTP server IP under admin/config/system/smtp (SMTP Authentication Support), ...
0
votes
2answers
27 views

Send email to all users with specific role (updated privacy policy) [closed]

We want to send an email to all users of a given role, to let them know about an updated privacy policy. The filter by role allows to send different versions of the email to different roles.. not ...
0
votes
1answer
25 views

How can i prove that the activation link sent to subscriber (anonymous user) has actually been activated?

Where can i find a log entry or related information documenting that the activation link in the confirmation mail sent to simplenews-subscribers has been activated?
0
votes
0answers
119 views

swiftmailer & webform: custom template for specific forms

We are using drupal/webform and drupal/swiftmailer in a Drupal 8.5.3 installation. The mail system (/admin/config/system/mailsystem) is configured to use Swift Mailer for Formatter and Sender and we ...
0
votes
1answer
17 views

Contact form doesn't send mail

I am using the contrib contact module to add a contact form. I created a category in /admin/structure/contact to add the recipient. I added my person address mail (It's valid). When I test the form, ...
0
votes
0answers
16 views

Where to put class files required by MIME mail?

I want to enable html mail to use the Mime Mail external class to send HTML Mail. I have all the files but where do I have to place the files? I want to do it manually without having to run the ...
1
vote
1answer
308 views

How to add “Agree to terms” checkbox in Drupal 8 form

I've tried several solutions starting from the Boolean checkbox field in the Drupal 8 contact form to this answer, this answer and even this module but none of them work for me. Basically I just want ...
1
vote
1answer
129 views

How to sign emails to setup DKIM and DMARC for all Drupal 8 mails

After setting up my Drupal 8 site in the server, I noticed that none of the emails go to the inbox in Gmail and it all gets stored in Spam. Upon further investigation I found that this is because the ...
0
votes
1answer
59 views

Why does swiftmailer doesn't use my HTML template?

In some form of my custom module, a condition triggers an email to be sent: public function save(array $form, FormStateInterface $form_state) { $entity = $this->entity; $status = ...
0
votes
0answers
47 views

Special characters are incorrectly displayed in emails

I have a site with Drupal 8 and the Swift Mailler and Mail System modules. When I receive an email from that site, special characters are incorrectly displayed in emails. For example, L'équipe would ...
0
votes
0answers
110 views

Remove the Preview button on the Contact Form

In in Drupal 8.5 (Theme Bartik), although I disabled in the UI the Preview button, as shown in the picture below, it still shows up in the contact form page. Am I doing something wrong? How can I ...