Enviando email através do telnet SMTP

0

Depois de me conectar a um dos servidores SMTP do Gmail (via Windows cmd), quando tento

sending mail to myself, it keeps giving me the same error.

220 mx.google.com ESMTP u3si16129057wmg.22 - gsmtp
ehlo b
250-mx.google.com at your service, [2607:fcd8:a:5:426d:e920:51f3:f36e]
250-SIZE 157286400
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
MAIL FROM: <[email protected]>
250 2.1.0 OK u3si16129057wmg.22 - gsmtp
RCPT TO: <[email protected]>
250 2.1.5 OK u3si16129057wmg.22 - gsmtp
DATA
354  Go ahead u3si16129057wmg.22 - gsmtp
SOMETHING SOMETHING SOMETHING.

.
550-5.7.1 [2607:fcd8:a:5:426d:e920:51f3:f36e      11] Our system has detected
550-5.7.1 that this message is not RFC 5322 compliant. To reduce the amount of
550-5.7.1 spam sent to Gmail, this message has been blocked. Please review
550 5.7.1  RFC 5322 specifications for more information. u3si16129057wmg.22 - gs
mtp


Connection to host lost.

Press any key to continue...

Eu procurei o RFC 5322 e tentei o seguinte

220 mx.google.com ESMTP bo10si34007895wjb.163 - gsmtp
ehlo b
250-mx.google.com at your service, [2607:fcd8:a:5:426d:e920:51f3:f36e]
250-SIZE 157286400
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
MAIL FROM: <[email protected]> CRLF
250 2.1.0 OK bo10si34007895wjb.163 - gsmtp
RCPT TO: <[email protected]> CRLF
250 2.1.5 OK bo10si34007895wjb.163 - gsmtp
DATA CRLF
354  Go ahead bo10si34007895wjb.163 - gsmtp
something something something. CRLF
. crlf
. CRLF
.
550-5.7.1 [2607:fcd8:a:5:426d:e920:51f3:f36e      11] Our system has detected
550-5.7.1 that this message is not RFC 5322 compliant. To reduce the amount of
550-5.7.1 spam sent to Gmail, this message has been blocked. Please review
550 5.7.1  RFC 5322 specifications for more information. bo10si34007895wjb.163 -
 gsmtp


Connection to host lost.

Qualquer ajuda é apreciada!

    
por Ben Marconi 05.04.2016 / 03:45

1 resposta

0

Após o comando DATA , uma mensagem de e-mail adequadamente formatada é esperada / exigida.

RFC 5322 define o padrão que define como uma "mensagem corretamente formatada" deve aparecer .

A message consists of header fields (collectively called "the header section of the message") followed, optionally, by a body. The header section is a sequence of lines of characters with special syntax as defined in this specification.
The body is simply a sequence of characters that follows the header section and is separated from the header section by an empty line (i.e., a line with nothing preceding the CRLF).

Como um atalho rápido e fácil para obter essa mensagem: a maioria dos clientes de e-mail permite que você visualize o formato de mensagem original / original de um e-mail existente. Copie e cole isso.

    
por 05.04.2016 / 08:49

Tags