Questions tagged [emails]

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

400 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
2k views

How to setup Swift Mailer to send mails using SMTP server and TLS encryption?

I'm trying to send Drupal 8 emails using Swift Mailer (5.4.8, 8.x-1.0-beta1) and a remote SMTP server. The transport should be encrypted, so TLS should be used. This is my setting: Unfortunatly when ...
4
votes
1answer
151 views

How can i have a SimpleNews signup form as modal/lightbox

Is it possible to have the Simplenews sign up form block as a modal - I'd like to present people to the signup a bit more visible than a static block. Would i be possible to present the modal when eg....
4
votes
1answer
266 views

Garbage values in From: in the email sent from Webform

I find some garbage values in the from field of email sent from contact us page in webmail(as in the image From= field below in the top left in which "F" is cut-off by mistake). I've configured ...
3
votes
1answer
390 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 ...
3
votes
1answer
81 views

Allow the user to send emails to all or selected rows in a particular views display

Salut! I have been working on a 100% non-profit project for 1 month and now I am facing a problem with the main feature that this project offer for free. The project is a website about people ...
3
votes
0answers
522 views

How do I use the current theme templates to render a node in a module in order to send node content via email?

I'm trying to send a rendered node (which contains multiple entity references) via email for a newsletter. I'm using workbench moderation and workbench email to manage the different states I need and ...
3
votes
0answers
107 views

Drupal Mailchimp module for multilanguage sites

