Questions tagged [mimemail]
The Mime Mail module gives Drupal core and other Drupal modules the ability to send HTML email messages.
32 questions
1
vote
2
answers
232
views
I cannot send HTML mail using "{{ node.body.value }}"
I use Drupal 9 and the Rules module to send emails when an Article node is updated.
I installed the Mimemail module and set the formatter to mimemail; all the field are correctly rendered. Only {{ ...
0
votes
0
answers
167
views
Theming mime mail rule email send
I've got a rule that fires properly and sends an email after a comment is saved. I want to theme this specific rule using the documented method.
My template name: mimemail-message--rules--...
0
votes
0
answers
450
views
How can I send an email for confirmations via a webform?
I'm fairly new to Drupal development but have been learning quickly. I've been trying to setup my Drupal site to send emails for form submissions confirmations through Webform (I just need us to be ...
0
votes
1
answer
554
views
Send HTML mail with plain text mime/alternative (for anti-spam)
We use Webform Drupal 8 module to handle newsletter subscription on a website. An html formatted email is sent to confirm subscription. Unfortunately, this email is sent with only content-type:text/...
1
vote
1
answer
107
views
How do I name a mimemail-message.tpl.php template to be used with a specific webform?
I cant seem to get the naming of the mimemail-message.tpl.php correct in Drupal 7. I know the naming scheme says "mimemail-message--[module]--[key].tpl.php" but either I'm not understanding ...
0
votes
1
answer
79
views
What's The Security Implications for "Send arbitrary files" in Permissions
For my webforms, I want to receive attachments, when I receive an email. I had issues receiving them until I set the permissions for Anonymous User to allow them to use "Send arbitrary files"...
0
votes
1
answer
327
views
Image URLs aren't MIME encoded in email
I'm using Drupal core 8.9.3 and Mime Mail 8.x-1.0-alpha3.
I have installed MimeMail and implemented mymodule_mail hook.
The UI is set to use "Mime Mailer mailer". The UI for Mime Mail is ...
1
vote
1
answer
758
views
How do I send a HTML email?
Does anyone know how to send HTML email using the Rules module? This was a pretty common task in Drupal 7, and I think the rule was included with the Mime Mail module.
The Drupal 8 version of Mime ...
0
votes
0
answers
93
views
Email isn't sent to Hotmail
I have a webform which sends two emails upon submission:
To the administrators of the site via webform emails
To the client who submitted an email via rules using 'send html email'
Everything is ...
0
votes
0
answers
42
views
Attachments are included only on manual resend, but not on initial form submission
Using Webform and Mimemail to send HTML emails and uploaded files attached to emails.
When submitting the form, the file is not attached to the email. The box is ticked.
If you edit the submitted ...
1
vote
0
answers
677
views
How do I send HTML mail?
Trying to send HTML mail from Webform using Mimemail
I've copied mimemail-messages.html.twig to my theme's folder and it's properly picked up. Problem is it's applied to all outgoing emails, user ...
1
vote
1
answer
643
views
Attach file to email
I have a site with a webform, which when submitted sends an email. The form has a file upload which should then attach the file as an attachment to the email. I'm not getting any attachment.
I've ...
1
vote
1
answer
45
views
Fetch Customer Profile from Line Items
In a webshop I’ve build I want to send individual e-mails to owners of a prodruct in the shop after a product is sold. To do this I got this as a solution: Send mail to product owner with Rules
But ...
1
vote
1
answer
248
views
HTML markup is removed from email
I am trying to send an email with a small html form of hidden fields and a submit button. I have been piecing this together from several very incomplete answers and documentation sources that take ...
1
vote
2
answers
52
views
Why can't I save a Send HTML Email action?
I have a rule component set up that currently sends an HTML email. I need to change the body of the email to include a new field, but when I do and press Save, it doesn't return to the Rule page, it ...
1
vote
1
answer
252
views
Sender name in "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
2
answers
413
views
How do I send plaintext email?
I've been using a combination of drupal_mail() and Mimemail to send out HTML formatted email; it's working fine. However, in some circumstances, I also need to be able to send out plaintext email, ...
1
vote
1
answer
203
views
Why isn't the default template used?
I set Mime Mail as the sitewide default mailing system and overrode mimemail-message.tpl.php. My custom template is used correctly for e-mails like account activation, but when I send an HTML e-mail ...
1
vote
1
answer
423
views
Message template with mail key
In template_preprocess_mimemail_message() I checked that mail key is mimemail_message__subscriptions_mail__node-type-post, but none of these templates is using in the email:
...
0
votes
3
answers
1k
views
Sending multiple attachments following the module instructions doesn't work
Through drupal_mail('mymodule', ...) I'm trying to send e-mails with four (4) attachments. When I send an e-mail, I is delivered instantly with the correct subject and body. However, I only get the ...
1
vote
1
answer
1k
views
Include email attachment in new content Rule
I'm trying to send an attachment within a rule I've set up for new content notification. I have the requisite modules installed: Mail System, Mime Mail, etc. I've set the rule up to send HTML mail ...
0
votes
1
answer
1k
views
Conditions for using mail.css with drupal_mail()
Problem
I'm trying to style an email sent with drupal_mail. Sometimes it works, other times it doesn't and I can't work out why.
I'm running mail system, SMTP and mimemail:
Mail system sets up: ...
1
vote
1
answer
2k
views
How can I send emails with drupal_mail() and hook_mail()?
I have this code for send a simple notification email.
function mymodule_commerce_checkout_complete($order){
$buyer = user_load($order->uid);
if(in_array('wholesale', $buyer->roles)){
$...
0
votes
1
answer
50
views
HTML markup is still stripped out, even if I am using the mimemail-message.tpl.php template
I'm having an issue where confirmation emails from Ubercart seem to have HTML markup removed. In my setup somehow the HTML markup in the Ubercart email template is being stripped when it reaches the ...
1
vote
1
answer
268
views
What function should I use in instead of mimemail()?
I was using mimemail(), a function defined from the MIME mail module, in Drupal 6 to send emails using attachments.
The Drupal 7 module doesn't have mimemail().
What function should I use in Drupal 7, ...
0
votes
1
answer
939
views
Print module PDF attachment
I have a custom module that provides a path that sends an email (mimemail) with a pdf attachment generated from the print_pdf module that comes with the print module.
Here is what my HOOK_mail ...
0
votes
1
answer
447
views
How can I send HTML mail when a new content is created with attachments using these modules?
In my project, I need to send HTML mail when a new content is created with attachments using the Mimemail, Mail System, SMTP, and Rules modules.
Plain text mail is working fine with rules module but ...
1
vote
0
answers
287
views
Mime mail system attaching two files [duplicate]
I am trying to send pdf through using mime mail module + mailsystem module + smtp authentication module
function send_mail(){
$to='[email protected]'; $subject='xxxx'; $message='aaaaa';
$from='x123@gmail....
5
votes
1
answer
12k
views
Sending HTML email with drupal_mail()
I'm trying to send HTML emails from a module and I'm using drupal_mail().
It's not possible to send HTML email with just drupal_mail() (see here), and I've installed Mimemail. However, the email is ...
6
votes
2
answers
8k
views
How can I use these modules together?
Is it possible to use Mimemail, Mail System, and SMTP Authentication Support modules together?
Currently I am using Mimemail to send HTML-formatted messages; however, because of the configuration of ...
1
vote
0
answers
411
views
Email isn't sent on dedicated VPS
I have this code in a custom module used to send an email through Mimemail
if (!isset($message['headers'])) $message['headers'] = array('From' => $from, 'Sender' => variable_get('site_name', ...
3
votes
2
answers
4k
views
Adding CSS styles
I'm using the Mimemail module with the Simplenews module to theme an email newsletter, but it's not the least bit clear to me where I can store my styles so mimemail can then add them as inline styles ...