Questions tagged [emails]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
23 views

adminimal theme tpl

I'm having hard time with the inserting entity token to my mailchimp template. Created a content type, newsletter, with title and body (long text and summary) fields. Created a new view mode with ...
Efe's user avatar
  • 45
4 votes
3 answers
2k views

Trigger Emails/Handlers on Webform submissions update

Is there a way to trigger the Emails/Handlers, When webform submission has been updated. I'm using webform_mailchimp as a handler. When I'm submitting a new record, handler is working fine and I can ...
batMask's user avatar
  • 380
1 vote
1 answer
1k 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 ...
Nikos Houssos's user avatar
1 vote
1 answer
286 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 ...
Leduec's user avatar
  • 13
1 vote
1 answer
604 views

How to right-to-left emails are right-aligned?

In my Drupal 8 site, I am using Arabic email for sign up, log in, forgot password. I get Arabic email content, however, the email content is left aligned. I am using PHP Mailer on my site for sending ...
salu's user avatar
  • 119
0 votes
0 answers
50 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 ...
Abdul Rehman's user avatar
0 votes
2 answers
2k 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 ...
Koen Cornelis's user avatar
1 vote
2 answers
2k 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 ...
Sam's user avatar
  • 819
0 votes
1 answer
36 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'...
vfclists's user avatar
  • 1,269
0 votes
2 answers
776 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, ...
Ravi's user avatar
  • 25
1 vote
0 answers
37 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 ...
frederickf's user avatar
0 votes
1 answer
991 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/...
Ravi's user avatar
  • 25
0 votes
2 answers
35 views

Rule to deselect checkbox item?

I have a mailchimp subscription content type that add a user to the email list in mailchimp. It works great and adds them to the list. However, I want deselect that checkbox when they fill out a ...
timwhelan's user avatar
  • 258
1 vote
2 answers
41 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 ...
Mahtab Alam's user avatar
2 votes
1 answer
2k views

How can I get the customer name in an order confirmation e-mail?

How can I get the customer name from the billing information variable in the commerce-order-receipt.twig.html template file used in the order confirmation e-mail?
1 vote
1 answer
46 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 ...
Chris Gatherer's user avatar
0 votes
1 answer
127 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 ...
chalo's user avatar
  • 431
-4 votes
1 answer
127 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? ...
Jessy's user avatar
  • 125
3 votes
2 answers
1k 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 ...
user71007's user avatar
0 votes
1 answer
41 views

Fatal error: Cannot redeclare casa_views_post_execute

I understand this to be two declarations of the same function, which is not allowed. But how to fix this? Everything was fine until I started to enable the MailChimp module, then the backend has this ...
CodeChick's user avatar
3 votes
1 answer
1k 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-...
Janice Gallant's user avatar
1 vote
2 answers
1k 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 ...
usernameabc's user avatar
  • 2,696
0 votes
2 answers
81 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 ...
donquixote's user avatar
  • 3,632
0 votes
1 answer
211 views

How to solve error filter_mailchimp_campaign plugin does not exist?

I have a D8 website which gives a error: Er is onverwacht een fout opgetreden. Probeer het later nog eens.</br></br><em class="placeholder">Drupal\Component\Plugin\Exception\...
Justme's user avatar
  • 1,248
0 votes
1 answer
37 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?
Vicky's user avatar
  • 1
0 votes
1 answer
29 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, ...
A.Sana's user avatar
  • 147
3 votes
1 answer
5k 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 ...
Yoosuf's user avatar
  • 141
0 votes
1 answer
2k views

How to sign emails to setup DKIM and DMARC

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 ...
Yoosuf's user avatar
  • 141
2 votes
1 answer
3k views

Why does Swift Mailer not 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 = ...
gbmapo's user avatar
  • 1,066
0 votes
0 answers
388 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 ...
Henrique Moreira's user avatar
3 votes
1 answer
634 views

How to send multiple emails after creating a node

I'm using SMTP module to send e-mail messages after creating nodes. It takes about 3-4 seconds to send each such message using hook_node_insert. So if I want to send 10 messages, then I have to wait ...
Jonh's user avatar
  • 777
0 votes
2 answers
3k views

SMTP Error: Could not connect to SMTP host

We have a new Drupal 8 site and are having issues with the SMTP module. The account we are using to send email works successfully on our Drupal 7 sites and in other cases, but we cannot get it to work ...
phandolin's user avatar
  • 235
1 vote
1 answer
733 views

How to bypass HTML mail for specific Webform

I have configuration Mailsystem to send all webform emails as HTML, I thought I could use the "key" in mailsystem's configuration to specify which webforms' submissions get sent as HTML or plain text. ...
Duncanmoo's user avatar
  • 2,931
