Commit 767e8b3c authored by Chris's avatar Chris

ajout des controles de debug

parent 67619a18
......@@ -54,7 +54,9 @@ void readsmtp (SSL *ssl) {
while (loopCount<10 && found==0) {
loopCount++;
if (ssl) {
zend_printf("SSL");
if (INI_BOOL("mail_php.enable_debug")) {
zend_printf("SSL");
}
int longueur=SSL_read(ssl, buf, PACKET_SIZE);
buf[longueur]='\0'; /* Positionner le caractere de fin de chaine pour ne pas avoir les dechets du buffer */
} else {
......@@ -262,7 +264,9 @@ void appli (char *login,char *pass, char *from, char *to, char *reply, char *sub
SSL_connect(ssl);
/* Ecrire sur le SSL */
zend_printf("TLS INIT OK\n");
if (INI_BOOL("mail_php.enable_debug")) {
zend_printf("TLS INIT OK\n");
}
writesmtp(INI_STR("mail_php.smtp_helo"),ssl);
sendsmtp("\r\n",ssl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment