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
-2 votes
1 answer
25 views

Is there a module/way to send an email quarterly to a list of people about all the new content that has been published since the last email?

I need to be able to take all the users who sign up for updates on a webform and on an editable frequency email them the new content (that I choose to send them) that has been published since the last ...
1 vote
1 answer
573 views

Simplenews Scheduler - only send newsletter when attached EVA view contains results

Simplenews Scheduler is working well for me to send a weekly email which contains an attached view (using EVA) of nodes. I would like the newsletter to only send if the attached view contains nodes, ...
0 votes
1 answer
733 views

Subscribe/unsubscribe user from mailchimp list after purchase

I am using mailchimp 7.x 3.3 Module and ubercart is integrated for role selling, also I have rules module installed. I have users subscribed to the mailchimp list, my requirement is when a user from ...
0 votes
2 answers
3k views

How to send email to submitter in a webform?

I have a webform and i want to send by mail this webform to submitter. For the moment, i created an hidden field with token [current-user:mail] and i chose this field in adress. I think it isn't very ...
1 vote
1 answer
38 views

How do I override settings.php for Symfony Mailer to use Mailhog for local development?

Now that I am supporting Drupal 10, I needed to set up Mailhog to allow local capturing of emails when I'm testing in my local Docker environment. I used to use the SMTP and Mail System modules and ...
-1 votes
0 answers
23 views

Can't send email out through #rules by using token [node:author:mail]

can't send email out through #rules in Drupal10, I am using the token [node:author:mail] for the send to email action when user's node published, the system give me "Error message Unable to send ...
-1 votes
0 answers
23 views

Email no longer received as HTML after switching to PHP 8.1

I am using Drupal 9 and SMTP module to send email. When my Linux server was on php 7.4 this worked fine. After switching the server to php 8.1 the email no longer sends as HTML and the From mail ...
1 vote
3 answers
478 views

How do I collect field values of a submitted webform?

I'm trying to integrate a Mailchimp mailing list into Drupal. The Mailchimp list requires: First Name Last Name E-Mail The client already has a list in this format so ideally I need to collect this ...
0 votes
1 answer
432 views

How do I add fields to the email field contact form?

Using Drupal 7, I have a content type that uses the email field module(CCK) so that the page author can enter an email address for readers to mail them. With display suite module together with views ...
0 votes
1 answer
53 views

How can I programmatically stop webform from sending an email?

I need to stop sending my webform submission email programmatically and conditionally. By conditionally I mean I have two contact forms and two locales on my Drupal application. I have a custom ...
0 votes
1 answer
608 views

Use safe_key in webform emails

I want to be able to send the safe_key through the internal email. The website was doing this before, and for some reason is not any longer. I've tried %value[safe_key] and %safekey. I read some ...
2 votes
3 answers
454 views

How can I use one of the pre-set email texts for user registration in a custom module

At /admin/config/people/accounts, there are several stock email messages set. How can I use one of these when I am sending emails from a custom module? The text that's being used in "Welcome (new ...
1 vote
1 answer
238 views

How to send auto email for new unapproved comments?

How do I config to send auto email for new unapproved comments. I enabled the comments module and anonymous user can create comments in some content types. But, I want to receive in an specific ...
0 votes
2 answers
716 views

Remove Simplenews Newsletters?

I had set a content type to allow it to be used as a simplenews newsletter, and then updated the JSON Feeds Processor so that it filled in the simplenews category for all the items. However after ...
2 votes
2 answers
503 views

Sending mail to detailed groups?

Ok, I need a bit of help with this one. I have a website where I created a newsletter using Simplenews - works just fine, I'm sending some welcoming text + attached views of new things on site. But ...
0 votes
1 answer
760 views

Access MailChimp forms

I currently have a form that it is fully loaded from my Mailchimp Account. I configured it for display as a page using mailchimp configuration page (admin/config/services/mailchimp/signup). Then when ...
2 votes
2 answers
408 views

Simplenews + Mime Mail + SMTP = occasional blank email

