fabacab / wp-pgp-encrypted-emails

:closed_lock_with_key: :e-mail: Encrypts WordPress emails using OpenPGP or S/MIME with a familiar API.
https://wordpress.org/plugins/wp-pgp-encrypted-emails/
GNU General Public License v3.0
39 stars 10 forks source link

Avoid "open_basedir restriction" error #29

Closed p7996619 closed 6 years ago

p7996619 commented 6 years ago

Fixes a problem where S/MIME email sending fails due to a web hoster restriction. By using sys_get_temp_dir() it's possible to use a different configured path from the unix default '/tmp'. https://php.net/manual/en/function.tempnam.php#93256

fabacab commented 6 years ago

Thank you very much for catching this!