Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.02.27;
Скачать: CL | DM;

Вниз

Проблема с отправкой E-Mail   Найти похожие ветки 

 
Григорий Армутхаров   (2003-01-11 02:50) [0]



tofind:=msgdir+"\"+"*.txt"
findfirst(msgdir+"\"+"*.txt", faAnyFile and sysutils.faHidden, firsts);
nmsmtp1.PostMessage.Attachments.Add (firsts.Name);
repeat
begin
findnext(firsts);
nmsmtp1.PostMessage.Attachments.Add (msgdir+"\"+firsts.Name);
end;
until findnext(firsts) <> 0;

findclose(firsts);

С виду все корректно, но при попытке отослать SendMail начинает ругаться, говорит, что не может открыть найденные файлы.


 
sask ©   (2003-01-11 06:28) [1]

tofind:=msgdir+"\"+"*.txt";
if findfirst(tofind, faAnyFile, firsts) = 0 then
begin
repeat
begin
nmsmtp1.PostMessage.Attachments.Add (msgdir+"\"+firsts.Name);
end;
until findnext(firsts) <> 0;
findclose(firsts);
end;



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

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

Наверх




Память: 0.46 MB
Время: 0.017 c
1-87556
ltexcimer
2003-02-17 13:35
2003.02.27
Удалить строку StringGrid.


3-87350
Oleksiy
2003-02-10 15:09
2003.02.27
ODAC & FastReport


1-87470
Чубр
2003-02-15 19:10
2003.02.27
Форма в DLL еке!


1-87542
Udjin
2003-02-14 11:37
2003.02.27
работа с указателями


6-87613
Beglec
2003-01-09 07:58
2003.02.27
Delphi + IE