- Posts: 3
- Thank you received: 0
2016-03-02 20:37:37.531 ***** ERROR ***** Error sending mail
2016-03-02 20:37:37.532 ***** ERROR ***** SMTP Server : 10.0.1.1
2016-03-02 20:37:37.532 ***** ERROR ***** SMTP Port : 25
2016-03-02 20:37:37.532 ***** ERROR ***** Mail stored in Database : #21
2016-03-02 20:37:37.532 ***** ERROR ***** PHPMail error : SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
2016-03-02 20:37:37.532 ***** ERROR ***** PHPMail debug :
babynus wrote: Ssl is not mandatory, just default if authentication is set and no protocolecspecified.
To specify other protocole, just enter it before host name :
tls://hostname
Sorry, but this is explained in the user manual.
RTFM
babynus wrote: TLS uses (in standard) port 587
Port 465 is for SSL protocole.
If you dont specify protocole in host definition, protocole will be guessed from port
25 : standard smtp (not encrypted)
465 : SSL
587 : TLS
If you want to force TLS (for instance if you use TLS on a non standard port) ust specify it on host definition
smtp server : tls://mail.xxx.xx
$paramMailSmtpServer = ' ://address';
if ($paramMailSmtpUsername and $paramMailSmtpPassword) {
$phpmailer->SMTPAuth = true; // Enable SMTP authentication
$phpmailer->Username = $paramMailSmtpUsername; // SMTP username
$phpmailer->Password = $paramMailSmtpPassword; // SMTP password
$phpmailer->SMTPSecure = 'tls'; // default (for ports 25 and 587
if ($paramMailSmtpPort == '465')
$phpmailer->SMTPSecure = 'ssl'; // 465 is default for ssl
if (strpos ( $phpmailer->Host, '://' )) {
$phpmailer->SMTPSecure = substr ( $phpmailer->Host, 0, strpos ( $phpmailer->Host, '://' ) );
$phpmailer->Host = substr ( $phpmailer->Host, strpos ( $phpmailer->Host, '://' ) + 3 );
}
}
if (strpos ( $phpmailer->Host, '://' )) {
if (strpos ( $phpmailer->Host, '://' ) !== false) {
Please Log in or Create an account to join the conversation.
if (strpos ( $phpmailer->Host, '://' )!==false) {
$phpmailer->SMTPSecure = substr ( $phpmailer->Host, 0, strpos ( $phpmailer->Host, '://' ) );
if ($phpmailer->SMTPSecure=="smtp") $phpmailer->SMTPSecure="";
$phpmailer->Host = substr ( $phpmailer->Host, strpos ( $phpmailer->Host, '://' ) + 3 );
}
Please Log in or Create an account to join the conversation.
babynus wrote: But I would always advise to send encrpyted emails
ustas wrote: line 936, // $phpmailer->SMTPDebug=1;
->
2016-03-02 20:37:37.532 ***** ERROR ***** PHPMail debug :
Please Log in or Create an account to join the conversation.
You're right, will give possibility to enable in V5.3 :if ($logLevel>='3') $phpmailer->SMTPDebug=1;
if ($logLevel>='3') $phpmailer->SMTPDebug=1;
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
En poursuivant votre navigation, vous acceptez le dépôt de cookies tiers destinés au bon fonctionnement et à la sécurisation du site (gestion de session, reCaptcha) et à une analyse statistique anonymisée des accès sur notre site (Google Analytics). Si vous vous inscrivez, les informations que vous fournirez ne seront jamais divulguées à un tiers sous quelque forme que ce soit. En savoir plus
Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.
Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.