Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Impossible d'envoye...
 
Notifications
Clear all

Impossible d'envoyer un mail "error"

16 Posts
3 Users
0 Reactions
22.3 K Views
(@thierry07)
Posts: 7
Active Member
Topic starter
 
[#1324]

Hello, I can not send an email? My smtp connextion (25) is not in ssl (not ssl)

log:

2013-08-12 15:21:23 ** ERROR ** ERROR **
2013-08-12 15:21:23
** ERROR ** on file 'E:sites webprojectorriatoolprojector.php' at line (650)
2013-08-12 15:21:23
** ERROR ** cause = fsockopen(): unable to connect to ssl://mail.ncf-web.com:25 (Unknown error)
2013-08-12 15:21:23
** ERROR ** Error sending mail
2013-08-12 15:21:23
** ERROR ** SMTP Server : ssl://mail.ncf-web.com
2013-08-12 15:21:23
** ERROR ** SMTP Port : 25
2013-08-12 15:21:23
** ERROR ** SMTP User : XXXX
2013-08-12 15:21:23
** ERROR ***** Mail stored in Database : #32

How to parameterize correctly without using ssl?
Thank you in advance


 
Posted : 12 Aug 2013 17H30
Klaus
(@climb4fun)
Posts: 449
Contributor
 

Hi Thierry,

would it be checky to ask you for a translation? May more people out of community could help you.

Regards.

Klaus


 
Posted : 13 Aug 2013 12H59
(@babynus)
Posts: 14952
Member Admin
 

Don't provide "smtp login name" and "smtp login password".
😉


 
Posted : 14 Aug 2013 1H12
(@thierry07)
Posts: 7
Active Member
Topic starter
 

I have a login and password (thankfully). But I do not use ssl certificate.

The problem comes because I think the link is: 2013-08-12 15:21:23 ** ERROR ** SMTP Server : ssl://mail.ncf-web.com


 
Posted : 14 Aug 2013 11H17
(@babynus)
Posts: 14952
Member Admin
 

There are 2 methods implemented to connect to mai server :
1) Pure smtp, using not authentified mail php function : this method is used when no login password is provided
2) Other authentified method using socket connections : this method is used when login and password is provided
For the second methid, if no protocol is provided (before server name); ssl is automatically added.
To access via other protocol, just specify it before server name :

smtp://myserver.xx
 http://myserver.xx 

 
Posted : 14 Aug 2013 19H00
(@thierry07)
Posts: 7
Active Member
Topic starter
 

Hello,

Thank you, but still a mistake?? 🙁
The log:

2013-08-14 18:06:51 ** ERROR ** on file 'E:sites webprojectorriatoolprojector.php' at line (650)
2013-08-14 18:06:51 ** ERROR ** cause = fsockopen(): unable to connect to smtp://mail.ncf-web.com:25 (Unable to find the socket transport "smtp" - did you forget to enable it when you configured PHP?)
2013-08-14 18:06:51 ** ERROR ** Error sending mail
2013-08-14 18:06:51 ** ERROR ** SMTP Server : smtp://mail.ncf-web.com
2013-08-14 18:06:51 ** ERROR ** SMTP Port : 25
2013-08-14 18:06:51 ** ERROR ** SMTP User : XX
2013-08-14 18:06:51 ** ERROR ** Mail stored in Database : #48


 
Posted : 14 Aug 2013 20H10
(@babynus)
Posts: 14952
Member Admin
 

Hi,

For a socket on SMTP, you should try port 587 instead of 25.


 
Posted : 14 Aug 2013 22H19
(@thierry07)
Posts: 7
Active Member
Topic starter
 

Port 587 does not work and it is normal because it is using port 25.
The telnet command mail.ncf-web.com 25 is good.
I'm still looking for a solution ...


 
Posted : 14 Aug 2013 22H44
(@babynus)
Posts: 14952
Member Admin
 

Just try without using login / password 😉


 
Posted : 15 Aug 2013 15H59
(@thierry07)
Posts: 7
Active Member
Topic starter
 

The log says:
2013-08-15 21:46:34 ** ERROR ** cause = mail(): Failed to connect to mailserver at "smtp://mail.ncf-web.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

My php.ini :

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = mail.ncf-web.com
; http://php.net/smtp-port
smtp_port = 25

???

My php info is good no ? : http://ncf-project.auto-bing.eu/info.php


 
Posted : 15 Aug 2013 23H53
(@babynus)
Posts: 14952
Member Admin
 

Are you sure mail.ncf-web.com is a smtp mail server ?
It respond to http with an html : smtp server do not.


 
Posted : 16 Aug 2013 18H18
(@thierry07)
Posts: 7
Active Member
Topic starter
 

Of course I am, because this is our mail server our company and our customers. It works by pop, imap and smtp. Made a telnet (windows) on port 25 and you will see the response (telnet mail.ncf-web.com 25)


 
Posted : 17 Aug 2013 10H47
(@babynus)
Posts: 14952
Member Admin
 

Does your server allow anonymous connections ?
if yes, you must try wothout user/password (but your last test seems to show it does not work)

It seemsyou should try with authenticate : define login / password.
The issue is to find the expected protocole as your server does not allow ssl (wich is default for authentified connections).
try :
smtp://mail.ncf-web.com
ssmtp://mail.ncf-web.com
tcp://mail.ncf-web.com
http://mail.ncf-web.com
pop://mail.ncf-web.com
//mail.ncf-web.com


 
Posted : 17 Aug 2013 23H02
(@babynus)
Posts: 14952
Member Admin
 

Other try :
Update file /tool/projector.php, and comment line 618 :

 //$smtpHost='ssl://'.$smtpHost;

Then try host as "mail.ncf-web.com" (without any protocole)


 
Posted : 17 Aug 2013 23H06
(@thierry07)
Posts: 7
Active Member
Topic starter
 

Thank you for the answer.
The connection is fine without "ssl". But I have always an error in the log

2013-08-19 10:49:56 ** ERROR ** Error sending mail
2013-08-19 10:49:56 ** ERROR ** SMTP Server : mail.ncf-web.com
2013-08-19 10:49:56 ** ERROR ** SMTP Port : 25
2013-08-19 10:49:56 ** ERROR ** SMTP User : tr
2013-08-19 10:49:56 ** ERROR ** Mail stored in Database : #63

It seems that the connection is made without using the password. Files in the fileconfigparameters.php there is not variable "paramMailSmtpPassword!" Is this normal?


 
Posted : 19 Aug 2013 13H02
(@babynus)
Posts: 14952
Member Admin
 

In non ssl mode, user/password is not used (only anonymous connections)
paramMailSmtpPassword is stored in the database, like most of the parameters.


 
Posted : 19 Aug 2013 18H47
Share:

Scroll to Top