We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17851
    • 213 Posts
    Is there a way to get MODx to send encrypted email? I’m using eform to capture a user’s info on an SSL page, which will include SSN, and then send via email to someone. Obviously I can’t do that in plain text. I’ve read some about how to use PGP to encrypt emails, but does MODx already have support for encrypted emails? If not, is PGP the best way to do this?
      Mark Macatee
      President
      Power 10 Solutions
      http://www.power10solutions.com
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      MODx does not do this natively. Your best bet would be to use a snippet/function and the eFormOnBeforeMailSent event and encrypt work with the fields (the event provides the &$fields array so you can directly manipulate them). You can create a new field ($fields[’encrypted-field’] = ...), organize and encrypt the other fields that you want encrypted, and use that fieldname as the placeholder in your report tpl. Or you could wrap up all the fields you want encrypted and make them an attachment.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 17851
        • 213 Posts
        ok, thanks...that’s what I was thinking. I wonder if anyone has done this already? Has nobody ever had a need to pass secure information via email?
          Mark Macatee
          President
          Power 10 Solutions
          http://www.power10solutions.com