PHP Classes

Sending via Microsoft Exchange SMTP Stack

Recommend this page to a friend!

      MIME E-mail message sending  >  All threads  >  Sending via Microsoft Exchange SMTP...  >  (Un) Subscribe thread alerts  
Subject:Sending via Microsoft Exchange SMTP...
Summary:Sending via Microsoft Exchange SMTP Stack
Messages:5
Author:Rafael Razim
Date:2015-05-13 08:15:34
 

  1. Sending via Microsoft Exchange SMTP...   Reply   Report abuse  
Picture of Rafael Razim Rafael Razim - 2015-05-13 08:15:34
Hi!

I want to send messages via a Microsoft Exchange 2008 Server STMP Stack, however there seems to be a problem identifiying the login protocol.

Which protocol should I use ?

Attached you find a copy of the STMP dialog

[13-May-2015 11:13:40] Connected to SMTP server "******".

[13-May-2015 11:13:40] S 220 ****** Microsoft ESMTP MAIL Service ready at Wed, 13 May 2015 10:13:40 +0200

[13-May-2015 11:13:40] C EHLO 10.210.26.70

[13-May-2015 11:13:40] S ****** Hello [10.210.106.74]

[13-May-2015 11:13:40] S 250-SIZE 31457280

[13-May-2015 11:13:40] S 250-PIPELINING

[13-May-2015 11:13:40] S 250-DSN

[13-May-2015 11:13:40] S 250-ENHANCEDSTATUSCODES

[13-May-2015 11:13:40] S 250-STARTTLS

[13-May-2015 11:13:40] S 250-AUTH

[13-May-2015 11:13:40] S 250-8BITMIME

[13-May-2015 11:13:40] S 250-BINARYMIME

[13-May-2015 11:13:40] S 250-CHUNKING

[13-May-2015 11:13:40] S 250-XEXCH50

[13-May-2015 11:13:40] S 250 XSHADOW

[13-May-2015 11:13:40] Error: it is not supported any of the authentication mechanisms required by the server

  2. Re: Sending via Microsoft Exchange SMTP...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-05-13 08:25:08 - In reply to message 1 from Rafael Razim
I think you need to enable TLS setting the smtp_start_tls to true, so the server exposes the supported authentication mechanisms.

  3. Re: Sending via Microsoft Exchange SMTP...   Reply   Report abuse  
Picture of Rafael Razim Rafael Razim - 2015-05-13 08:33:58 - In reply to message 2 from Manuel Lemos
Hi!

I tried this and still same error. Now SMTP dialog looks like

[13-May-2015 11:32:16] Connected to SMTP server "******".

[13-May-2015 11:32:16] S 220 ****** Microsoft ESMTP MAIL Service ready at Wed, 13 May 2015 10:32:15 +0200

[13-May-2015 11:32:16] C EHLO 10.210.26.70

[13-May-2015 11:32:16] S ****** Hello [10.210.106.74]

[13-May-2015 11:32:16] S 250-SIZE 31457280

[13-May-2015 11:32:16] S 250-PIPELINING

[13-May-2015 11:32:16] S 250-DSN

[13-May-2015 11:32:16] S 250-ENHANCEDSTATUSCODES

[13-May-2015 11:32:16] S 250-STARTTLS

[13-May-2015 11:32:16] S 250-AUTH

[13-May-2015 11:32:16] S 250-8BITMIME

[13-May-2015 11:32:16] S 250-BINARYMIME

[13-May-2015 11:32:16] S 250-CHUNKING

[13-May-2015 11:32:16] S 250-XEXCH50

[13-May-2015 11:32:16] S 250 XSHADOW

[13-May-2015 11:32:16] C STARTTLS

[13-May-2015 11:32:16] S 220 2.0.0 SMTP server ready

[13-May-2015 11:32:16] Starting TLS cryptograpic protocol

[13-May-2015 11:32:16] TLS started

[13-May-2015 11:32:16] C EHLO 10.210.26.70

[13-May-2015 11:32:16] S 250-****** Hello [10.210.106.74]

[13-May-2015 11:32:16] S 250-SIZE 31457280

[13-May-2015 11:32:16] S 250-PIPELINING

[13-May-2015 11:32:16] S 250-DSN

[13-May-2015 11:32:16] S 250-ENHANCEDSTATUSCODES

[13-May-2015 11:32:16] S 250-AUTH

[13-May-2015 11:32:16] S 250-8BITMIME

[13-May-2015 11:32:16] S 250-BINARYMIME

[13-May-2015 11:32:16] S 250-CHUNKING

[13-May-2015 11:32:16] S 250-XEXCH50

[13-May-2015 11:32:16] S 250 XSHADOW

[13-May-2015 11:32:16] Error: it is not supported any of the authentication mechanisms required by the server

  4. Re: Sending via Microsoft Exchange SMTP...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-05-13 08:47:50 - In reply to message 3 from Rafael Razim
It seems that server is not making availble any authentication mechanism. Have you tried not specifying any user name and password?

  5. Re: Sending via Microsoft Exchange SMTP...   Reply   Report abuse  
Picture of Rafael Razim Rafael Razim - 2015-05-13 08:51:07 - In reply to message 4 from Manuel Lemos
Hi!

That did the trick!

The server doesn't do any authentification at all, sending of mails is working now!

Thx for your fast help!

cU Rafael