Welcome Guest, Not a member yet? Register   Sign In
Cannot send mails using SMTP
#3

InsiteFx,
I tried to use https, but it didn't work. However, I don't use it because I'm using shared hosting account so I cannot use SSL certificate - may it without temporaily without it?

The php.ini settings SMTP and smtp_port are set default, but the script connects to Office 365 SMTP server as you can see in the log.

Here's log from today's try:
Code:
ERROR - 2016-06-25 15:30:01 --> Severity: Warning --> stream_socket_enable_crypto(): SSL: crypto enabling timeout /home/ekspert/domains/szkola-ekspert.pl/danestrony/system/libraries/Email.php 2006
ERROR - 2016-06-25 15:30:01 -->

220 AM5PR0501CA0039.outlook.office365.com Microsoft ESMTP MAIL Service ready at Sat, 25 Jun 2016 13:36:50 +0000
<br /><pre>hello: </pre>The following SMTP error was encountered: <br /><pre>starttls: </pre>The following SMTP error was encountered: <br />The following SMTP error was encountered: <br />Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.<br />Failed to send AUTH LOGIN command. Error: <br />Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.<br /><pre>User-Agent: CodeIgniter
Date: Sat, 25 Jun 2016 15:29:46 +0200
From: &lt;[email protected]&gt;
Return-Path: &lt;[email protected]&gt;
To: [email protected]
Subject: =?UTF-8?Q?Wy=C5=9Bwietlono=20stron=C4=99?==?UTF-8?Q?!?=
Reply-To: &lt;[email protected]&gt;
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: &lt;[email protected]&gt;
Mime-Version: 1.0


Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

&lt;!DOCTYPE html&gt;&lt;html&gt;&lt;head&gt;&lt;title&gt;Ktoś wyświetlił stronę!&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;Ktoś wyświetlił stronę eszkola w języku pl.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</pre>

Any ideas? I have no idea...

On the other side, I have a Moodle instance in one of subdomains and it's configured to send mails using another account. And it works perfectly well, so it must work somehow...

Thanks in advance!
Pj
Reply


Messages In This Thread
Cannot send mails using SMTP - by pjlyoko - 06-23-2016, 08:19 AM
RE: Cannot send mails using SMTP - by InsiteFX - 06-23-2016, 11:14 AM
RE: Cannot send mails using SMTP - by pjlyoko - 06-25-2016, 06:42 AM
RE: Cannot send mails using SMTP - by pjlyoko - 02-12-2017, 11:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB