Board index » delphi » HTML e-mail not complete with Indy
Javier Sosa
Delphi Developer |
HTML e-mail not complete with Indy2004-02-03 06:37:59 PM delphi175 Hello everybody, I'm trying send HTML e-mail but when I receive it, it is not complete (missing parts of html). I'm using the TIdMessage and TIdSmtp of Indy. Can Somebody help me. The implementation of sendemail function is: try IdSendMsg := TIdMessage.Create(SMTP); IdSendMsg.SetUseNowForDate(True); IdSendMsg.Subject := emailsubjet; with TIdText.Create(IdSendMsg.MessageParts) do begin ContentType := 'text/plain'; Body.Add(bodytext); end; with TIdText.Create(IdSendMsg.MessageParts) do begin ContentType := 'text/html'; Body.Add(bodyhtml); end; IdSendMsg.From.Text := 'XXXX@XXXXX.COM'; IdSendMsg.From.name := 'myserver'; IdSendMsg.Recipients.EmailAddresses := emailaddress; SMTP.Host := 'mail.myserver.es'; SMTP.Connect; SMTP.Send(IdSendMsg); ... Thanks for all Javier Sosa |