Questions tagged [emails]
Drupal core uses email for a number of important tasks, such as verifying authenticated users' email address.
407
questions with no upvoted or accepted answers
5
votes
1
answer
1k
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['...
4
votes
0
answers
3k
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
1
answer
173
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....
3
votes
1
answer
109
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
0
answers
670
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
0
answers
116
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
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(
...
3
votes
2
answers
444
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
2
answers
161
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
2
answers
442
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
0
answers
60
views
Changes in email template are saved, but not used (cache?)
I'm usually trying to find an answer/clue on my own, and usually it works, but at this time search is fruitless.
So I'm trying to edit a welcome email text, using /admin/config/people/accounts section....
2
votes
1
answer
453
views
How can I connect to Office365 mail server using OAuth to send email?
I am using SwiftMailer to connect to an Office365 email account. So all emails issued from the Drupal site are sent via the SMTP server on Office365.
However, from October 2022, Office365 will no ...
2
votes
0
answers
81
views
Automate notification to Mailchimp
I am trying to automate a notification integration between Drupal8 and Mailchimp.
I currently the Mailchimp module installed and a signup form has been configured so that people can signup for ...
2
votes
0
answers
666
views
How can I send mass emails as part of a bulk operation?
I have a view where the webform submissions of the site authenticated users are shown. In that view I have some bulk operations (created by me) that change the value of a field in these submissions (e....
2
votes
1
answer
285
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
1
answer
198
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
1
answer
74
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
1
answer
113
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
0
answers
326
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
0
answers
72
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
1
answer
457
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
0
answers
60
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
0
answers
179
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
2
answers
90
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
0
answers
193
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
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 =$...
2
votes
0
answers
57
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
2
answers
534
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 ...
2
votes
1
answer
153
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
0
answers
114
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
1
answer
48
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
0
answers
359
views
How to stop by Webform from sending duplicate emails?
So I have a webform in Drupal 7 that is set up like this:
And I made it so that each of those checkboxes can share the same email key. But when I submit my form, it will send duplicate emails to ...
2
votes
0
answers
170
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
2
answers
418
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
2
answers
125
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
1
answer
269
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
0
answers
70
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
1
answer
224
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
0
answers
78
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
0
answers
33
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
0
answers
99
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
1
answer
96
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
0
answers
277
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
1
answer
285
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
0
answers
688
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
1
answer
235
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
2
answers
505
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
0
answers
1k
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
2
answers
260
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
0
answers
98
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 ...