( ! ) Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in E:\WEB\wamp\www\include\functions_mail.inc.php on line 723
Call Stack
# Time Memory Function Location
1 0.0010 222848 {main}( ) ..\install.php:0
2 3.5266 2495176 pwg_mail( ) ..\install.php:491
3 3.5714 2987352 trigger_event( ) ..\functions_mail.inc.php:685
4 3.5714 2992152 call_user_func_array ( ) ..\functions_plugins.inc.php:131
5 3.5714 2992184 pwg_send_mail( ) ..\functions_plugins.inc.php:131
6 3.5714 2992248 mail ( ) ..\functions_mail.inc.php:723
Offline
PHP can''t find the mail system on your server
I think you have to configure it whith these parameters in your local configuration (lugin LocalFilesEditor, first tab)
$conf['smtp_host'] = ''; $conf['smtp_user'] = ''; $conf['smtp_password'] = '';
Offline
mistic100 wrote:
PHP can''t find the mail system on your server
I think you have to configure it whith these parameters in your local configuration (lugin LocalFilesEditor, first tab)Code:
$conf['smtp_host'] = ''; $conf['smtp_user'] = ''; $conf['smtp_password'] = '';
i used wampserver
is the wampserver problem?
Offline
well there is no mail server in wampserver
so you should define your ISP smtp mail server with the config I gave you
or if you are just testing and will use a hosting service latter, you can use http://smtp4dev.codeplex.com
it's not a mail server but it intercepts all local mail trafic and allow to test it
Offline
mistic100 wrote:
well there is no mail server in wampserver
Sorry but that's not right. Wampserver hosts an Apache serveur with php and the php mail() function works fine if the following section is set in php.ini
[mail function] ; For Win32 only. ; http://php.net/smtp SMTP = my.externalsmtp.server //could be smtp.gmail.com for example ; http://php.net/smtp-port smtp_port = 25
So no need to use a dedicated mail server.
Offline
it's the same thing as configuring the SMTP server in piwigo, isn't it ?
Offline
If you set Piwigo's options without telling php what's the smtp server to use, I'm not sure it works.
Offline
you made me doubt so I checked:
functions_mail.inc.php, line 706
if $conf['smtp_host'] is defined we don't use the mail() function but a custom class using sockets
Offline
We are talking about using this with Wampserver, right ?
I've Wampserver v2.2.d upgraded to Apache 2.2.21 / Php 5.3.10 / MySql 5.5.20. If I don't set php [mail function] section but set Piwigo's smtp options, I'm unable to send any email from the gallery.
And I get the same warning message as withhaojun's. A Wampserver issue ? Why not...
Offline
I tested both
php.ini SMTP = smtp.aliceadsl.fr piwigo $conf['smtp_host'] = '';
php.ini (without mail server at localhost) SMTP = localhost piwigo $conf['smtp_host'] = 'smtp.aliceadsl.fr';
and both work (I use Wamp)
Offline