Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Feb : ReplyTo idMessage indy 10.0.52

www.cryer.info
Managed Newsgroup Archive

ReplyTo idMessage indy 10.0.52

Subject:ReplyTo idMessage indy 10.0.52
Posted by:"Eder" (desenvolvimen..@modula.com.br)
Date:25 Feb 2005 07:22:48

Hi.!

Have a problem replyTo.
My code:
  IdMessage1.IsEncoded:=True ;
  //SetUp from variables
  IdMessage1.CharSet:='ISO-8859-1';
  IdMessage1.Encoding := meMIME;

  IdMessage1.Subject := 'subject';
  IdMessage1.Body.add('body');
  IdMessage1.From.Name := 'name';
  IdMessage1.From.Address := 'myemail@domain.com';

  IdMessage1.ReplyTo.Add.Name := 'same name FROM';
  IdMessage1.ReplyTo.Add.Address := 'myemail@domain.com'; IdMessage1.Recipients.Add.Address := 'email@domain.com';
  IdMessage1.Priority := mpHighest;
  try
    idAttach:=TIdAttachmentFile.Create(IdMessage1.MessageParts, 'filename');
    idAttach.ContentType := 'text/html';
  except
    idAttach.CleanupInstance ;
  end;

  IdSMTP1.Host := 'Host';
  IdSMTP1.Username := 'username';
  IdSMTP1.Password := 'pass';
  IdSMTP1.Connect;
  if IdSMTP1.Connected then
  begin
    try
      IdSMTP1.Send(idMessage1);
      ShowMessage('Ok!');
    finally
      IdSMTP1.Disconnect;
    end;
  end;

The problem is ReplyTo. Don't reply, why?
I am using Outlook Express. Message error: The outlook express send't email!

I am using indy 10.0.52

Please help me
Thanks a lot
Eder

Replies:

www.cryer.info
Managed Newsgroup Archive