Le vendredi 10 février 2017 à 07:37 -0700, Ralf Becker-5 [via
EGroupware] a écrit :
Hi Bastien,Â
Hello,Â
Â
I installed egroupware on a shared server hosting that doesn’t let
me sendÂ
mail by SMTP, even on submission port ; so I needed to enable
sendmail modeÂ
transportÂ
Â
I did a small modification in api/src/Mailer.php (see commit
below)Â
Â
https://github.com/BastienDurel/egroupware/commit/d3066ab6b229327a4
bcd1a034e84ffa99a14001d
I commented on Github, that there’s a better place to add your code:Â
  Â
https://github.com/BastienDurel/egroupware/commit/d3066ab6b229327a4bc
d1a034e84ffa99a14001d#commitcomment-20833882
I tried to use globals defined in header.inc.php to force this
behaviour onÂ
every account, but it does not persist if I edit header via web
form.Â
Is there a better way to define this server-wide setting ? If not,
how toÂ
edit the form ?Â
You could insert it in egw_config table:Â
  INSERT INTO egw_config (config_app,config_name,config_value)
VALUESÂ
(‘phpgwapi’,‘sendmail’,‘True’);Â
Or dont edit the file ;-)Â
It is never edited automatic by EGroupware.Â
It would probably be better to create a new SMTP backend, you couldÂ
select when creating the account, that uses sendmail.Â
RalfÂ
Hello,
Thanks for your suggestion. I changed the code location.
I want to keep a site-wide config for this, because of my use case.
A per-account option would be nice too, you’re right.
Is there a documentation on egroupware coding ? I’d like to have this
code merged so I can upgade later, and for that I think it must be
cleaner than “just put this at the end of header.inc.php”
–
Bastien Durel
DATA
Intégration des données de l’entreprise,
Systèmes d’information décisionnels.
bastien.durel@data.fr
tel : +33 (0) 1 57 19 59 28
fax : +33 (0) 1 57 19 59 73
12 avenue Raspail, 94250 GENTILLY France
www.data.fr