smtp and junk

Giganews Newsgroups
Subject: smtp and junk
Posted by:  ebz (copt…@forecast1.com)
Date: Tue, 17 Jan 2006

Hi!
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…@dot.com';
  lmessage.From.Name:='Mark W';
  lMessage.Subject := 'Yet another test email';
  lMessage.Recipients.Add.Address := '…@hotmail.com';
  lMessage.Recipients[0].name:='A';
  lMessage.Body.Clear;
  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
message</b></body></html>';
  lTextPart.ContentType := 'text/html; charset="us-ascii"';
  lTextPart.ContentTransfer:='quoted-printable'

Replies