Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 27710

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

1 vote

Message not being sent in the body of the mail

You need to add a hook_mail code As this line $mailManager->mail($module, $key, $to, $langcode, $params, NULL, $send); behind the scenes will invoke this hook_mail function. something like this: / …
No Sssweat's user avatar
  • 31.6k
0 votes

How can you attach a file to a mail using Symfony mailer?

I haven't used that module yet, but I think its $file = File::load($form_file[0]); $params['attachments'][] = [ 'filepath' => $file->createFileUrl(FALSE), 'filename' => $file->getFilename(), 'fi …
No Sssweat's user avatar
  • 31.6k
0 votes
Accepted

adding the field tokens while creating the component

In Rules you need to use - not a _ Try [node:field-working] [node:field-remoz] EDIT Click on replacement patterns, it will show you all the fields that you can use. Look for your field on the …
No Sssweat's user avatar
  • 31.6k
1 vote
Accepted

Sending form to mail from custom module fails without error

Did you implement hook_mail in your module? – Alfred Armstrong where to place the hook_mail function? – Lance Goes in the .module file. Ex: my_module.module /* * Implements hook_mail(). */ function …
No Sssweat's user avatar
  • 31.6k
3 votes

How do I modify the email maximum length to 320 characters?

You can using hook_element_info_alter. mymodule.module /* * Implements hook_element_info_alter(). */ function mymodule_element_info_alter(array &$info) { if (!empty($info['email'])) { $info['e …
No Sssweat's user avatar
  • 31.6k
0 votes

HTML tags not supported when sending emails in Drupal 8

In D7 you need to install Mime Mail and in your code add: $message['headers']['Content-Type'] = 'text/html; charset=UTF-8; format=flowed'; Hopefully it's still the same on D8, give it a try.
No Sssweat's user avatar
  • 31.6k
7 votes
Accepted

How can I send a HTML email?

Use the Mime Mail module The Mime Mail module gives Drupal core and other Drupal modules the ability to send HTML email messages. This is an all-Drupal solution that does not require external third-p …
No Sssweat's user avatar
  • 31.6k
3 votes
Accepted

How to send mail for every X months using rules?

Requirements: Rules, Rules UI and Rules Scheduler must be installed and enabled. Step 1) Create a new component, I named it send mail every 2 months Step 2) Add an action of Send Mail, fill out t …
No Sssweat's user avatar
  • 31.6k
-1 votes

Is there a way to check which system was used to send mail?

it's obvious: But most aren't, so you can click on the 3 dots and select show original Here, for example, you can see this other one was sent using Zoho Mail's SMTP By the way, I was also seeing emails … Senders who authenticate their messages with all three methods may see less filtering and fewer emails going to spam. source: How to Prevent Emails from Going to Spam: The Ultimate Guide …
No Sssweat's user avatar
  • 31.6k
1 vote

Need to find and disable an email that may be coming from a module

If you have the Rules module enabled, go and check the rules /admin/config/workflow/rules It's very likely that there is a rule that is sending the emails. So just disable it. …
No Sssweat's user avatar
  • 31.6k
1 vote
Accepted

Send Email when node has been updated with specific term/selection

In rules Add Condition >> Data Comparison >> node:field-[name of your field goes here] Add Action >> Send Mail
No Sssweat's user avatar
  • 31.6k
0 votes

How can I attach multiple pdfs to drupal_mail() function?

Here is an example of how you can attach multiple attachments to an e-mail: /** * Implements hook_mail(). */ function mymodule_mail($key, &$message, $params) { switch($key) { case 'test1 …
No Sssweat's user avatar
  • 31.6k
2 votes
Accepted

Send email to users after node update

But my problem is when I edit this room and I add New members, I want to send an email only for new. As hook_entity_update mentions Get the original entity object from $entity->original. …
No Sssweat's user avatar
  • 31.6k
7 votes
Accepted

How to change webform default email address from sender side?

You can usually find a configure link in the module list. Looks like in /admin/config/content/webform and scroll down to default e-mail values. (For Drupal 6, go to yoursite.com/admin/settings …
No Sssweat's user avatar
  • 31.6k
2 votes
Accepted

How to send e-mail to node author 1w before date field in node?

Requirements Rules, Rules UI, Rules Scheduler, Date, and Date API modules Add date field Go to your content types Manage Fields and add a field of type Date. I called mine Deadline, machine name: fiel …
No Sssweat's user avatar
  • 31.6k

15 30 50 per page