I setup a D7 multi-language site. People can subscribe with my MailChimp newsletter list when they register at user/register. It works fine with german, the default language, but when somebody ...
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( ...
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?
3
votes
2answers
133 views

How to send emails to 20,000 + registered members efficiently?

I have a Drupal 7 site with about 20,000 members. Sometimes I need to email them all at once. Thus far, I have been adding a rules component (Condition: Make sure user has not opted out of emails, ...
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 ...
2
votes
1answer
169 views

How to use Rules to email users when any field(s) is changed in a node (and include the unchanged/changed values for that field)?

I know how to email using Rules when a field in a node is changed and add conditions for particular fields whether they were changed. But I would like the email to contain the info which field(s) ...
2
votes
1answer
75 views

How to email the results of a filtered view to a user?

Required functionality (Drupal 7): User filters a view to desired results User enters email address in a webform block User is emailed the filtered list of results I'm using Views (7.x-3.14), ...
2
votes
1answer
67 views

How to fix my Rule to notify authors of products by email at order completion?

I'm trying to send email notifications to authors of each products (line-items) in the order at completion. I have tried many things surrounding the rule below... that is now at a strange point in ...
2
votes
1answer
80 views

How to avoid sending 2 emails at the same time?

I use Drupal 7 and I'm testing a function to automatically send email from a custom module. I have 3 fields to check, and I have to send mail to a specific address. I have write simple test code in ...
2
votes
0answers
316 views

Attach files uploaded with the contact form to mail

By default uploaded files in a contact form are uploaded to the server and a link is placed in the mail send to the recipients. Is there a way to attach the uploaded files to the mail itself rather ...
2
votes
0answers
54 views

Attachments not working with email

I am facing an issue with the D7 file attachment vi email. function app_standard_app_form_submit($form, &$form_state){ global $user; $profile = user_load($user->uid); // ...
2
votes
1answer
234 views

Email notification via private message module

I am using private message module to send an e-mail to all users. When I send mail, users can able to see the message in site only after logging in. There is an email notification settings in ...
2
votes
1answer
1k views

How to send an email using a field key?

I am attempting to send an email to a field selected value using the Rules module. The user selects a faculty member and saves the node. The rule should fire off and email based on the field's key. I ...
2
votes
0answers
55 views

Simple news from activate the user after email confirmation click in email

I'm using the Simplenews module after user received the subscription link through email,when click on the link user automatically subscription the news letter. I don't know how to do this. I checked ...
2
votes
0answers
178 views

Why does the email body show token instead of invite link?

I have installed and enabled the invite module. For mailsystem I have used MIME mail system. When I send an invitation to email it shows site name and site URL but it did not show inviter name and ...
2
votes
2answers
84 views

Contact form module for different users

I am looking for a contact form module for different users logged in to the website. E.g., 1) a website that has different authors 2) the user clicks on the author's page there is a contact form ...
2
votes
0answers
191 views

Entityform send uploaded files as link and not as an email attachment

I am using Entityform to send email notification to admin when visitors submit a form with an uploaded PDF file. How do you get the uploaded file to be provided as an email attachment and not as link?
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 =$...
2
votes
0answers
54 views

How to override the email structure

I have a problem with Drupal 8. I have enabled the default contact form and I have added two custom fields. Currently, the form send a mail with my two fields at the end of the mail. I want to change ...
2
votes
1answer
122 views

Sending a file in e-mail message body using Views Send

I have a drupal site that holds thousands of client details. What I want to do is to create an emailer to send out campaigns to the clients. So far I have a view set up to filter clients by company ...
2
votes
0answers
106 views

Create node via URL parameters to different drupal site

I am looking for a way to create a node via just a URL. I know the prepopulate module and similar can auto populate a form for a user to submit, but I would like to avoid the form altogether. After a ...
2
votes
1answer
34 views

SMTP settings not being used

I've been working on a existing drupal site I got from a client, and have been running into some problems when I try to change the smtp settings. The SMTP module was already installed, but when I ...
2
votes
0answers
128 views

Autologin and “Require e-mail verification when a visitor creates an account.”

I'm trying to avoid users getting emails when their account is created, so I've unchecked the Require e-mail verification when a visitor creates an account setting in Registration and cancellation. ...
2
votes
2answers
315 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 ...
2
votes
2answers
108 views

Do I need to use drupal_mail after the hook_form_contact_site_form_alter?

I have added on field in my site wide contact form through this code : function cstm_form_contact_site_form_alter(&$form, &$form_state, $form_id) { // Add a phone number field to the ...
2
votes
1answer
255 views

Rules - Set language of message notification

We need to set up a rule that will send an email in the language of the Customer of an order LANGUAGE. But the Message notify action in rules takes the CURRENT user interface language... so that ...
2
votes
0answers
61 views

Per node contact form, recipient from taxonomy

I'm attempting to build a conditional recipient contact form on D7 and I'm running into a few issues. Here are my requirements. I have a Content Type called "Dataset", which has a Term reference ...
2
votes
1answer
169 views

Perform action when new user verifies email link

I am looking to catch the event when new user updates password after clicking on link in the email, right after one time login. I actually want to perform an action right after user sets password ...
2
votes
0answers
71 views

What token should I use while sending email when I am programmatically adding the content?

When I fill the form. I get this email A new Event "Event name" has been created. To approve this Event please go to http://websitename.com/content/content-name and click ‘publish’. I have set ...
2
votes
0answers
30 views

Mailchimp 6.x-2.6 module wont update user changes to Mailchimp

I am using the MailChimp module and getting a problem when updating user settings. The new settings are not synchronized with Mailchimp. The module is only working when users are created. In module ...
2
votes
2answers
368 views

Configuring mail function in multistep form submit in drupal

I have been working in a multistep customer-survey form and i am unable to configure and send mail after the form is successfully submitted. Here's is code for submit handler, function ...
2
votes
1answer
96 views

Confirmation email for newsletter signups drupal 7

Is it possible to send a confirmation email when someone signs up to my newsletter. When the user signs up an email should be sent to his mail conforming his subscripition and to await more info. Is ...
2
votes
0answers
96 views

Complex newsletter with external subscribers and custom attachments

I've created a Drupal 7 site for a financial company with approx. 60 employees. Only the employees are registered users. The company has about 3000 customers that are registered in an external ...
2
votes
1answer
91 views

Is there a module for “mail routing” in Drupal 6?

Is there a module, with D6 support, that allows one to "route" e-mails. For example, by default, e-mails would be sent out by the regular mechanism, but for some e-mails, say based on their ID or ...
2
votes
0answers
255 views

Error by sending Email in Drupal 7, but ok by Rules?

System messages (Restore Password, Registration) not sending to email and in Logs shows error. But email sending by Rules (Ubercart) very good. What's the problem? Message Error sending e-mail (...
2
votes
1answer
277 views

What are the performance implications of running a frequent simplenews cron task to send emails?

In the Simplenews docs there is the following tip: The Elysia Cron module (http://drupal.org/project/elysia_cron) can be used to start the simplenews cron hook more often than others, so that ...
2
votes
0answers
673 views

Webform send emails based on selection criteria

I am attempting to create a sort of booking / quote form using Webform. I have 2 taxonomy selection criteria "Location" and "Service", I am trying to get the form to send emails to the users that ...
2
votes
1answer
227 views

Add a role to a user during MailChimp subscription

I'm sorry, I'm a beginner in Drupal 7, and I don't really understand the roles behaviors. I arrive in a website which is already done, and I have to add a functionality : a newsletter for another ...
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 ...
2
votes
0answers
955 views

Email not sent with csv file as attachment

I have implemented custom function to send email with csv file as attachment. CSV file content is created on the fly. When I setup email header but text "Content-Type: text/html; charset="utf-8", ...
2
votes
2answers
233 views

Converting Simplenews Subscribers to Users

I was wondering if there is a way to convert SimpleNews subscribers into actual Drupal users? Currently, I have something similar going on using custom fields in the user-register form, but wanted to ...
2
votes
0answers
92 views

Inserted View in Simplenews excluded from Email but included on website

Drupal 7.14, Simplenews 7.x-1.0-rc1, Insert View 7.x-2.0, Views 7.x-3.3 I have created a view ("birthdays"), a newsletter and inserted the view [view:birthdays]. The view is inserted and displayed ...
2
votes
0answers
377 views

MimeMailSystem not sending emails

I've been setting up a newsletter using Simplenews - it works well enough but only for plain text emails. I've set up and installed MimeMail but when selected as the site-wide default [admin/config/...
1
vote
1answer
33 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 ...