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
374 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 ...
0
votes
1answer
429 views

Printmail Form inside Colorbox

I am actualy trying to load the printmail form inside a colorbox. But when I am tryining to build up a link like this: <a href="/pages/demo/printmail/64?width=500&height=500" class="colorbox-...
1
vote
3answers
1k views

Disable email user notifications

It's possible in Drupal 8 disable all users notifications? New account, forgot password, etc I'm using one external tool to send these emails and I don't need these notifications. Thanks
0
votes
0answers
13 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
337 views

Mail System module replacement?

We recently updated Drupal Core to 7.26. Since that update Mailsystem doesn't work correctly. We've had to remove it from our site. The error message we recieve is: PDOException: SQLSTATE[HY000]: ...
3
votes
1answer
361 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
2answers
361 views

Configure page title block for contact form pages only

I want the page title block to display on the contact form pages, because the nodes have their titles in their display. It seems for a form you can't add the title to the form display, thus leaving ...
0
votes
3answers
587 views

Drupal 8 and MailChimp

I'm syncing a Drupal 8 webform to populate a MailChimp lits via the MailChimp module. As well as capturing the first and last name I also want to capture the City and Province. However when I submit ...
0
votes
1answer
480 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 ...
3
votes
2answers
337 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 ...
1
vote
1answer
337 views

Mailchimp: How do I find the mapping between drupal fields and the merge fields

I implemented mailchimp in my project about a year ago, I'm using version 7.x-3.6. The client has asked for an extra mergevar for "Gender". At the moment, we just have First Name, Last Name, username,...
0
votes
2answers
614 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
3answers
338 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
0answers
10 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
2answers
449 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
1answer
3k views

How can I render an entity in a string?

Is it possible? To use the viewBuilder of an entity to generate the complete html and save that output into a string instead of sending it to a browser. It would open the possibility to have email ...
0
votes
1answer
17 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 ...
2
votes
2answers
7k views

How can I see a log of emails that Drupal has sent?

How can I see a log of emails that Drupal 7 has sent? It would be handy for things like troubleshooting registration issues... to see that registration emails are actually being sent.
1
vote
1answer
358 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
1answer
456 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 ...
3
votes
1answer
389 views

Alter the “From” address contact form

I'm trying to alter the email and change the default "From" address to a different email address. function mymodule_mail_alter(&$message){ $message['from'] = 'myemail@gmail.com'; } When I ...
1
vote
1answer
352 views

How do I redirect the unsubscribe link in a newsletter to a particular node?

I am using the Simplenews module for sending newsletters, and the Mandrill service for sending emails. When I send a test newsletter to the test user, the unsubscribe link should be redirected to ...
0
votes
1answer
482 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&...
0
votes
1answer
418 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
1answer
455 views

Display Edit and Delete links in views table

I am using NewsLetter Module for creating NewsLetters. I would like to create a view in table format for NewsLetters with edit and delete links on each row. How can I add edit and delete link on each ...
0
votes
1answer
366 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
0answers
18 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
4answers
3k 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 ...
1
vote
1answer
35 views

Why is the apostrophe converted to &#039; 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 ...
3
votes
1answer
982 views

Special characters in email body

I'm attempting to send an email from a Drupal 8 module I'm developing, and it works except that special characters (' < >) seem to be getting escaped. My module has a configuration to select ...
1
vote
1answer
489 views

How do i generate token for each user they submit my custom form?

I have a created a custom module with simple form with only three fields ( Url, title & email ) , where user has to enter all the fields for submission. I am able to send the mail to the user ...
0
votes
1answer
33 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....
2
votes
2answers
483 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
1answer
623 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 ...
1
vote
1answer
528 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
1answer
536 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 ...
0
votes
1answer
721 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 ...
3
votes
1answer
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( ...
1
vote
1answer
3k views

How do I use a template file for preparing HTML message body for emails?

I want to use a template file for preparing the email message body using the table tag, and putting the submitted form data by user in table rows. I have implemented hook_mail() with the following ...
1
vote
2answers
388 views

How do I split a contact form into multiple pages?

I have a huge form that's way too large for a single page. I would like to split this form up into a few separate pages. What are my options? Edit: Still haven't figured out how to do this with ...
0
votes
2answers
13 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
543 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 ...
1
vote
1answer
652 views

Mail not going from drupal smtp

I have configured the smtp for drupal , as said in this link https://www.drupal.org/project/smtp and my smtp module folder lies in /sites/all/modules/smtp and phpmailer library lies in /sites/all/...
0
votes
0answers
20 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 ...
2
votes
2answers
715 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
1answer
13 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 ...
5
votes
3answers
692 views

How can I block users from registering with disposable email addresses?

I have a site where users send messages to one another using the Private Message module, and they are notified of messages by email. On this site, there are a variety of spammers, scammers, and ...
1
vote
1answer
767 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 ...
0
votes
0answers
33 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
29 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 ...