From: Distant Worlds <distantworldscorporation@gmail.com>
Subject: send email
Date: Wed, 28 Jun 2017 02:25:05 -0700 (PDT)
Date: 2017-06-28T02:25:05-07:00 [thread overview]
Message-ID: <aede705a-3a5d-4891-87e3-5d86563ee86c@googlegroups.com> (raw)
with Text_IO;
with AWS.POP;
with AWS.SMTP;
with AWS.SMTP.Client;
with Ada.Text_IO;
procedure Main is
SMTP_Server : AWS.SMTP.Receiver;
Status : AWS.SMTP.Status;
begin
SMTP_Server := AWS.SMTP.Client.Initialize(Server_Name => "smtp.mail.com",
Port => 465,
Secure => True);
AWS.SMTP.Client.Send(SMTP_Server,
From => AWS.SMTP.E_Mail(Name => "", Address => ""),
To => AWS.SMTP.E_Mail(Name => "", Address => ""),
Subject => "Subject",
Message => "Message",
Status => Status);
if not AWS.SMTP.Is_Ok (Status) then
Ada.Text_IO.Put_Line ("Can't send message: " & AWS.SMTP.Status_Message (Status));
end if;
end Main;
/********************************************************************/
raised PROGRAM_ERROR : finalize/adjust raised exception
/********************************************************************/
CentOS 6.9 Ada GNAT 2017
>>:((
next reply other threads:[~2017-06-28 9:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-28 9:25 Distant Worlds [this message]
2017-07-18 7:48 ` send email Björn Lundin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox