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

learn more… | top users | synonyms (2)

1
vote
1answer
15 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
12 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
0answers
21 views

parsing e-mail title with mailcomment

I'm get mail from my e-mail using mailcomment and mailhandler. When in mail title I set 244 (it's a NID my material), all work fine, and in material 244 i have a new comment. But in real life, i'm ...
0
votes
1answer
10 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 ...
3
votes
1answer
23 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
0answers
38 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
87 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
40 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
2answers
48 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
50 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
43 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
15 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
0answers
23 views

Address in mailbox given [] does not comply with RFC 2822, 3.6.2

I am using swiftmailer module to send email in Drupal 8. But when Iam sending the email via contact form getting the following error An attempt to send an e-mail message failed, and the following ...
1
vote
3answers
58 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></...
0
votes
0answers
10 views

Reservations module: Confirm reservation email

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 ...
0
votes
0answers
11 views

Why do I receive only 4 of 5 mails sent with the contact form?

On my D7 site, I use the default contact form. Every now and then, the website owner tells me, that he has not received mails sent by clients via the form - but when I tested it with some mails, we ...
2
votes
1answer
55 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 ...
1
vote
1answer
19 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
0answers
5 views

User Relationship: Independent mail template for each relationship type

Using user relationship module I have created 2 relationships Friends Event Invitation So far so good, however when I tried to change the email template for the Event Invitation it took me to the ...
0
votes
1answer
31 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 ...
1
vote
0answers
16 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 ...
3
votes
1answer
53 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 ...
0
votes
1answer
46 views

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
20 views

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

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
41 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 ...
6
votes
1answer
43 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@...
4
votes
2answers
83 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
29 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?
0
votes
0answers
18 views

Email successfully sent or not?

I have a Contact form. When a user submit the contact form, it sends a e-mail to user. My requirement is to check that the e-mail status that it is successfully sent or not. I am making a listing ...
0
votes
1answer
100 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 ...
1
vote
0answers
29 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
52 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] ...
1
vote
1answer
29 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 ...
1
vote
0answers
53 views

Layout my newsletter on gmail

I encounter layout problems on my newsletter gmail android. Here is a correct display : and here display on android : landscape display is correct mode, but in portrait mode the price and social ...
2
votes
1answer
26 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, ...
0
votes
1answer
26 views

Products - Add to cart

I need some advice. My client has a website with loads of products. Now the client want the ability to add products to a cart, and instead of buying, they want the products to be mailed. How can I ...
1
vote
1answer
19 views

Assign email on user registeration

I have a custom user email field, I want when the user signs up to automatically set the email for he/she. For example, when the username field is user1 I want set the email to user1@mydomain.com ...
2
votes
1answer
24 views

How do I get the fields of form attached with a content type as token?

I do not know is it possible or not. I have a content type for creating tickets. I have a form attached to content type which contains ticket state and ticket assignee fields as drop down. Now I want ...
1
vote
0answers
30 views

Displaying Token Field Labels From Fetched Entity In Rules HTML Email

I am sending a MIME HTML email using rules. Much of the information contained in the email comes from a fetched custom entity (custom ECK entity). Using the available replacement patterns, I can get ...
1
vote
0answers
17 views

Random spaces in sent emails

I am using HTMLMailSystem to send emails from my Drupal 7 website. The problem is that random spaces appear in long emails. I have read about this and I tried the solutions on PHP mail function ...
1
vote
0answers
65 views

How to send email attachment without using Mime Mail module?

I am trying to send an email attachment without using the Mime Mail module or installing any other module. At the moment the email is being sent and I can receive it but it doesn't have the ...
0
votes
0answers
16 views

How to attach file to email without attachments array?

I have a file generated by tcpdf and would like to know how to attach it to an email without using ['attachments'][] The file is already base64 encoded and has the Content-Disposition headers. I ...
0
votes
1answer
51 views

Emails are not sent to outside domains

I deployed a Drupal 8 website, on a hosting service with cPanel, with domain mydomain.com. If I set this email address on the user profile: john.smith@example.com, that is an email address with a ...
0
votes
0answers
24 views

Use drupal mail for specific email address instead of smtp

I am using SMTP module to send emails. But now I want to use smtp for specific email address only. For example I want that when the receiver email is "abc@abc.com" then the smtp should not be used ...
1
vote
0answers
37 views

Contact form: recipient from node's Email field

Use case: Business Directory. Description: I need to create a dynamic contact form that will use each node's (business listing content type) individual Email field as the contact form's main recipient,...
1
vote
3answers
31 views

How to send an email to a specific user on new account creation using Rules?

I have an alumni association portal. When a new user creates profile on the portal, that account stays blocked until a specific user from that batch/department approves it. I am trying to make use ...
0
votes
0answers
25 views

Mailjet HTML and tracking

As the module devs isn't responding to posts like https://www.drupal.org/node/2032343 & https://www.drupal.org/node/2611824 I'm trying my luck here: I've got a site sending emails via both rules ...
1
vote
1answer
274 views

Formatting email sent with Contact form [duplicate]

I created a custom form (adding some additional fields) using the Contact module from the core of Drupal 8. When I submit the form is sent an email containing all values, but it is really bad ...
1
vote
2answers
29 views

HTML email containing selected node content

I need to send an email containing the content from one or more selected nodes. The nodes are selected in an email contact form by the user (which also needs to fill the rest of the form with other, ...
1
vote
0answers
16 views

how to split mailsytem based on condition

I have a site for sending newsletters and I want to send through two mail system. I was using mandrill mail and PepiPost mail service. If I want to send a newsletter to 100 users, I need to use ...