Вниз
Скачать: CL | DM;

Проблема с аттачем with indy   Найти похожие ветки 

← →
Shil ©   (2002-07-30 18:12) [0]

var
MsgIn,MsgOut: TIdMessage;


begin
pop.Connect;
AmoMes := pop.CheckMessages;//получение кол-ва писем в ящике
if AmoMes = 0 then
begin
end
else
While AmoMes >0 do
begin
If Not pop.Connected then pop.Connect;
Bodyrec:=false;
MsgIn:= TIdMessage.Create(self);
If pop.Retrieve(1,MsgIn) then
Begin
pop.Delete(1);
pop.Disconnect;
If MsgIn.MessageParts[I].ClassName = "TIdAttachment" then
TIdAttachment(MsgIn.MessageParts.Items[i]).SaveToFile (AttachDick+TIdAttachment(MsgIn.MessageParts.Items[i]).FileName);
end;
MsgIN.Recipients.EMailAddresses:="shil@ctinet.ru"
IdSMTP1.Send(MsgIN);
end;
end.

IdSMTP1.Send(MsgIN) Именно в этом месте прога и ломаеться:( Пишит что не возможно открыть файл имя файла такое С:\Temp\id37+"имя файла",


← →
Shil ©   (2002-07-31 09:53) [1]

ПОмогите ПЛИЗЗЗЗЗ



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.009 c
1-35296
Nameless
2002-07-29 11:00
2002.08.12
Может здесь кто-нибудь знает.....


3-35154
the-best-officeman
2002-07-19 18:39
2002.08.12
МАСТЕРА ! НУЖНА ВАША ПОМОЩЬ ! горю синем пламенем . уже догораю


3-35211
normal
2002-07-24 09:37
2002.08.12
TMemo <- IB Blob ?


14-35461
Igor_thief
2002-07-16 12:18
2002.08.12
Компонент


1-35338
совсем Новенький
2002-07-29 20:01
2002.08.12
АЛГОРИТМЫ трансляции математических выражений. Mapl.




   Наверх