Form mail encryption

Is it possible to encrypt form mails with OpenPGPor S/MIME?

Thanks!