Hi all,

I'm trying to send email from a console application. It seems all ok but I
never receive it. I checked also the HowTo and I think it is very similar to
my code that follows.

What can be the issue ?

Thanks
Antonio

procedure EmailSender.SendWithSynapse;
var
  myStrings: TStrings;
begin
  MyStrings := TStringList.Create;
  writeln('Creata StringList');
  try
    myStrings.Add('Ciao prova di email');
    myStrings.Add('Ancora una prova');
    myStrings.Add('.');
    mySend.TargetHost := 'out.virgilio.it';
    mySend.TargetPort := '25';
    MySend.UserName := '[EMAIL PROTECTED]';
    mySend.Password := 'xxxxxxxxx';

    writeln('Prima di login');
    if MySend.Login then
      writeln('Connected')
    else
      writeln('Non connected');
    writeln(mySend.ResultString);
    if MySend.MailFrom('[EMAIL PROTECTED]', 100) then
      writeln('MailFrom');
    writeln(mySend.ResultString);
    mySend.Verify('[EMAIL PROTECTED]');
    writeln(mySend.ResultString);
    if MySend.MailTo('[EMAIL PROTECTED]') then
      writeln('MailTo');
    writeln(mySend.ResultString);
    if MySend.MailData(MyStrings) then
      writeln('MailData');
    writeln(mySend.ResultString);
  finally
    MyStrings.Free;
  end;

  MySend.Logout;
  writeln('LogOut');
end;


-- 
Antonio Sanguigni alias slapshot
----------------------------------------------------------------------
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://edupup.pieroni.biz
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to