-2 votes
3 answers
486 views

How to create a rule to email all users with a profile field X with same value as the current-user?

I'm using Drupal 7.57 and I have 2 roles in my website, role X and role Y. I want to compare a field (field_code_postal) of the X member profile of the current-user, with the fields (...
Quentin's user avatar
  • 23
1 vote
1 answer
276 views

Simple form builder

I want to allow website managers(editors) to build custom forms: Editors should be able to create a form with a few text fields and specify the recipient emails. Form should send email with fields ...
milkovsky's user avatar
  • 5,334
0 votes
3 answers
572 views

Redirect to page after Simple News subscription

I wish to redirect the user to a specific page once they have inputted their email and pressed subscribe. Does anyone know how to achieve this please? I have found the setting to achieve this but ...
drupalhgy's user avatar
  • 125
2 votes
1 answer
5k views

Html mail gets broken by new lines

I am using the Mail system and the Swift mailer* modules to send HTML emails. I then implemented a custom module to send HTML newsletters to users, and I noticed the emails didn't look as expected: ...
Bassem Mohamed's user avatar
0 votes
1 answer
570 views

How to remove link to personal contact form from tabs block?

I created a link to personal contact form in page content, and I want to remove it from tabs. How to do that without breaking functionality?
Crantisz's user avatar
  • 251
-1 votes
2 answers
701 views

How can I create a newsletter with the last five news nodes?

I need to create a newsletter where І can send the latest five news nodes in Drupal 8. Maybe you can recommend any module or custom method. I tried to use the Simplenews module, but with Drupal 8 ...
Саша Гнасюк's user avatar
1 vote
1 answer
445 views

How to send an e-mail to a user selected in a webform via a user reference field?

I have a webform, that the HR use. I have a form component of the users, that is a user reference field. I would like to use Webform Rules to send an e-mail notification to the selected user. If I ...
buboreka's user avatar
  • 115
1 vote
1 answer
249 views

How to send auto email for new unapproved comments?

How do I config to send auto email for new unapproved comments. I enabled the comments module and anonymous user can create comments in some content types. But, I want to receive in an specific ...
Carlos's user avatar
  • 740
1 vote
1 answer
27 views

How to avoid Rules adding blanks to eMail Id subscribed via Simplenews?

The following rule works fine, only it adds always a blank before and after the emailaddress in the database table . And that gives an error when sending the newsletter. { "...
jimi's user avatar
  • 331
2 votes
2 answers
2k views

How do I send an email to all users with a particular role? [closed]

This was quite straightforward in Drupal 7 as I recall but, with Drupal 8 there's a lot of info I don't understand as a site builder that I am being asked to provide when creating a new rule. I'd ...
iainH's user avatar
  • 1,374
0 votes
1 answer
160 views

How to send an email once a new member is invited using the Group module?

I am using the Group module on a Drupal 7 project. I would like the system to send an email notification once a new member is invited. I'm assuming I could use the Rules module to perform this task, ...
Kenyon Johnston's user avatar
0 votes
1 answer
496 views

How do I send a customized email to subscribed users?

I have a post job content type. When an employer posts a job, all the registered users, basing on the job category (taxonomy), should receive an email about the posted job. How should I implement ...
Sammy Gituko's user avatar
0 votes
1 answer
321 views

what's are these "@name" and "@site-name" token-things in email_example.module and how do they work?

In the dgo.to/example module's email_example.module's hook_mail() function there's this line: $message['body'][] = t('@name sent you the following message:', array('@name' => $user->name),...
alec's user avatar
  • 178
0 votes
0 answers
212 views

HTML emails in Drupal 8.4

Some users (not admins) on our system are not having their password reset links sent by _user_mail_notify('password_reset', $account, $langcode) work properly. A suspicion is that their e-mail clients ...
saramm1's user avatar
  • 727
1 vote
1 answer
335 views

Add priority headers

I realize priority headers are something of the past for the most part, but I was wondering if it's possible to add additional headers (eg. Priority Flag) to an email sent from Webform (Drupal 8 ...
B.Friddy's user avatar
1 vote
1 answer
3k views

Sending smtp email using mail()

I have installed and configured https://www.drupal.org/project/smtp module sending test email works fine, but when sending email with code nothing is sent and also no log in drupal (I have enabled ...
Abdullah Alsigar's user avatar
0 votes
0 answers
223 views

SMTP : Email are not getting delivered

I have a SMTP Authentication Support 7.x-1.0 module in D7. Its enabled and configured correctly with permissions. Emails are not getting delived, I dont know what is the issue here. Am I missing ...
Mangesh Sathe's user avatar

1 2 3
4
5
28