Condividi tramite

Problemi invio mail con PHP e Exchange

Anonimo
2023-04-14T13:49:17+00:00

Come da titolo utilizzo PHP ( nello specifico il framework Codeigniter 4 ) per l'invio di mail questi i parametri di configurazione :

[CODE]

/\*\*

 \* The "user agent"

 \*/

public string $userAgent = 'CodeIgniter';

/\*\*

 \* The mail sending protocol: mail, sendmail, smtp

 \*/

public string $protocol = 'smtp';

/\*\*

 \* SMTP Server Address

 \*/

public $SMTPHost = 'exchange.\*\*\*\*\*\*\*\*\*.com';

/\*\*

 \* SMTP Username

 \*/

public $SMTPUser='\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*';

/\*\*

 \* SMTP Password

 \*/

public $SMTPPass='\*\*\*\*\*\*\*\*\*\*\*';

/\*\*

 \* SMTP Port

 \*/

public int $SMTPPort = 587;

/\*\*

 \* SMTP Timeout (in seconds)

 \*/

public int $SMTPTimeout = 5;

/\*\*

 \* Enable persistent SMTP connections

 \*/

public bool $SMTPKeepAlive = false;

/\*\*

 \* SMTP Encryption. Either tls or ssl

 \*/

public string $SMTPCrypto = 'tls';

/\*\*

 \* Enable word-wrap

 \*/

public bool $wordWrap = true;

/\*\*

 \* Character count to wrap at

 \*/

public int $wrapChars = 76;

/\*\*

 \* Type of mail, either 'text' or 'html'

 \*/

public string $mailType = 'html';

/\*\*

 \* Character set (utf-8, iso-8859-1, etc.)

 \*/

public string $charset = 'UTF-8';

/\*\*

 \* Whether to validate the email address

 \*/

public bool $validate = false;

/\*\*

 \* Email Priority. 1 = highest. 5 = lowest. 3 = normal

 \*/

public int $priority = 3;

/\*\*

 \* Newline character. (Use “\r\n” to comply with RFC 822)

 \*/

public string $CRLF = "\r\n";

/\*\*

 \* Newline character. (Use “\r\n” to comply with RFC 822)

 \*/

public string $newline = "\r\n";

[/CODE]

L'errore che ottengo è :

[CODE]

220 srv-exchange3.******.local Microsoft ESMTP MAIL Service ready at Fri, 14 Apr 2023 15:40:42 +0200

hello: 250-srv-exchange3.************.local Hello [***********]
250-SIZE 37748736
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH GSSAPI NTLM
250-8BITMIME
250-BINARYMIME
250 CHUNKING

starttls: 220 2.0.0 SMTP server ready

Unable to send email using SMTP. Your server might not be configured to send mail using this method.

Date: Fri, 14 Apr 2023 13:40:43 +0000
From: <*******@*********>
Return-Path: <*******@***********>
To: ***************
Subject: =?UTF-8?Q?Test?=
Reply-To: <*******@********.it>
User-Agent: CodeIgniter
X-Sender: *****@*****.it
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <******@es-electrosystem.it>
Mime-Version: 1.0

Content-Type: multipart/alternative; boundary="B_ALT_643957db4699c7.51227430"

This is a multi-part message in MIME format.
Your email application may not support this format.

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

[/CODE]

Microsoft 365 e Office | Sottoscrizione, account, fatturazione | Per la casa | Altro

Domanda bloccata. Questa domanda è stata eseguita dalla community del supporto tecnico Microsoft. È possibile votare se è utile, ma non è possibile aggiungere commenti o risposte o seguire la domanda.

0 commenti Nessun commento

4 risposte

Ordina per: Più utili
  1. Anonimo
    2023-04-15T21:12:28+00:00

    Sorry about that. Since your question is in reference to Exchange - this link would apply with the <Learn> forum

    https://learn.microsoft.com/en-us/search/?terms=exchange&category=QnA

    La risposta è stata utile?

    0 commenti Nessun commento
  2. Anonimo
    2023-04-15T08:50:13+00:00

    Ciao Stefano_1876

    Sei uno sviluppatore?

    Perchè in questo caso la Community adatta non è questa ma questa (che almeno è in Italiano):

    Forum Msdn (microsoft.com)

    Puoi provare anche a postare su Microsoft Tech Community https://techcommunity.microsoft.com/ ma è in lingua Inglese.

    Buona giornata!

    La risposta è stata utile?

    0 commenti Nessun commento
  3. Anonimo
    2023-04-15T08:06:02+00:00

    Your link redirect to :

    https://learn.microsoft.com/en-us/answers/

    How can i find the properly discussion to insert ?

    La risposta è stata utile?

    0 commenti Nessun commento
  4. Anonimo
    2023-04-14T16:56:34+00:00

    Hello Stefano_1876

    Hi, I'm Karl and will be happy to help you today.

    This forum is focused on the consumer use of Microsoft Office apps. Your question is bet posted in one of the sister technical forums where you are more likely to get the information you are looking for

    Microsoft supported products on Q&A | Microsoft Docs https://docs.microsoft.com/en-us/answers/products/

    or

    Microsoft Tech Community https://techcommunity.microsoft.com/

    *** we are not able to move this thread from this forum so you will need to post your question again

    La risposta è stata utile?

    0 commenti Nessun commento