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
26 views

UTF-8 encoding when creating nodes (from mails)

I'm making a customized version of the Mailhandler module (based on inMail), which has a node creation function: protected function createNode(MimeMessageInterface $message, DefaultAnalyzerResult $...
0
votes
1answer
21 views

How to pass variables to template to use it in email?

I've written a "hook_mail()" to send html emails. I have everything but I would like to use a custom template. I use a "hook_theme" as well, but my question is how can I pass variables to use it in my ...
-4
votes
0answers
26 views

Need to send out an email to site admin in case of error

Requirement: Need to send out an email to site admin in case any error comes up in watchdog/recent log messages. This will help us in fixing site issues at the earliest. Query: How to achieve this in ...
1
vote
1answer
24 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 ...
-1
votes
0answers
13 views

SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)

SMTP Authentication Support module(1.7) suddenly stopped working in Drupal 7. I played with different configurations in SMTP Authentication Support with no success, opened inbound and outbound port ...
0
votes
1answer
35 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
7 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
28 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
23 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
67 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
21 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
19 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. ...
3
votes
1answer
69 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
14 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
80 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
23 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
18 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
26 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
28 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
24 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
45 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
12 views

Using Webform on Taxonomy Page and using that Term's Values

Say I have a Vocabulary called Branches which has an email field. I wanted to attach a Contact webform to the pages of these Branches where an email will be sent directly to the email field value for ...
0
votes
0answers
16 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
170 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
127 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
44 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
30 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
46 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
20 views

Configure emails for webform

I am looking at two sites both have webform 7.x-4.18 plus mimemail and and mailsystem. when configuring emails for webforms, one site shows 3 options in the E_MAIL HEADER DETAILS: subject, from ...
0
votes
0answers
84 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
145 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
34 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: ...
0
votes
1answer
48 views

How to send mail with multiple images from node using Rules module? [closed]

$language = field_language('node', $node, 'YOUR _FIELD_NAME'); foreach($node->YOUR_FIELD_NAME[$language] as $file) { echo drupal_realpath(file_load($file['fid'])->uri); } I used this code to ...
2
votes
2answers
34 views

Cannot get subscriptions to send out at correct intervals

I set up the "subscriptions" module and have set it so that all members of the page have access to a number of panels. One allows them to set the frequency of emails, one allows them to pick and ...
0
votes
2answers
183 views

Print commerce pricing attributes to email receipt

Users cannot see what size or color shirt they purchased in the email receipt because tokens won't print the attribute fields provided by Commerce Product Attributes / Commerce Pricing Attributes / ...
1
vote
1answer
136 views

Can't send managed file as mail attachment

I'm working on a form submit in a Drupal 7 project, the form has and upload file field, in my form submit handler I can get the file id, what I want to do is to send and mail which has as attachment ...
0
votes
1answer
180 views

Sending an email to everyone with a certain role

Me: Small business owner with no coding or Drupal background who wants to learn by doing instead of hiring a developer for every small thing. Goal: I have a Drupal 7 website and would like to send ...
0
votes
0answers
26 views

Some users receive email with no body

I have a Drupal 7 site with over 400 users. Time to time I use Mass contact to send updates to the users. I noticed that some of the users receives blank email with no body. I get no errors and there ...
0
votes
1answer
34 views

Conditional email is not sent

I have 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
16 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
votes
1answer
56 views

Add Mailchimp interests fields into webform_mailchimp signup field

Currently I am using: mailchimp 7.x-4.9 webform_mailchimp 7.x-4.x-dev webform 7.x-4.18 From this issue I applied patch #2 to webform_mailchimp 7.x-4.x-dev module, and I can see the file ...
0
votes
0answers
24 views

Merge Webform select option field into Mailchimp merge field

I am using webform_mailchimp 7.x-4.x-dev and MailChimp Version: 7.x-4.9. In my Drupal webform, I have a country select list field, where the user can select their country. How do I merge this field ...
1
vote
1answer
54 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
106 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
2answers
174 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 ...
0
votes
2answers
177 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
vote
1answer
733 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 ...
1
vote
0answers
15 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 ...
2
votes
1answer
421 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 ...