Stack Exchange Network

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

0
votes
0answers
47 views
+50

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 / ...
-5
votes
0answers
40 views

How to send emails to all user programmatically [closed]

I using PHPmailer, Mail System module to sent mail. function demomail_mail($key, &$message, $params) { $options = array( 'langcode' => $message['langcode'], ); switch ($key) { ...
1
vote
1answer
15 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
0answers
15 views

Changing smtp settings in SwiftMailer dynamically for sending email with multiple form address

I'm using SwiftMailer with SMTP for sending email . I have set user/password settings in module configuration , it works great. But is it possible to change them on runtime ? and also is it possible ...
-1
votes
0answers
10 views

How do I show webform file in email as text only, not a link to the file

I want to store uploaded files in private file system which users cannot access. How to I show the uploaded file name as text only in a confirmation email instead of a link to the file which they ...
0
votes
1answer
50 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 ...
-1
votes
0answers
28 views

Users created from back-end doesn't trigger Welcome email

For some reason any user that is created by an authenticated user on my site, doesn't receive a welcome email...even when the Notify user of new account checkbox is checked. After the user is ...
0
votes
0answers
22 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
0answers
14 views

Pass node values to swift mailer module to create customize email template

I'm currently working on trying to build an email html template using swift mailer. My problem right now is how can I customize the template to fetch the values from the nodes and render them in the ...
0
votes
1answer
20 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
12 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
vote
1answer
26 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
37 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
0answers
19 views

Formatting an email address from a related entity with spamspan

I have a node with a related node, which is a contact person. That related node has an email address. I'm trying to output that email address using spamspan. In the custom module, I'm able to get the ...
0
votes
2answers
34 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
39 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
88 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
votes
0answers
10 views

drupal_mail and DSN (Delivery Status Notification)

I need to set-up DSN using drupal_mail or mail_alter hook but cannot find solution for this anywhere. I know from technical point how it should be done but cannot make it work. I'm trying do something ...
1
vote
1answer
114 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 ...
0
votes
0answers
12 views

Specifying an STMP server with SimpleMail module

I am using the SimpleMail module to send an automated email when a CRON job completes. It has been working find for several days and has suddenly stopped send although the CRON job is working fine. ...
1
vote
1answer
27 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
71 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
110 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
76 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
0answers
55 views

Passing field values to hook_mail_alter()

I'm new to Drupal so I'm sure this is a simple question for some. I looked around but I keep finding either D6 or D7 solutions. Nothing on 8. This is what I have in my form alter. if ($form_id == '...
0
votes
1answer
21 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
0answers
20 views

Custom template for registration mail

I have a custom template that I use to send all my mails, and I want to use it too for the registration and password reset mail. I only know how to use hook_mail_alter(), but it seems that hook allows ...
0
votes
2answers
61 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
27 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
0answers
15 views

Sending .ics attachment using drupal_mail() function [duplicate]

I am using Drupal 7, with the Mimemail and HTML mail modules enabled. I have some PHP code running on the background of a template file, and I am trying to send an email with a file of extension .ics ...
0
votes
1answer
170 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/...
1
vote
1answer
29 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 ...
1
vote
1answer
35 views

HTML removed from email using MailSystem and MimeMail

I am trying to send an email with a small html form of hidden fields and a submit button. I have been piecing this together from several very incomplete answers and documentation sources that take ...
0
votes
0answers
23 views

Send email without “to”

I would like to send an email to several users at once, so I need use "Bcc". I've tried the "'undisclosed-recipients:;'" sentence. Am I doing something wrong or that error is unavoidable? Emails get ...
0
votes
0answers
17 views

Custom created tokens are not replacing values when used in Rules->Action as email receiver

I'm trying to assign values from my custom created token called [custom:email] as the email receiver in Rules under Actions->Elements->Send Mail Following is described how I'm trying to achieve ...
1
vote
0answers
191 views

How to get the customer name in Commerce order confirmation e-mail?

How can I get the customer name from the billing information variable in the commerce-order-receipt.twig.html template of the Drupal 8 Commerce order confirmation e-mail?
0
votes
0answers
18 views

Inconsistent style for emails sent by rule?

I have a rule configured to fire off an email when the nightly cron tasks runs. So, every 4 a.m. an email gets sent out. If I trigger the rule by running cron manually, the resulting email has the ...
1
vote
1answer
31 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 ...
0
votes
1answer
17 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 ...
-4
votes
1answer
49 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? ...
1
vote
2answers
158 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 ...
2
votes
1answer
44 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-...
1
vote
2answers
17 views

Why can't I save a Send HTML Email action in a Rules Component?

I have a rule component set up that currently sends an HTML email. I need to change the body of the email to include a new field, but when I do and press Save, it doesn't return to the Rule page, it ...
0
votes
0answers
18 views

Add more e-mail template options

Is there a way to add more e-mail templates so I can just type the content I want to be dynamic like this <p>Hey [submission:values:name]</p> <br> <p style="font-size: 1.1em; ...
1
vote
2answers
177 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 ...
0
votes
0answers
60 views

Changing SMTP server host

I am using a Windows 2008 R2 server using Acquia Drupal 7.55 and we changed SMTP server for sending emails. I changed the SMTP server IP under admin/config/system/smtp (SMTP Authentication Support), ...
0
votes
2answers
31 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 ...
0
votes
1answer
25 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?
0
votes
0answers
152 views

swiftmailer & webform: custom template for specific forms

We are using drupal/webform and drupal/swiftmailer in a Drupal 8.5.3 installation. The mail system (/admin/config/system/mailsystem) is configured to use Swift Mailer for Formatter and Sender and we ...