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

One Time Login URL not Received : Looking for a Spare Solution

Some (only a few) of my users do not receive the "one time login url" mail when they want to reset their (forgotten) password (also checked in spam and trash). The odd thing is that if I personnaly ...
0
votes
1answer
246 views

Webform multiple conditions recipient

I am on a Drupal 7 website and I have a webform with multiple fields, one field is a selectbox with : 1-10 employees 10-20 employees 20-30 empolyees ... Another one is an open textfield Postcode. ...
0
votes
2answers
239 views

How do I show the contact form in panels?

I have installed panels and Panelizer modules and used the core contact form. There is no feature available for adding contact form in the panels. How do I add the contact form in Panels without ...
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
1answer
223 views

How do I send emails from a .php file?

I have developed a separate functionality using PHP in a sub folder of my Drupal site (e.g. mysite.com/myfolder/myfunc.php). Now I want to send emails using Drupal functions. Since this is not a ...
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 ...
1
vote
1answer
159 views

Webform2pdf - Message body empty

I'm trying to use webform2pdf to generate a pdf containing form inputs. The form works fine if I don't check "Generate PDF Document", and I receive a confirmation email. If I do enable the PDF, I don'...
0
votes
1answer
47 views

How do I invoke token substitution with Pet?

I have to send some emails in a custom Drupal 7 module. I'd like to use the PET module (Previewable email templates) to manage the templates and drupal_mail() to send emails because it already uses ...
0
votes
1answer
478 views

Use a different confirmation url on completed webform submission in email confirmation link

When a user submits a webform submission, they get redirected to a confirmation page, in my case its node/40. Now if they also have to click on an email confirmation link, it also sends them to the ...
1
vote
1answer
84 views

Sender name in MimeMail send HTML mail rule

I have a local site I am testing. I have PhPMailer installed which works fine to send plain text email with the Sender name populated properly. However when I installed MimeMail and try to use the ...
0
votes
1answer
572 views

How to get the URL of an entity being created at hook_entity_insert() stage?

I'm trying to send an email "someone added content" with the URL to the entity as the message body. function MYMODULE_entity_insert(EntityInterface $entity) { if ($entity->getEntityTypeId() === '...
2
votes
1answer
34 views

How can I automatically assign users to a node based on a taxonomy?

I've Googled this but might just not be using the right search phrases. I'm building an RFP repository for my company. Each RFP question will have a Category assigned to it. Within Drupal, I'd like to:...
5
votes
3answers
4k views

How to customize order confirmation e-mail

I am experimenting with Commerce 2 and it is amazing, however one thing that I am unable to resolve customizing store e-mails? The default confirmation is not adequate and should be easy to customize ...
0
votes
0answers
108 views

What are some possible causes of failure in automatic email sends from User Import?

In a D7 (up to date) site where the User Import module had been working successfully, it is now generating an error for email-sends and failing to send the Welcome Email that should result from ...
0
votes
2answers
566 views

Send daily automated mails to specific roles programmatically

I'm working on a D8 project and I want to send every day an automated mail to all users with a specific role, lets say 'custom admin'. The mail should contain the results of a database query. Rules ...
3
votes
1answer
459 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 ...
0
votes
1answer
83 views

Forced rendered node view results in empty node links

In order to send html email using drupal/swiftmailer I load and view a node. Then I pass it to the rendere. In the email sent, generated node__links are empty. As node_links uses #LazyBuilder, Im ...
4
votes
2answers
224 views

How to notify users when a new comment is posted in the same page as they did?

I have a Drupal 7 website and I display comments on a content type. What I want, is for every user to have a boolean field in their profile, to declare if they want to be notified when a new comment ...
0
votes
1answer
1k views

How can I configure the Mail System module to use Swift Mailer for registration emails?

This seems like it should be straightforward, but I haven't had success theming the default registration emails on my site. I am able to see the themed email (just using swiftmailer.html.twig in my ...
2
votes
1answer
119 views

How to get a list of entities programmatically?

I wrote custom rules action to get a list of active simplenews subscribers, but I can not process it with "loop" cycle. Action should get list of active simplenews subscribers ("entity_fetched" array)....
-1
votes
1answer
361 views

Drupal mail, how do I set the recipient address to Nice Name?

Drupal mail is sending messages to username <email@domain> This looks like martin-green I would like to specify the user name as "Martin Green ". We have extended the user fields to ...
0
votes
2answers
91 views

Contact form redirects to homepage without showing submission information

I am using default contact form available in D7 under module section. The problem is that contact form redirects to the homepage. It doesn't show any information about submission, such as "Your ...
1
vote
0answers
80 views

Passing third-party variables to contact form view

I am using the following modules provided by default from Drupal's core - Contact and Contact Storage to manage simple contact forms. For my module, I needed to include a title and sub-title fields ...
1
vote
0answers
41 views

Headless Drupal 8.3 - Allow a user to choose their own password via the user registration endpoint, while also sending an email activation link?

The planned user registration process is as follows: The user enters their email address and chooses their password using the registration form. After registering, an email containing an account ...
0
votes
1answer
124 views

How to fetch data from database in mail template

I'm desperatly trying to get data from the database using a custom module (which is based on ubercart funds) to send a costomized email. Here is how it makes email : drupal_mail('ubercart_funds', '...
2
votes
1answer
284 views

