Tips & Tricks: Use "telnet" To Send Email

C:\Users\damirknezev>telnet server 25

220 server.domain.local Microsoft ESMTP MAIL Service, Version: 7.5.7601.17514 ready at Mon, 22 Oct 2018 07:35:04 +1100


ehlo

250-server.domain.local Hello [192.168.1.20]

250-TURN

250-SIZE 2097152

250-ETRN

250-PIPELINING

250-DSN

250-ENHANCEDSTATUSCODES

250-8bitmime

250-BINARYMIME

250-CHUNKING

250-VRFY

250-TLS

250-STARTTLS

250 OK

mail from: someone@domain.com

250 2.1.0 someone@domain.com....Sender OK

rcpt to: someone@otherdomain.com

250 2.1.5 someone@otherdomain.com

data

354 Start mail input; end with <CRLF>.<CRLF>

subject: This is a test email using telnet

This is where the body of the email is written.

.

250 2.6.0 <server03aTZrX0cC0000000a@server.domain.local> Queued mail for delivery

No comments:

Post a Comment