Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm looking for a solution to send S/Mime email from my Drupal server to some email adress. Do you have plan to add this kind of support in the near future ? Or guideline you can give me how to achieve this.
Perhaps I could make a new module for that or it could be cool to add this as an option in MimeMail
http://php.net/manual/fr/function.openssl-pkcs7-encrypt.php seems the way to encrypt in S/Mime
Comments
Comment #1
leenx CreditAttribution: leenx commentedGreetings ...
I have some code that I believe would help with this issue, but not sure how to integrate cleanly.
below would be the needed function ...
And this is how you might call it
Hope this helps
Comment #2
TR CreditAttribution: TR commentedI would be interested in including this, if we had a patch and some tests for this feature. I am not planning on implementing this myself, but if someone in the community wants to contribute a solution that would be appreciated.
This will need to be done for Drupal 8 first, then backported to Drupal 7 only if there is community interest in the backport. The solution should include Mime Mail settings to configure and enable S/Mime, as well as tests for this feature.
Comment #3
hammiti CreditAttribution: hammiti commentedHello, has anyone tested the the code above in D7?
my problem is that the signature is not attached to email as file but within the email-content. Any idea?
Comment #4
leenx CreditAttribution: leenx as a volunteer commentedGreetings @hammiti ...
The code attached was for Drupal 7 and if I remember correctly, the sigs are meant to be inline, not as attachments.
Beyond that I can't really say. I hope you find a working solution.