Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Re: indy thunderbird receipt problem
| Subject: | Re: indy thunderbird receipt problem |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Thu, 10 Aug 2006 14:30:17 |
"gurkan" <gurkancalik@hotmail.com> wrote in message
news:44db95cd@newsgroups.borland.com...
> MailMessage.ContentTransferEncoding:= 'multipart/related';
That is completely wrong. You are assigning the value to the wrong
property. That is a ContentType value, not a ContentTransferEncoding value.
Get rid of it altogether since you are not sending a multipart message to
begin with.
> MailMessage.ReceiptRecipient.Address:=sSender;
Do you mean to use the same email address that is sending the message? If
so, then you should be using sSenderMail instead of sSender.
> Mail.Connect;
> Mail.Send(Mesaj);
> mail.Disconnect;
You should wrap that in a try..finally block to ensure the connection is
disconnected properly even if a failure occurs in sending the message, ie:
Mail.Connect;
try
Mail.Send(Mesaj);
finally
Mail.Disconnect;
end;
Gambit