I have web-forms on my CMS driven website. When these forms are filled out and submitted they create a PDF file on my Linux server. The script used to create PDF is called dompdf. After the PDF is created, it sends an email via PHP mailer script. The PDF is emailed as an attachment with this email to a specified address.
What is needed:
I need to add Encryption to this email that gets sent from the server. I have GnuPG installed on Linux server. I need ether PGP or S/MIME encryption for this outbound email with attachment. My server has webmail client that supports both of these encryption types and can decrypt on the spot.