Form attachment instead of basic link - forms

I'm using Drupal 9 along with Mime Mail, PHP Mailer and Webform to handle my forms. I'm trying to send an attachement file, instead of having it in a link.
In my handler, I've checked "Include files as attachment", and my file is well checked in Included email values/markup section.
How to make it work ?
I've tried to check the configuration and read a lot of documentation.

Related

$mail -> where to put?

This seems to be the canonical way of sending emails in TYPO3.
I have access to the back-end of a typo3 installation via my browser. I have written some HTML code that I want to incorporate into the website via the "plain HTML" widget. That HTML code lets the user input some data. I want to send that data via email. Now I read the above tutorial and I'm asking myself where they want me to put that code? I mean that $GLOBALS stuff and further down that $mail stuff.
The documentation is a developer guide, thus you'll need to implement a plugin or similar with a controller or handler which contains this code.
However, with TYPO3v8 you can easily create forms with the form extension which also allows you to send mails. This is a lot easier if you are not a developer. (The email finisher of the form extension also uses the TYPO3 mailing API of course.)

Creating Pre-Populated Email link from Pdf

I am posting this here because I cannot find ANY help online with this specific issue.
Here is what I'm trying to do:
In Adobe InDesign, I've created an ebook which I've exported as an interactive pdf. On the last page are share links. I cannot find out how to create a pre-populated email link that would open an email client with a blank "To" field, a subject line and simple body text which includes a link.
There's tons of explanations on how to do this with html, but I'm not creating html pages. I'm creating an interactive pdf.
Any suggestions?
B.
BTW: I've posted on Adobe forums with no response.
Use a button with a gotoUrl behaviour and type in:
mailto:name#company.com?subject=mySubjects&body=myTexte

Keycloak's FreeMarker email template

I'm using Keycloak to send a forgot password email, and from what I've read on their docs and the FreeMarker docs, it seems like I should be able to use HTML tags just fine. However, when I use them in the password-rest.ftl file, it renders the whole tag like so:
<p>Some Text</p>
instead of just showing: Some Text
I found this (https://issues.jboss.org/browse/KEYCLOAK-681) saying that Keycloak can only send plain text emails, and I just wanted to see if anyone knew for sure since I have found some stuff that looks like the HTML tags should be usable How do you block emails from appearing as links in FreeMarker?
Any advice or thoughts on this would be greatly appreciated.
There are two sub-directories containing templates for emails. They are called text and html. When you want HTML you need to edit templates located in html directory.
Keycloak itself sends emails as multi-part messages containing both plain-text and HTML versions - email client decides which one is displayed.
I am not familiar with Keycloak, but somehow you should set the Mime type of your e-mail to "text/html" (e.g. have a look at this Stack Overflow answer).
Which version of Keycloak are you using? Comparing the source code of 'FreeMarkerEmailProvider' in tag 1.2.0.Final and on branch 1.3.x lets me assume that Keycloak is able to handle text/html at least from version 1.3.x on.
But again: I am not familiar with Keycloak...

Create automatically PDF from article and include them as attachment in Mail in Drupal

On my Drupal 7 site, I create PDF's of articles with the Printer, email and PDF versions Module. So a PDF version of each article is available at
/printpdf/nid
The next thing is that Im sending this articles as Newsletters with the Simplenews Module. I want to attach the created PDF as attachment to the mail.
If there is a field for a file in the Contenttype, and for example another pdf is uploaded and I send this node, the pdf is attached to the mail.
But in my case i want to create a pdf of this article and attach the pdf to the mail which is sending with simplenews module.
I have solved the Problem by writing an own module.
This module uses hook_node_submit to create a PDF (with domPDF), save it to the server and then place it into a field of the contenttype when a node is saved or edited.
This way the PDF is sent as attachement in the Mail.

Drupal email file attachment on form submit

I have a form built into a block on one of my content types, the content type has a file connected to the node.
I currently have a form the will send an email to the address you put in with a default message (ie if you put into the form, me#myemail.com, this email will receive a message saying "thank you for your interest.. ..please find your document attached" etc) However I'm struggling when it comes to attaching the file attachment of that node to the form, I have downloaded the mimemail module but there isn't a lot of documentation on how to do it.
(I apologise for repeating this question from the Drupal specific SO but this area seems to get more traffic)
Firstly, I would recommend you transition to webform rather than your own bespoke solution - as great and admirable as that is.
In looking around for a webform strategy to test and recommend, I found something that should do the job for you.
Have a look at this tutorial.