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

Вниз

Как отправить E-mail.   Найти похожие ветки 

 
wandp ©   (2002-11-14 04:57) [0]

Помогите как можно отправить E-mail по определенному адресу, по нажатию допустим по Button"у, а текст чтобы брался с Memo?


 
Song ©   (2002-11-14 17:46) [1]

ShellExecute()
TNMSMTP
MAPI


 
Александр Павлов ©   (2002-11-15 06:31) [2]

function SendEmail(const RecipName, RecipAddress, Subject, Attachment: string): Boolean;
var MapiMessage: TMapiMessage;
MapiFileDesc: TMapiFileDesc;
MapiRecipDesc: TMapiRecipDesc;
i: integer;
s: string;
begin
with MapiRecipDesc do
begin
ulReserved:= 0;
ulRecipClass:= MAPI_TO;
lpszName:= PChar(RecipName);
ulEIDSize:= 0;
lpEntryID:= nil;
end;
with MapiFileDesc do
begin
ulReserved:= 0;
flFlags:= 0;
nPosition:= 0;
lpszPathName:= PChar(Attachment);
lpszFileName:= nil;
lpFileType:= nil;
end;
with MapiMessage do
begin
ulReserved := 0;
lpszSubject := nil;
lpszNoteText := PChar(Subject);
lpszMessageType := nil;
lpszDateReceived := nil;
lpszConversationID := nil;
flFlags := 0;
lpOriginator := nil;
nRecipCount := 1;
lpRecips := @MapiRecipDesc;
if length(Attachment) > 0 then
begin
nFileCount:= 1;
lpFiles := @MapiFileDesc;
end else
begin
nFileCount:= 0;
lpFiles:= nil;
end;
end;
result:=MapiSendMail(0, 0, MapiMessage, MAPI_DIALOG or MAPI_LOGON_UI or MAPI_NEW_SESSION, 0) = SUCCESS_SUCCESS;
end;



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

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

Наверх




Память: 0.47 MB
Время: 0.012 c
14-99287
DiamondShark
2002-12-09 13:47
2002.12.30
Новый WEB-проект


4-99406
Vasily Terekhov
2002-11-14 12:21
2002.12.30
Перехват открытия и закрытия приложения....


14-99279
Оливейра
2002-12-08 22:14
2002.12.30
---|Ветка была без названия|---


3-99020
Tsarik
2002-12-07 20:49
2002.12.30
Login Screen, Delphi+Access


7-99373
sef
2002-10-24 14:27
2002.12.30
Выполнение кода с проавами текущего пользователя #2