I have a client site that uses the Simplenews module with the Mime Mail and SMTP Authentication modules. The subscriber list has a little over 300 email addresses, and when newsletters go out the cron ...
3 votes
2 answers
423 views

How to add html tags to account setting emails?

I am working on a project where I need to add some custom headers to the email which we send to the user on registration. Is there a module which support this functionality?
1 vote
3 answers
556 views

HTML E-Mails are being sent out as plaintext

I am using the Swift mailer module to send HTML emails. My actual body in hook_mail_alter() is the following. <p><em><strong>New Enquiry Appear </strong></em></...
1 vote
4 answers
5k views

SMTP Module not sending email

Using XAMPP on Mac I have installed https://www.drupal.org/project/smtp After setting up admin/config/system/smtp It gives above error. Unable to send test email. Do we have to any setting on ...
2 votes
2 answers
1k views

How can I attach multiple pdfs to drupal_mail() function?

Was doing something like this global $base_url; $uri = $base_url . '/sites/default/files/test.pdf'; if(!empty($mail_content)) { /*send mail */ $to =$...
0 votes
0 answers
93 views

How do I implement email dispatch with Drupal Symfony Mailer from scratch?

I'm implementing a cron job that should send a notification email to all users that meet a certain criterion. I created a Service implementing the CronInterface and hook_cron calls this service's run()...
1 vote
1 answer
764 views

Emails are not triggering when MIME mail is selected

I want to send HTML emails on webfrom submission. Gone through many tutorials as well as Questions on stack but didn't found a proper solution. I am using three modules to send these HTML mails. ...
0 votes
2 answers
491 views

Paragraph of text in webform generated email is split into multiple lines rather than presurving single line of text

I am using a webform to send an email. The webform contains a textarea field. I have noticed that if I enter a paragraph of text in the textarea field, then that same text is split into multiple ...
0 votes
1 answer
489 views

Image Styles not creating on one custom style only

I've run into this issue where we have created a custom style (emailthumb) which is to be used when sending out email newsletters via simplenews. The thumbnail is based on 'thumbnail' style but is ...
0 votes
1 answer
849 views

Sending webpage through email

I've implemented hook_menu and in page callback there is a function in my module which retrieves some records randomly and theme them with theme_table. Now I want a button on the page for sending this ...
2 votes
2 answers
529 views

Unable to configure SMTP authentication support module

In Drupal v7.36 & 7.37, after installed and enabled SMTP Authentication Support module, I still can't find the menu function under configuration/system to config this module for all related email ...
1 vote
1 answer
499 views

HTML / Mail System / SMTP Not sending approval in html

I have a current Drupal site that sends out all emails using the HTML template. Users requests, reset password, webform but does not send out approvals in HTML. Anyone have this issue or know a ...
0 votes
1 answer
411 views

How do I properly install?

In order to install MailChimp in Drupal 8 I followed the instructions for the MailChimp Drupal module. Instructions for 8.x-1.x The 8.x-1.x release uses version 3.0 of the MailChimp API and ...
0 votes
0 answers
21 views

Is it possible to batch send email submissions from a Webform?

I'm using a webform to send emails to around 100 people at a time, by sending a submission to all authenticated users. The Drupal side of things handles this fine. However, the email service I'm using ...
1 vote
1 answer
741 views

Using Rules to send an email to all Simplenews subscribers

On a Drupal 8 site I'm working on, we are using Simplenews to allow users to subscribe to a mailing list for blog posts. The client would like us to set up a rule to automatically send an email to ...
0 votes
1 answer
509 views

How do I override the subscription block?

I am developing a Drupal 8 website and I want to override the subscription block used by the Simplenews module. I know how to achieve that at Drupal 7, but the module is different now. For Drupal 7, I ...
5 votes
1 answer
760 views

How can you attach a file to a mail using Symfony mailer?

I want to attach a file to a mail from an input file in my form. Here is how I build the mail : $mailManager = \Drupal::service('plugin.manager.mail'); $params['title'] = 'title test'; $params['...
0 votes
2 answers
2k 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
1 answer
833 views

Remove email validation from Feed Import

I'm trying to import about 15000 users from a CSV file. Most of the users have valid email addresses, but some (+/- 5000) don't, they're also not blank fields. Is there a way that I can bypass the ...
3 votes
2 answers
418 views

How to add a 'flag link' in an email?

I want to add a 'flag link' in an email. I have an event content type, and every time a new event created, the users get an HTML Email. I have a flag that the users can flag this event if they want to ...
0 votes
1 answer
558 views

Webform HTML Email Fine on localhost with MailHog, Just Text on Server

I Developed a webform on my localhost, testing the Email using Mailhog. Everything looks fine, nicely formatted html emails. When I moved it to my test server at A2Hosting, the emails all show as ...
0 votes
1 answer
725 views

How to set default reply-to address in webform?

I am using Webform Reply to module to set Reply to address for mails sent from webforms. This feature works fine but for each webform creation I have to set Reply to address because by default it will ...
0 votes
1 answer
686 views

How to add a rule condition from select-list in a webform

This an export of my rule { "rules_webform_to_simplenews" : { "LABEL" : "Webform to simplenews", "PLUGIN" : "reaction rule", "OWNER" : "rules", "REQUIRES" : [ "webform_rules", "rules",...
0 votes
1 answer
795 views

Send email with URL of same page as the email link?

We have a page that displays a logged-in user's selections from a Flag Lists process. The page includes code to generate the specific URL of that page, so it can be copied and pasted elsewhere. (...
2 votes
1 answer
29 views

How can I email admin when stock is 0?

I'd like to email the admin when the stock is 0. In one option, I've tried to set a condition in rules based on the stock field, but I can't get the field to display in Entity has Bundle. Are there ...
1 vote
0 answers
25 views

How can I use a template for display mode with the Mailchimp module when I add an article?

How can I add a specific template for a display mode with the Mailchimp module? I created a new display mode (mailchimp); then I selected it in /admin/structure/types/manage/article/display. I tried ...
0 votes
1 answer
383 views

How does drupal send emails by default?

I have a site working on drupal 6 , and i uses drupal's default email function drupal_mail() to send emails , but unfortunately its not sending email and gives me "email not send , please contact site ...
0 votes
3 answers
834 views

hook_mail_alter() doesn't remove the Return-Path, Sender, and Reply-To headers

I want to remove the Return-Path, Sender, and Reply-To headers from the sent emails. I am trying to achieve this using the following code, but the headers aren't removed from the email. function ...
3 votes
2 answers
1k views

Why this code doesn't send an email with drupal_email()?

I am developing a Drupal 6 module that should send an email after a form is submitted. So far, I wrote the following code. function mailform_mail($key, &$message, $params) { $headers = array( ...
0 votes
1 answer
380 views

How to create queue for email sending

I am using PepiPost mail service and I created custom mail system class for integrating PepiPost service. I can successfully send email from Drupal site. If a connection timeout 504 occurs during ...
1 vote
1 answer
597 views

How to right-to-left emails are right-aligned?

In my Drupal 8 site, I am using Arabic email for sign up, log in, forgot password. I get Arabic email content, however, the email content is left aligned. I am using PHP Mailer on my site for sending ...
0 votes
1 answer
439 views

Unable to create newsletters

I am logged in as user/1 and have created a News content type with publishing options as "Use as simplenews newsletter". I believe all the permissions are correct. When I try to add new content using ...
0 votes
1 answer
547 views

Customise Webform Email Submission Data

In the webform-mail.tpl.php template, it outputs the main form data using: [submission:values] I am using the html format (using mime-mail) and this outputs to the email html in the form: <div&...
1 vote
1 answer
403 views

Email Attachment File Path

I am using Drupal 7 with the WebForm and MIME Mail modules. I've got webform attachments being sent in the email working fine. However the email also contains a path to view the email in a directory ...

1
2 3 4 5
28