Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [emails]

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

3
votes
1answer
44 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 ...
-3
votes
0answers
18 views

How to add return path for all Drupal 7 emails?

How to set Return-Path parameter in Drupal 7? We would need to add -f into it.
-2
votes
0answers
32 views

How do I send a link from a webform that automatically logs the user in?

I want to send a link via an email that will automatically login the user and redirect them to the webform i want them to view. I cant find how to do that with drupal 8. I see some answers for ...
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
34 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
22 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 ...
0
votes
0answers
15 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, ...
1
vote
0answers
23 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
24 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
23 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
32 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
7 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
68 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
59 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
27 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
29 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
37 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
18 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
51 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
115 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
29 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
45 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
31 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
145 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
76 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
124 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
23 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
27 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 ...
0
votes
1answer
41 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
22 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
42 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
71 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
108 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
79 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/...
0
votes
1answer
435 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
14 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
308 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 ...
1
vote
1answer
274 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 ...
1
vote
1answer
46 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
130 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
21 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
306 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
128 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
1answer
22 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
2answers
107 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
29 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
1answer
259 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/...