Я пробовал предлагаемое решение, и косая черта в имени файла не работала для меня, например: ... (). getResourceAsStream ("/ my.properties"); null был возвращен
Удаление слэша работало: .... getResourceAsStream ("my.properties");
Вот от doc API: перед делегированием из данного имени ресурса создается имя абсолютного ресурса с использованием этого алгоритма:
If the name begins with a '/' ('\u002f'), then the absolute name of the resource is the portion of the name following the '/'.
Otherwise, the absolute name is of the following form:
modified_package_name/name
Where the modified_package_name is the package name of this object with '/' substituted for '.' ('\u002e').
Заглянув в системный модуль, я обнаружил, что форма настроек ссылается на следующее:
variable_get('site_mail', ini_get('sendmail_from'));