Mail encryption via background agent

Is it possible to send a PGP or X.509 encrypted internet mailfrom a web-triggered Agent respective Background agent, so without using Notes Client ?

Needed is only the mail encryption - not a mail signing.