Hi PL

if you use ICS to send an eMail f.e. from within a CGI, then you simply could use the SYNC SMTP client version SyncSmtpCli to send an eMail:

emailstatus : integer;
success : boolean;
....
....
   emailstatus := 1;
   Success := SyncSmtpCli1.ConnectSync;
   if not Success then goto wehaveaproblem;

   emailstatus := 2;
   Success := SyncSmtpCli1.EhloSync;
   if not Success then goto wehaveaproblem;

   emailstatus := 3;
   Success := SyncSmtpCli1.AuthSync;
   if not Success then goto wehaveaproblem;

   emailstatus := 4;
   Success := SyncSmtpCli1.MailSync;
   if not Success then goto wehaveaproblem;

   emailstatus := 5;
   Success := SyncSmtpCli1.QuitSync;
   if not Success then goto wehaveaproblem;

....
....

Async smtp sample: see ICS sample OverbyteIcsMailSndAsync.dproj.

Best regards
Michael




----- Original Message ----- From: "IMAGE" <cont...@image-zafar.com>
To: <twsocket@lists.elists.org>
Sent: Wednesday, April 16, 2014 8:40 AM
Subject: [twsocket] Error in Sending mail


Hello,



After following an advise on a C++ forum (I use Builder C++), I download
ICS.



In first, I try to use the example IcsMailSnd.dproj



I enter my username and password, in SmtpCli (I don't need SSL).



When I launch the program, I enter the name of my Smtp server, the port
(587), my mail address in From, and an address in To .



I think it connected to the server, because I don't have any error message,
the From is OK, but I have an error message for Receipt (I try few address
of different domains, and it's the same message) : "This domain isn't in our
allowed list".



I contact our webmaster, we verify with WireShark, and our webmaster tell me
that there isn't any authentification, but I have put the values
SmtpAuthlogin, or SmtpAuthPlain on propriety AuthType of SmtpCli ????



May you advise me to solve this problem ?



Very cordially.

PL



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to