Вниз
Скачать: 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 вся ветка

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



Память: 0.45 MB
Время: 0.012 c
1-99141
4D man
2002-12-18 14:02
2002.12.30
Факториал дробного числа


3-99016
Karbo
2002-12-11 03:15
2002.12.30
Простой вопрос по SQL


14-99336
Malder
2002-12-10 19:13
2002.12.30
Обзор интернет магазинов


3-99017
arnold
2002-12-11 08:58
2002.12.30
Сравнение двух DBF


1-99147
Иванов Сергей
2002-12-18 13:51
2002.12.30
Размер отчета в файле




   Наверх