Cancel email in hook_mail

In hook_mail() I might discover that some part of the email couldn't be generated (maybe when trying to load a variable from an external system it fails). How can I cancel the sending? I don't want ...
2
votes
2answers
78 views

Is there a way to send emails when someone logs in?

Logins on my sites are very infrequent and are normally done by myself. I would like a way of getting email notification when someone logs in. This way I might be able to spot someone hacking into the ...
1
vote
0answers
58 views

How to create a rule to redirect users to specific content according to their email domain?

I'm trying to setup the Rules module in D8, but I'm unable to do so. I want to redirect users, according to their email domain they used to register themselves on my website, to specific pages: ...
-2
votes
2answers
4k views

How can I send email after submit form?

I create a custom form. Users can send phone number and email address with this form. Now I want send email after submit form and users data send to my mail. How can I do this in Drupal 8 ?
3
votes
1answer
83 views

How to eMail webforms to 2 alternating email adresses?

I got a Drupal 7 site with a working webform in it. Now I got 2 email addresses to send the mails to, we want to send them like so: Send 1st email to emailadress A. Send 2th email to emailadress B. ...
0
votes
1answer
39 views

How do I send an email when users update their email address?

If users update their email address, an email should be sent to the old and new email addresses to confirm the transaction. How can I achieve this in Drupal 8?
0
votes
1answer
102 views

Insert node title in the message sent by contact form

I'am looking for a way to insert a node title to mail message sent by contact form in Drupal 8. A contact form is inserted into my node as a field. It is used on each node to receive mail from users. ...
-1
votes
2answers
31 views

User Notifications

Does anyone have an idea how to send email notification to the user when the file is uploaded? This file can be uploaded either to the new node or while modifying an existing node.
0
votes
1answer
760 views

How to send email custom module drupal 7?

I've looking for in google then finally I got some example working for me but when I start to manualy code making my cutom module send email it doesnt work ? then I try to copy paste in the new module ...
0
votes
2answers
78 views

Send Registration Emails To Non-Administrator role / Rules Data Selector By Role

I'm about to lose it here so hopefully someone here can help me. I'm working in D8 and I would like to allow users of a certain role (Managers) administrate new site users. There is a permission for ...
3
votes
1answer
84 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 ...
0
votes
2answers
260 views

Logging in with email and not username

I tried the module LoginToboggan to log in entering the email and not the username (that I use as Facebook ID). The problem is that the module allows to log in with either the email or the username. ...
0
votes
1answer
323 views

How to add a colon for Webform field labels?

I know you can add colon in field.tpl.php for site wide content type node fields, but looks like it's not webform field related. And webform doesn't have any webform-field.tpl.php type of templates ...
1
vote
1answer
162 views

How can I limit the number of email sent per hour in a rule?

I have installed Mime mail and Mail System modules. I use an action in a rule: Send HTML mail to all users of a role to send an email to a set of users. Is there anyway I could limit the number ...
3
votes
0answers
572 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 ...
0
votes
2answers
2k views

How to hide label in customized contact form?

I added a field 'Contact_Catégorie (system name: field_contact_categorie)' to the default 'feedback' contact form. The field type is List (Text) in which I store a set of "email address | label" in ...
0
votes
1answer
80 views

How Can I send full content body field by simplenews_content_selection?

I use the drupal 7 and simple news content selection module for simplenews. When select an existing content for send by simplenews only the title of its content add to simplenews sent mail. I want ...
0
votes
1answer
855 views

How can I alter drupal_mail function to add Reply-To in the headers?

I am using drupal_mail function to send emails from a website. My requirement is mail which are sent from website should have from address as noreply@website.com and replyto address should be testing@...
0
votes
1answer
83 views

How to resend simplenews content for many times - Simplenews module

I use drupal 7 and simplenews module.I want to send a simplenews for several times.by default simple news module support onetime send to user.but i want to send simplenews to user for several times by ...
1
vote
1answer
89 views

How to determine if the current Drupal page is a contact page?

With Drupal 8, in THEMENAME.theme I can generate a class based on the current node ID which will be inserted in the body tag : In the THEMENAME_preprocess_html() function, i use : $node = \Drupal::...
0
votes
1answer
523 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 ...
2
votes
1answer
423 views

How to send out email based on matching taxonomy terms in user profiles?

I'm using profiles 2 and have (one or many) taxonomy terms that can be selected by a specific profile type. I have a webform that also has this taxonomy term in the select list. When the webform is ...
0
votes
0answers
39 views

System Emails not working

I have a website for my business, however, there is an issue. All the system emails have not been delivered. I have tried with password reset, it shows entry in dblog. Also the server is fine, if I ...
0
votes
1answer
12 views

Disable email updates alert on expired domain

As per question, my domain already expired for over months now and im not planning on using it anymore but i keep getting the modules updates email alert coming from the domain. How can i disable it ...
1
vote
0answers
27 views

Is drupal_mail() adequate for 500 emails sent once per month?

I need to send a short, customized-per-user email to approximately 500 users once each month (via a custom module). Are there compelling reasons not to just use drupal_mail for this volume and ...

1 2 3
4
5
28