Announcement

#1 2012-08-31 08:00:58

withhaojun
Member
2011-12-28
44

[resolved] hello,What's the matter

( ! ) 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

 

#2 2012-08-31 11:27:00

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: [resolved] hello,What's the matter

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'] = '';

Offline

 

#3 2012-08-31 11:40:48

withhaojun
Member
2011-12-28
44

Re: [resolved] hello,What's the matter

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

 

#4 2012-08-31 11:53:27

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: [resolved] hello,What's the matter

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

 

#5 2012-08-31 12:52:46

Eric
Former Piwigo Team
VALENCE (FR)
2005-03-25
1768

Re: [resolved] hello,What's the matter

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

Code:

[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

 

#6 2012-08-31 13:01:14

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: [resolved] hello,What's the matter

it's the same thing as configuring the SMTP server in piwigo, isn't it ?

Offline

 

#7 2012-08-31 13:20:26

Eric
Former Piwigo Team
VALENCE (FR)
2005-03-25
1768

Re: [resolved] hello,What's the matter

If you set Piwigo's options without telling php what's the smtp server to use, I'm not sure it works.

Offline

 

#8 2012-08-31 13:29:22

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: [resolved] hello,What's the matter

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

 

#9 2012-08-31 13:38:34

Eric
Former Piwigo Team
VALENCE (FR)
2005-03-25
1768

Re: [resolved] hello,What's the matter

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

 

#10 2012-08-31 13:50:10

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: [resolved] hello,What's the matter

I tested both

Code:

php.ini
SMTP = smtp.aliceadsl.fr

piwigo
$conf['smtp_host'] = '';

Code:

php.ini (without mail server at localhost)
SMTP = localhost

piwigo
$conf['smtp_host'] = 'smtp.aliceadsl.fr';

and both work (I use Wamp)

Offline

 

#11 2012-08-31 16:19:00

withhaojun
Member
2011-12-28
44

Re: [resolved] hello,What's the matter

thank you

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact