* Makefile
* config/*
* contrib/*
* doc/*
* extras/*
* include/*
* lib/*
* package/*
* src/*
* tests/*
* utils/*
* removed empty lines left after removed '$' + 'Id' + '$' identifiers
42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
#require "hbwin"
|
|
|
|
#include "simpleio.ch"
|
|
|
|
PROCEDURE Main()
|
|
|
|
LOCAL cSubject := "Test subject"
|
|
LOCAL cBody := "Test body"
|
|
LOCAL lMailConf := .F.
|
|
LOCAL lFromUser := .T.
|
|
LOCAL aSender := { "test from", "from@test.com" }
|
|
LOCAL aDest := { { "test to", "to@test.com", WIN_MAPI_TO } }
|
|
LOCAL aFiles := { { __FILE__, hb_FNameName( __FILE__ ) } }
|
|
|
|
? win_MAPISendMail( ;
|
|
cSubject, ; // subject
|
|
cBody, ; // menssage
|
|
NIL, ; // type of message
|
|
DToS( Date() ) + " " + Time(), ; // send date
|
|
"", ; // conversation ID
|
|
lMailConf, ; // acknowledgment
|
|
lFromUser, ; // user intervention
|
|
aSender, ; // sender
|
|
aDest, ; // destinators
|
|
aFiles ) // attach
|
|
|
|
// simple format
|
|
|
|
? win_MAPISendMail( ;
|
|
cSubject, ; // subject
|
|
cBody, ; // menssage
|
|
NIL, ; // type of message
|
|
DToS( Date() ) + " " + Time(), ; // send date
|
|
"", ; // conversation ID
|
|
lMailConf, ; // acknowledgment
|
|
lFromUser, ; // user intervention
|
|
"from@test.com", ; // sender
|
|
{ "to@test.com" }, ; // destinators
|
|
{ __FILE__ } ) // attach
|
|
|
|
RETURN
|