smtp and junk

Giganews Newsgroups
Subject: smtp and junk
Posted by:  ebz (copt…
Date: Tue, 17 Jan 2006

I am trying to send a message that ends up in an inbox. Indy works fine for
yahoo and aol, but gets junked in hotmail and gmail.

For protocol I used outlook to send a plain text message and an html
(multipart/alternative). Hotmail would place it in the inbox only if the
editor was MSWord. (Plain text would be junked). To date, Indy works fine,
but always gets junked.

What else do I need to supply to make this msg look like it was made in
MSWord? Something in the html?

  lMessage := TIdMessage.Create(Self);
  lMessage.From.Address := so…';
  lmessage.From.Name:='Mark W';
  lMessage.Subject := 'Yet another test email';
  lMessage.Recipients.Add.Address := '…';
  lTextPart := TIdText.Create(lMessage.MessageParts);
  lTextPart.Body.Text := 'This is a message';
  lTextPart.ContentType := 'text/plain; charset="us-ascii"';
  lTextPart.ContentTransfer:='7 bit';
  lTextPart := TIdText.Create(lMessage.MessageParts);
  lTextPart.Body.Text := '<html><body><b>This is a
  lTextPart.ContentType := 'text/html; charset="us-ascii"';