MailModule not getting settings from php.ini

26 views
Skip to first unread message

mkot...@gmail.com

unread,
Sep 10, 2015, 11:42:05 AM9/10/15
to Quercus
In the default WEB-INF/web.xml, I uncommented this setting:

<init-param>
<param-name>ini-file</param-name>
<param-value>WEB-INF/php.ini</param-value>
</init-param>

and created a WEB-INF/php.ini file:

[PHP]
[mail function]
SMTP = <remote host>
smtp_port = 587
smtp_username = <username>
smtp_password = <password>
sendmail_from = <email address>

These settings are apparently not reaching the MailModule, which still tries to connect to the default SMTP server at localhost on port 25. So, it looks like php.ini has no effect. How can this be fixed?

mkot...@gmail.com

unread,
Sep 15, 2015, 4:31:40 PM9/15/15
to Quercus, mkot...@gmail.com
It turns out that in WEB-INF/web.xml the path to php.ini has to be absolute, not just relative "WEB-INF/php.ini".
Reply all
Reply to author
Forward
0 new messages