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
0answers
5 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
25 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
28 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
25 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 ...
-1
votes
1answer
21 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
0answers
37 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
17 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
22 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 ...
1
vote
1answer
25 views

How to send HTML email using Rules?

Does anyone know how to send HTML email using Rules? This was a pretty common task in D7 and I think the rule was included with the mimemail module. The D8 version of mimemail doesn't appear to have ...
2
votes
0answers
42 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
31 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
17 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
22 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
29 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
33 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
107 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
83 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
20 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
29 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
14 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 ...
0
votes
0answers
45 views

SMTP + mimemail + mail system not sending to hotmail

I have a webform which sends two emails upon submission: To the administrators of the site via webform emails To the client who submitted an email via rules using 'send html email' Everything is ...
-2
votes
1answer
33 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
99 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
36 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
47 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
0answers
12 views

Webform includes attachments only on manual resend, but not on initial form submission?

Using Webform and Mimemail to send HTML emails and uploaded files attached to emails. When submitting the form, the file is not attached to the email. The box is ticked: But if you edit the ...
0
votes
1answer
95 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
79 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 ...
0
votes
0answers
23 views

Webform e-mail header

Not sure if I can explain this right, in any case here it goes... Having issues with rejected e-mail messages from the webform automatic e-mail generation. The messages are being bounced back because ...
1
vote
0answers
35 views

Need to add SKU to order confirmation email - Commerce 2

I have been able to customize the order confirmation email twig file for a client to some degree, however when it comes to adding the SKU for each item ordered I cannot find a way to have it populate. ...
2
votes
1answer
153 views

How do I override the mail system?

In my application, all mails aren't sent via the Drupal default mail system or SMTP. We have a third-party API which sends all emails. So, whenever the plugin.manager.mail service is called, the class ...
0
votes
0answers
15 views

Changing “From” in password recovery mails?

My site email is site@bla.com. When mails are sent, the header is: Return-Path: <site@bla.com> Sender: site@bla.com So mails reaching the user says from = "site@bla.com"... instead of from = "...
0
votes
1answer
237 views

Send email after content update

I have create a new content type with a field of email. In this field I put the email address of the person I want. The case is: I want every time the node of this content type updated, to send an ...
0
votes
0answers
28 views

Flag/Unflag Taxonomy term when updating Taxonomy field in user profile

I asked this question a few days ago: Send email to all users that are tagged with the same tag a node is when created I decided to go a different route and use the flag and rules module to associate ...
1
vote
0answers
20 views

Rule that sends one email out at specific time each day with view content in it

I have 5 different views that show different metrics within blocks on the front of my website. I want a rule that can send this information to me by email each day at a certain time. How do I do this, ...
0
votes
0answers
51 views

How to progammatically subscribe a user on edit form(user_form)using Simiplenews?

How to programmatically subscribe a user on edit form(user_form)? I use the code below in hook_user_presave after I checked if the user is already subscribed. $subscription_manager = \Drupal::...
0
votes
0answers
40 views

Characters Converted to HTML Entities in Submission Email?

I have a webform in which I've developed a custom module to add a value to a hidden element based on inputs received by the person submitting the form. I also have an email handler specified that ...
0
votes
2answers
56 views

Send email to all users that are tagged with the same tag a node is when created

There is a lot of similar questions here but I am having a hard time wrapping my head around this. I have a taxonomy term reference field called field_category. This field is available on user/*/edit ...
0
votes
0answers
27 views

Unable to set the 'FromName' in email sent by SMTP

I am using SMTP to send emails in my custom module. But I am not able to set the FromName of the email. I tried both hook_mail() and hook_alter_mail() but it is getting affected. My code is: $...
1
vote
1answer
81 views

Send “Views PDF Display” generated PDF by mail as attachment

TLDR: How to send Module "Views PDF Display" generated PDF by mail as attachment without another deprecated module ? I have a Drupal site with the Views PDF Display module on it. I can generate a ...
0
votes
0answers
18 views

Unique message ID in SMTP module

I am working with Drupal 7. In my site am using the SMTP Authentication Support module to send emails. After sending an email, I want to get the unique encrypted message ID string. Now I am getting ...
0
votes
1answer
522 views

Problem with Mail System/SwiftMailer

In the submitForm of some form of my custom module, an email is sent this way: $sTo = 'eric.falzon@free.fr'; $sBcc = _setListOfRecipients(); $aParams = array($sBcc, $rpYear); \Drupal::service('...
-6
votes
1answer
405 views

I want to send emails from a custom module [closed]

I created a module to send emails, but I don't now how to send emails.
0
votes
1answer
129 views

Notify a user if a node has a comment or status updated

I'm trying to build a simple ticketing system with Drupal 8.6. I'm able to create a content type for these tickets and the comments will be the responses to the ticket. Also I have a status field for ...
0
votes
1answer
31 views

module to test if e-mail is working

In D7 I'm trying to determine the best way to periodically check if e-mail is working. I'm looking for a way to create a workflow that, say, on cron would check the day of the month, if it's the day ...
0
votes
1answer
55 views

PHP evaluation for “Send HTML email body”

I'm trying to compose the body of an email using PHP evaluation within a rule. The rule is triggered when a new content is saved. Part of the email body is composed using HEREDOC and that works fine....
0
votes
0answers
135 views

sending a daily digest of content (add, edit, delete) actions by email

I am trying to send a daily digest of all the content entities that have been added, edited or deleted. I am working on Drupal 8 so most of the good modules that achieve that are unstable and ...
1
vote
1answer
240 views

How can I apply logic in user registration welcome emails?

I am trying to put some logic into user registration welcome emails. Simple "if-then" logic, based on tokens. The tokens I use show up as expected, but both twig and php code gets sent as plain text....
0
votes
1answer
48 views

Commerce order mail is empty for anonymous users

In the function below, there is the problem of sending email to anonymous users, the email sending only for users logged and to complete checkout and payment. I get the following error message: ...

1
2 3 4 5
28