From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: 530 5.7.0 Must issue a STARTTLS command first. Date: Sun, 6 Jan 2019 10:19:53 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <0731bbaa-a139-4364-9354-06f531ed8b64@googlegroups.com> NNTP-Posting-Host: i065DRYuysvTI4qVnaNkyg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.8.3 Xref: reader01.eternal-september.org comp.lang.ada:55209 Date: 2019-01-06T10:19:53+01:00 List-Id: On 2019-01-06 05:54, Andrew Shvets wrote: > I've looked through this group and taken the advice that was recommended in regards to sending e-mails using Ada and decided to try something very simple. On RosettaCode, there is the following example: > http://rosettacode.org/wiki/Send_email#Ada > > When I run the code configured for my Gmail account (smtp.gmail.com and port being 587), I get the below error: > 530 5.7.0 Must issue a STARTTLS command first. 126sm25673591qkj.70 - gsmtp > > Why is that? The mail server offered an encrypted session, the client confirms that with STARTTLS and then both continue on TLS. The client may also reject the offer, but it seems that the server's security level set to enforce TLS. > And how can I send a STARTTLS command first? Sorry, I don't use AWS. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de