need steps for sending mail to a gmail account via manual command line smtp?

I need step-by-step instructions for sending mail to a Gmail account via telnet commands to do an SMTP conversation.

Normally you can send mail to a given domain by telnetting to port 25 and doing a conversation like the following (note I had to use ZZZ instead of at because freelancer filters out the at symbol):


[rootZZZlocal ~]# telnet [url removed, login to view] 25


Connected to [url removed, login to view] ([url removed, login to view]).

Escape character is '^]'.

220 [url removed, login to view] ESMTP Sendmail 8.13.8/8.13.8; Fri, 30 May 2014 10:11:17 -0


HELO [url removed, login to view]

250 [url removed, login to view] Hello [[url removed, login to view]], pleased to meet you

MAIL FROM: [url removed, login to view]

250 2.1.0 testerZZZmousematrix.com... Sender ok

RCPT TO: [url removed, login to view]

250 2.1.5 bennettZZZpeacefire.org... Recipient ok


354 Enter mail, end with "." on a line by itself

Subject: from mm to pf

hello world


250 2.0.0 s4UEBH1j026226 Message accepted for delivery


221 2.0.0 [url removed, login to view] closing connection

Connection closed by foreign host.

[rootZZZlocal ~]#


However, you can't do that to send a message to a [url removed, login to view] address because it only accepts encrypted connections on port 587. So how do I send a messge to a gmail address via a command line connection? I know you can connect to gmail for a manual conversation via openssl (see below for an example) but I don't know the steps for sending mail to a particular gmail account.

Two things:

1) Note that this is not the same thing as sending mail FROM my gmail account via the command line. I already know the steps to do that via an SMTP conversation using openssl (google "how to-send email using simple smtp commands via gmail" for an example -- freelancer won't let me type the link)

but this is not the same thing. (In particular, to do what I want to do, sending mail TO a given gmail account, I should not need to know the gmail account's password.)

2) I don't need a single command to send mail from the command line, I already know how to do that, e.g.

echo "test body" | mail -s "test subject" [address goes here]

but I want to do it via an SMTP conversation so I can see in real time any errors that are coming back.

Evner: Linux, Netværksadministrator, System Administrator, UNIX

Se mere: you mail, www freelancer org in, www freelancer account com, what do i need to know as a freelancer, what can you do as a freelancer, what a freelancer can do, things to do as freelancer, step for freelancer, on line freelancer, my freelancer account, meet a freelancer, manual freelancer com, manual freelancer, mail on line, i want a freelancer account, how to use freelancer com as a freelancer, how to send message freelancer com, how to send a message on freelancer com, how to quit, how to email on freelancer, how to a freelancer, how know freelancer address, freelancer test google, freelancer steps, freelancer step by step

Om arbejdsgiveren:
( 128 bedømmelser ) Bellevue, United States

Projekt ID: #6008715

8 freelancere byder i gennemsnit $22 på dette job


Hi, i have already did project with you. You want to send email to a gmail account, then u simply check mx record for [login to view URL] and connect to port 25 and send mail as usual. Encrypted connections are only for relay Flere

$25 USD på 1 dag
(27 bedømmelser)

A proposal has not yet been provided

$25 USD på 1 dag
(40 bedømmelser)

I give you guide how to manual sent email to google used smtp protocol and port 587 ************************************************************************************************************

$25 USD på 1 dag
(8 bedømmelser)

Hey, there is a small tool available that does all the tricks you need: -e, -encrypt Encrypt the e-mail for first recipient before sending -s, -subject subject Subject of message - Flere

$25 USD på 1 dag
(9 bedømmelser)

Hi, I would like to help you on this project.

$30 USD in 0 dage
(2 bedømmelser)

I already implemented that in my custom shell application, so this is a piece of cake. Please feel free to contact me.

$14 USD in 0 dage
(3 bedømmelser)

You can use the below link to do so... [login to view URL]

$10 USD på 1 dag
(0 bedømmelser)

platter:~ steve$ telnet [login to view URL] 25 Trying Connected to gmail-smtp-in.l.google.com. Escape character is '^]'. 220 [login to view URL] ESMTP y27si6889009wfi.2 HELO [login to view URL] Flere

$25 USD på 1 dag
(0 bedømmelser)