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
0
votes
1answer
10 views

How to detect order type (recurring or not) in order confirmation and shipping confirmation email templates?

When order is placed an emails is sent to the user generated with template commerce-order-receipt--default.html.twig When order is shipped another email is sent to the user, now generated with ...
1
vote
1answer
23 views

How can I change the date format for user submitted data in confirmation emails

The confirmation emails sent by Webform (running under Drupal 8.9.7) on submission are in US format "m/d/Y" for all date fields that the user entered on the form (but not for system ...
2
votes
1answer
130 views

How do I modify the email maximum length to 320 characters?

I want to overwrite the maximum charcater limit to 320. It is defined in /core/lib/Drupal/Core/Render/Element/Email.php Can anybody tell me how to overwrite it?
1
vote
1answer
21 views

Sending form to mail from custom module fails without error

I've created a module with a form and a block. When I push the subscribe button, the submitForm function is executed. The successmessage is shown, but no e-mail is send ... There are no errors ...
0
votes
0answers
29 views

Send email notifications to Users who have flagged a node

For a site, I 'Events' which have a datetime field for the start time of the event. We also have 'Flags' to allow Users to add specific events to their calendar. Now, we would like to send Users email ...
0
votes
0answers
20 views

Mass Contact shouldn't be applying Glossify filter

I'm working on a Drupal 8 site which is both sending out emails with Mass Contact and uses the Glossify plugin filters in a different part of the site. However when sending emails using an "email&...
1
vote
1answer
195 views

How can I send a HTML email?

I am trying to send an email with HTML content. But Drupal is always scrapping my HTML tags. I see drupal formatting the message in this function: //Class: \Drupal\Core\Mail\MailManager // Format the ...
0
votes
0answers
27 views

Customize email template layout of built-in emails?

How to customize the layout of email templates of built-in emails sent by Drupal: Signup, Password Resetetc.. Currently it's sending plain template. I have tried with hook_mail() hook, but seems that ...
0
votes
2answers
35 views

How do I verify emails on a contact form?

I want to implement a functionality where anonymous users can contact node authors. I have created a contact form with email field for each node. I would like to send an email verification link to the ...
3
votes
0answers
41 views

How can I correctly attach a file to a mail? [duplicate]

I am very new to drupal and need to upload a file and sent it as attachment in Drupal 8. I have created the form element like $form['candidate_attachment'] = [ '#type' => 'managed_file', '#...
0
votes
1answer
19 views

Webform email with list of senders

I am build a webform to send emails. I have some user local accounts. I would like to login with personal user account and send an email, choosing from a list of possible senders. It is possible in ...
2
votes
1answer
98 views

How to send system mails in html format (with Swift Mailer)?

At Account settings page (/admin/config/people/accounts) I can edit system mails Drupal is sending (Welcome, Account activated, Account blocked and so on). I also installed and configured Swift Mailer ...
-1
votes
1answer
23 views

Alter Webform email body

I'm unable to find an example of altering the body of the Webform email confirmation according to the value submitted. I've got in my form a select field, I would like to change the body of the email ...
0
votes
0answers
23 views

Automate notification to Mailchimp

I am trying to automate a notification integration between Drupal8 and Mailchimp. I currently the Mailchimp module installed and a signup form has been configured so that people can signup for ...
1
vote
0answers
36 views

Using swiftmailer, how to check if an email was sent successfully?

For example, when Drupal core contact forms fail to send an email for any reason, swiftmailer throws an exception and logs a message. However, I am trying to hook into the process to display ...
0
votes
1answer
21 views

Testing if email was sent in Kernel test

I am trying to write automated tests for a or that will sent an email on submission. I can write the test to check for the presence of the entity that is created along side the email, but I also want ...
0
votes
0answers
15 views

Formatting labels of Webform2PDF for submissions

How would I go about changing style for all the labels for pdf generated from submissions to a webform. I could explicitly state each [submission:values:email:label] and then provide values with ...
0
votes
0answers
42 views

Entity reference will not render

I'm trying to show a list of entities (messages) in an email. I've got a field "messages" which is a list of entity references. This is using the message stack. I create a new message and set it's ...
0
votes
1answer
62 views

How do I send an email from a module using an Easy Email module email template?

I am creating a form that needs to send an email upon form submission. I want to use the Easy Email module to send HTML emails. I want to send an email from my module, using an Easy Email template. ...
0
votes
0answers
33 views

How to send emails locally from Acquia dev desktop

I want to send test emails locally. I am using Acquia dev desktop for local env. Drupal core-8.1.8 php-7.0.32 I tried using Smtp Authentication Support module with Mail system, Swift mailer with mail ...
0
votes
1answer
33 views

Sending multiple attachment files by email

I am trying to send multiple files attached to an email, but I can only make it work when only one file is attached. I am using mandrill mailer, btw. Here is the code I have on a form submit: $...
0
votes
0answers
37 views

How to fetch User from Entity Reference in Rules? (to obtain email from a user field)

I'm using an Entity Reference field with select list, target type User (so a user can be selected and saved as event organizer) How can I fetch the actual email (instead of name) so i can use it in ...
0
votes
0answers
53 views

Image is “broken” with Custom Email Twig Template sending with Webform

The setup consists of Drupal 8 + Webform (ver. 5.6 - https://www.drupal.org/project/webform/releases/8.x-5.6) + CKEditor Image Upload (https://www.drupal.org/project/ckeditor_uploadimage). This allows ...
0
votes
0answers
26 views

Simplenews can't send test mail

I am using Drupal 7 and I installed the module Simplenews to send newsletters. I put the file in sites/all/modules in my Drupal installation (local) and I activated the module. The content type ...
0
votes
0answers
43 views

Sending email from custom module

I've created my first Drupal 8 module which is a form that emails its output to a staff person. Everything works except for the email portion which doesn't throw any errors, but just doesn't do ...
0
votes
1answer
80 views

The email doesn't have the DKIM signature it would get from mail()

My web host (HostGator shared server) normally signs outbound emails with DKIM. When I send emails from Drupal 7.69 (and Webform 7.x-4.22 for compatibility with CiviCRM), however, there's no DKIM. ...
0
votes
0answers
63 views

User register with OTP via email (verfification code)

I'm using Drupal 8 and I have the following requirement: Once a user register, before logging in, they need to input a one time verification code received via email and NOT SMS. I've used the ...
0
votes
1answer
45 views

Extract email addresses from composite field type using Computed Twig

I am using a custom composite field type to gather multiple pieces of data from a user. This custom composite field type contains a field which gathers the email addresses entered. What I am trying to ...
-1
votes
1answer
25 views

Allow guests to subscribe to specific taxonomy terms and send them weekly updates/notifications

I would like to display a block to my visitors, where they can enter their email, name and a list of topics (taxonomy terms) they are interested in (e.g. "technology", "health", "science"). When ...
1
vote
1answer
81 views

How can I keep logs of all outgoing emails?

I am using SMTP Authentication Support module to send emails with drupal 8.When I see watcdog mail-log from admin it shows only emails sent for registration or password reset, that is also with single ...
1
vote
1answer
26 views

How to get one time URL when we are writing hook_mail_alter?

My Question is already present here but the previously given answer for my question can applied to Drupal 7 and I can not use the same solution in Drupal 8. I hope it is okay not put the same ...
0
votes
1answer
38 views

Email by Taxonomy Term

For Drupal 8 webform, I see there's a way to specify custom email recipients based on a Select component. But I don't see a Taxonomy term reference as an option in the email handler. Is there a way to ...
2
votes
0answers
134 views

How can I send mass emails as part of a bulk operation?

I have a view where the webform submissions of the site authenticated users are shown. In that view I have some bulk operations (created by me) that change the value of a field in these submissions (e....
-2
votes
1answer
40 views

Unable to send e-mail. Contact the site administrator if the problem persists (in my localmachine) [closed]

I am using drupal on local machine .I am getting this error as Error : Unable to send email The below is the report.
0
votes
0answers
18 views

How to catch exception if the destination mail id does not exist while sending mail through webform?

I'm sending mails on submission of a webform. The destination mail address is fetched from a custom email field in the form. On submitting, when the user enters a mail address, a custom mail would be ...
0
votes
1answer
34 views

Error when adding BCC to email handler with webforms and smtp

I use SMTP to handle emailing and Webform to generate my forms on a drupal just upgraded to 8.7.10 I have recently discovered an issue where webforms that have an emal handler set to include a BCC ...
0
votes
1answer
46 views

Load Media File in Webform Mail Handler

I want to use a single webform to send download links with specific media files to visitors that fill out that form. For example on an URL like this: https://example.com/downloads?media=1234 The ...
0
votes
1answer
40 views

How to send mail with third party domains?

I'm using mailsystem and Swift Mailer. Instead of paying for a professional service or self-hosting, I'd like my site email to be sent using my hotmail or another domain I control. Eg let's say my ...
1
vote
1answer
233 views

Why is the apostrophe converted to ' in account activation e-mail?

In admin/config/people/accounts, the body of Welcome e-mail is (my site in in French): user:display-name], Un administrateur sur [site:name] a créé un compte pour vous. Vous pouvez maintenant vous ...
0
votes
1answer
153 views

Render Twig template as XML

I want to send an XML mail using Drupal's mailManager. I have created a custom twig template in my module that will the the mail body. Here's what my template looks like, my-module-xml-mail.html....
0
votes
2answers
27 views

SMTP Authentication Support address/from name overwritten by Site Information

Pretty much as the title says really. I'm using the SMTP Authentication Support module to try and send account notification e-mails through our G Suite account. I've filled in a name and e-mail ...
0
votes
1answer
45 views

How to customize message in maestro mail notification

I am working on Maestro module. we have interactive tasks in the Maestro which are executed by the users to whom task is assigned. In Maestro, we can intimate the user by mail about the task assigned ...
0
votes
1answer
16 views

How do I map attachments submitted via mailhandler?

In Drupal-7 I'm reading an imap mailbox with mailhandler. I have the mapping setup via feeds. This processes text messages creating a node but messages with attachments don't have the attachments ...
-2
votes
1answer
37 views

Send welcome email on one time login via admin UI

I am Importing all my users into drupal but I don't want to send the welcome emails now. When the site goes Live I want to be able to push a button or perform an action which sends all the users the ...
1
vote
1answer
177 views

How do I use sendmail on Debian/Ubuntu to send emails without SMTP or other modules? [closed]

I have a Drupal 8 installation and it's not sending emails. I've configured postfix and tested using sendmail command line. PHPMailer module is installed via composer. When I submit passowrd reset ...
1
vote
1answer
45 views

Contact email flood limit is per whole system(application) or user/ip based?

I have a question with contact emails flood limit which is present in contact.settings.yml, the limit is going to for whole system(application-wide) or is it going to limit the number of emails per ...
0
votes
1answer
50 views

Modification of HTML mail template

I am using HTML Mail module. I have created an html email template specific to my form(webform) in the template folder of my theme directory. My form name is newsletter and the template name is ...
0
votes
1answer
240 views

How do I include data from the order item type fields in the order receipt email?

I have created an "Event Registration" product type and order item type. In the order item type, I added fields for the registrant's name and job title. How can I print the submitted values for those ...
0
votes
0answers
24 views

Rules action “Send Mail”: doesn't work for more than one recipient

I have installed Rules, Views Rules, Phpmailer. Test mail works. In a rule, I have three actions: 1) Send mail to a specific address: it works! 2) Send mail to all users of a role: it doesn't work ...
1
vote
1answer
82 views

Email misses fields from form [closed]

This is regarding a Drupal 8 site, specifically Drupal 8.7.1 and the "Contact" module (with Contact Emails, Contact Storage enabled). The issue that I'm running into is some of the fields are not ...

1
2 3 4 5
27