Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.08.12;
Скачать: 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 вся ветка

Текущий архив: 2002.08.12;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.017 c
7-35480
Varfolomey
2002-05-28 05:28
2002.08.12
Люди как подвесить Винду?


3-35152
Daiz13
2002-07-19 12:44
2002.08.12
Вопрос по вложеным запросам


3-35143
Lego
2002-07-18 09:19
2002.08.12
Как установить /сменить пароль на Paradox ?


1-35365
Kurt
2002-07-29 18:19
2002.08.12
Поиск вверх/вниз по RichEdit (Memo)! и чтоб было выделение и пока


1-35279
^SANYA
2002-07-31 14:36
2002.08.12
В каком модуле объявлен