Update gettext : add spaces
DomCi : remove line too longs on all the files git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5280 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
14
smtp.php
14
smtp.php
@@ -79,7 +79,7 @@ class smtp
|
||||
{
|
||||
if ($errstr === "" && $php_errormsg !== "")
|
||||
$errstr = $php_errormsg;
|
||||
throw new \Exception (sprintf (dgettext("domframework",
|
||||
throw new \Exception (sprintf (dgettext ("domframework",
|
||||
"Can't connect to SMTP server : %s"), $errstr), 500);
|
||||
}
|
||||
stream_set_timeout ($this->smtpStream, $this->timeout);
|
||||
@@ -103,14 +103,14 @@ class smtp
|
||||
if (@stream_socket_enable_crypto ($this->smtpStream, true,
|
||||
STREAM_CRYPTO_METHOD_TLS_CLIENT) ===
|
||||
false)
|
||||
throw new \Exception (sprintf (dgettext("domframework",
|
||||
throw new \Exception (sprintf (dgettext ("domframework",
|
||||
"Can't activate STARTTLS %s"), strstr ($php_errormsg, ": ")), 500);
|
||||
ini_set('track_errors', 0);
|
||||
$this->debug ("STARTTLS ACTIVATED\n");
|
||||
}
|
||||
}
|
||||
elseif ($this->starttls === "encrypt")
|
||||
throw new \Exception (dgettext("domframework",
|
||||
throw new \Exception (dgettext ("domframework",
|
||||
"Server doesn't supports STARTTLS"), 500);
|
||||
|
||||
if ($this->user !== null && $this->password !== null)
|
||||
@@ -133,7 +133,7 @@ class smtp
|
||||
}
|
||||
else
|
||||
throw new \Exception (
|
||||
dgettext("domframework",
|
||||
dgettext ("domframework",
|
||||
"No authentication method available for the server"), 500);
|
||||
}
|
||||
}
|
||||
@@ -169,7 +169,7 @@ class smtp
|
||||
{
|
||||
if ($this->smtpStream === null)
|
||||
throw new \Exception (
|
||||
dgettext("domframework",
|
||||
dgettext ("domframework",
|
||||
"Can't send email : not connected to SMTP server"), 500);
|
||||
$from = $this->cleanMail ($from);
|
||||
if (is_string ($to))
|
||||
@@ -199,7 +199,7 @@ class smtp
|
||||
{
|
||||
if ($this->smtpStream === null)
|
||||
throw new \Exception (
|
||||
dgettext("domframework",
|
||||
dgettext ("domframework",
|
||||
"Can't send email : not connected to SMTP server"), 500);
|
||||
$this->putLine ("QUIT\r\n");
|
||||
fclose ($this->smtpStream);
|
||||
@@ -211,7 +211,7 @@ class smtp
|
||||
{
|
||||
if ($this->smtpStream === null)
|
||||
throw new \Exception (
|
||||
dgettext("domframework",
|
||||
dgettext ("domframework",
|
||||
"Can't send email : not connected to SMTP server"), 500);
|
||||
$this->putLine ("RSET\r\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user