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
8
votes
3answers
6k views

How can I remove preview button from contact form?

How to turn off preview in contact form in Drupal 8.1.x
1
vote
1answer
81 views

How to send email depending upon hidden component value (which will get from url)?

xxx.com/apply-job/node/1949?jobCode=IR/001&functionalArea=HR I have a form in the above url, the form components are Name Email Resume And also I have jobcode, functionalarea as hidden field, ...
2
votes
1answer
1k views

hook_form_alter() does not work for the contact form?

I have contact form module enabled from core drupal 8 modules. When I use the below code it has $form['field_consumer_name']['widget'][0]['#title'] = 'Individual Name'; I want that this code ...
0
votes
2answers
479 views

Building a contact form from scratch

Is there a way to force Drupal not to base any contact form on the native Personal contact form that comes with it, and thus freely creating contact forms from scratch as done with Webform in Drupal 7?...
1
vote
2answers
133 views

How to customize the SMTP message

When a message is send to the user a message like this is shown to him : message screenshot SMTP -> FROM SERVER: ........... SMTP -> FROM SERVER: ....... .........................................
2
votes
1answer
77 views

How to send monthly newsletter if the site is complex and has a lot of content types?

I want to send monthly newsletter to subscribers via Drupal. The website has lots of content types (news, events, books, courses, blog posts etc.). If the site has only one content type it would be ...
0
votes
1answer
138 views

What is the best way to track unique and overall clicks at my newsletters

I send newsletters from my Drupal-7 website and I want to track how many times the links where clicked and how many unique click events I had. I use Simplenews module and I use some basic GA utm ...
0
votes
1answer
342 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
1answer
156 views

Access denied when using webform submissions email link

Interim admin here- no experience- just trying to keep the wheels turning until a new hire made. Drupal 7.43. Site has "contact us" form implemented as a webform, with email notification to certain ...
2
votes
1answer
206 views

How to stopping spam when using Print_mail (submodule of Print)?

I am using the Printer, email and PDF versions module to be able to email and print articles. This module allows you to send an email to anyone. The issue is, that this feature opens it up for ...
0
votes
1answer
100 views

Migrate fields to another site?

I have a Drupal 8 site with a contact form that has a lot of fields. I need to duplicate these fields onto another Drupal 8 site but can't find where they are stored in the DB. In the config table ...
0
votes
0answers
200 views

check_plain() error when used with variable_get()

I'm incorporating email notifications into a custom Drupal 7 module, and I'm using the following code for hook_mail(). $subject_template = variable_get('pto_notification_subject', ...
2
votes
2answers
130 views

Send Email with Different Accounts

I've been searching but didn't find much. Is there any module or way to send emails with Drupal, but using different email accounts? For example, I have a site which will have 3 different email ...
3
votes
2answers
64 views

How to email individual content to email field?

I have a content type that contains information about people, if these people want this information forwarded to them, I'd like to be able to capture an email in an email field and send the published ...
0
votes
1answer
53 views

Postfix server and Simplenews module interaction

I send newsletters from my Drupal-7 website to all its registered users, using Simplenews module. As this number grows, I want to be able to track the number of successful and unsuccessful sends. In ...
2
votes
1answer
2k views

How to add predefined text to contact form?

I would like to add a couple paragraphs of predefined text (not an input field) to my contact page. What are my options to do this in Drupal 8? Until this point I've been using JS to get the job ...
0
votes
2answers
84 views

send emails to specific addresses based on value of fields

I have field_a with select list of 10 value when field_b is checked and when a value of field_a is alfa or beta or ecc, send email to address1 or 2 or ecc I try with custom module for advance ...
1
vote
1answer
120 views

How to create a distribution list for sending eMail? [duplicate]

In my project I want to create distribution list. eg: while sending mail if I select drupal, then all drupal user should get mail. This means according to user group, mail will get created and if I ...
2
votes
1answer
81 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 ...
0
votes
0answers
65 views

How best to send mail with server-generated attachments?

I've got a situation where I want to have some server-side code create a document (pdf, fwiw) and mail it to someone via drupal_mail and Mime Mail. I've got all the appropriate modules installed, and ...
0
votes
1answer
245 views

Unsubscribe users from Simplenews from a specific Newsletter category

I send newsletters from my Drupal-7 website using Simplenews module. I have a general category, that has all my site users and it is the category I use the most. Although, some of the newsletters are ...
1
vote
3answers
431 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
1answer
544 views

How to send a confirmation reservation email using the Reservations module?

I'm using the Reservations module to control certain resources. I'd like to send an email to the user who reserved the resource when it is confirmed. I also installed the Reservations email module ...
2
votes
1answer
2k views

How do I access the parameters fields of hook_mail_alter(&$message)?

I am using hook_mail_alter in drupal 8 to alter the email messages sent through contact form . How can I access $message['params'] fields in hook_mail_alter()? I am getting the following values with ...
2
votes
1answer
305 views

How to include only an updated custom field in an email created using Rules?

I used the Rules module to create a rule with an event "After update existing content". This rule sends an email to the editing user when that user makes an edit to one of the multiple custom fields ...
0
votes
1answer
42 views

How to send html/plain-text mails based on user settings?

Using mail function i am send mails to multiple users with comma separated values in Drupal 8. But in that mail id users, some users selected mail preference as html and some users selected plain-text ...
0
votes
1answer
484 views

How to alter body of contact form?

When submitting a message in my site contact form in Drupal 8.x I have printed a message print_r($message['body'][1]);die; //in my modulename_mail_alter(&$message) I get the following message ...
4
votes
3answers
6k views

Modal form instead of redirect

I have a site-wide contact form setup that redirects the user to the homepage and posts the submission result to the help section. It works as intended, but I was wondering what I would need to do to ...
1
vote
0answers
62 views

Sending HTML emails from sendmail module

I was using SMTP authentication and drupal mail module for sending HTML emails. Suddenly emails are not going. Hence i disabled the SMTP module and directly send emails using drupal email but emails ...
1
vote
0answers
74 views

verification mail link not working

I have the following issue: When a user register to the site he receives a message with a unique url in order to activate his account. so far so good. However when the user clicks the link provided ...
8
votes
3answers
2k views

How do I allow regular non-admin users to view other users' emails?

Email is now an included field in core, but the stock email for users seems to be set to private; only users with administrator privileges or the user themselves can see. I'd like to allow other ...
1
vote
1answer
422 views

How to prevent term URL in webform email template (Webform References Module)?

I've configured a webform to send a custom email after submit. One of the fields in the webform is a taxonomy select (via the Webform References module). So the value in the email template looks ...
1
vote
1answer
2k views

subject and body of mail messages empty using drupal 8 mail api - hook_mail [closed]

I'm trying to send messages using Drupal 8's Mail API, but the messages always have an empty subject and body. Do you see anything wrong with the code? In my module file: function mymodule_mail($...
1
vote
2answers
2k views

How to change the email recipient for contact form

On a Drupal 8 site, I have a content type called TeamMember which has an email field. From the view where I show all the TeamMembers, I'd like to link to a form where the user can email that person ...
2
votes
0answers
319 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 ...
5
votes
2answers
3k views

How do I set BCC in the email I am sending?

I am using Drupal 8. How can I add the BCC field in the mail function. Using below code Bcc not working $params['body'] = 'test body'; $params['subject'] = 'test subject'; $params['Bcc'] = 'test@...
5
votes
3answers
1k 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
400 views

Change contact form to email based on selection?

I am attempting to change the email a custom contact form is sent to based on what selection the user makes when filling out the form. Is there a way to do this in Drupal 8?
2
votes
1answer
825 views

How do I use absolute URLs?

I created a view for node titles only. I have inserted this view in simplenews newsletter using the Insert view module. The node title in newsletter emails are relative and broken. How do I configure ...
0
votes
1answer
629 views

Use Token in contact form as default value

I have a contact form build from the drupal core contact forms. I am trying to prefill some fields from URL GET parameters like this. /?foo=bar But it seems that "default value" doesnt support tokens....
0
votes
1answer
4k views

Emails are not sent

I am running Drupal 8 on a DigitalOcean server. I am trying to use the standard Drupal 8 Contact form to get user's email addresses. I currently have the form up and it is visible and holds the ...
2
votes
1answer
1k views

Where are contact form entries stored?

I am aware that Webform is now out of the Window and has more or less been replaced by Core Contact Forms. I created a form and it works great. Only problem is, I can't for the life of me find out: ...
0
votes
1answer
239 views

Track Simplenews newsletter open per user

I send newsletters from my Drupal 7 site, using the Simplenews module. I'm using this tracking code, but it isn't tracking uniqueness: <img src="http://www.google-analytics.com/collect?v=1&...
1
vote
0answers
295 views

Theming the outgoing contact form mail

Having a problem theming or changing the looks of my outgoing contact form e-mails. I have followed this topic on the subject: How can I theme the outgoing contact mail? I have done all the points ...
1
vote
2answers
89 views

Send email to users, except author comments

Hello! I have node with field [field_users] (entity reference) I create rule [after saving new comment] Actions: Loop for field: [comment:node:field-users] inside loop i create var [users:mail] And ...
0
votes
1answer
462 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 ...
3
votes
1answer
4k views

How to change webform default email address from sender side?

I'm using webform module, when somebody submits the form mails will go from address which we mentioned in the custom field, this works fine. But instead of adding in custom field, I want to change ...
2
votes
2answers
2k views

How do I programatically change default values in a contact form?

I have a Drupal 8 contact form where the form's placeholder values are the default values of the fields. Unfortunately, this site is multilingual and I don't think it's possible to translate default ...
1
vote
1answer
121 views

Apply a style to the price

I created a newsletter with the module "Simplenews". I also created a custom template for my newsletter : <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr><td ...
2
votes
1answer
99 views

How to integrate messaging into a custom module?

I'm working on a custom module to handle time off requests for an intranet site and I'd like to be able to have the module fire off email notifications to a configurable list of users -- specifically, ...

1
6 7
8
9 10
28