-
Notifications
You must be signed in to change notification settings - Fork 4
/
EASendMailObjLib_TLB.pas
4879 lines (4331 loc) · 171 KB
/
EASendMailObjLib_TLB.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
unit EASendMailObjLib_TLB;
// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library) re-imported, or the
// 'Refresh' command of the Type Library Editor activated while editing the
// Type Library, the contents of this file will be regenerated and all
// manual modifications will be lost.
// ************************************************************************ //
// PASTLWTR : 1.2
// File generated on 11/15/2016 7:11:31 PM from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\Program Files\EASendMail\EASendMailObj.dll (1)
// LIBID: {8B5A2BD0-5638-4CCA-A7FF-91B9E6768AC4}
// LCID: 0
// Helpfile:
// HelpString: EASendMailObj ActiveX Object 1.0 Type Library
// DepndLst:
// (1) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
// Errors:
// Error creating palette bitmap of (TMail) : Server C:\Program Files\EASendMail\EASendMailObj.dll contains no icons
// Error creating palette bitmap of (TFastSender) : Server C:\Program Files\EASendMail\EASendMailObj.dll contains no icons
// Error creating palette bitmap of (TCertificate) : Server C:\Program Files\EASendMail\EASendMailObj.dll contains no icons
// Error creating palette bitmap of (TCertificateCollection) : Server C:\Program Files\EASendMail\EASendMailObj.dll contains no icons
// Error creating palette bitmap of (TSimpleJsonParser) : Server C:\Program Files\EASendMail\EASendMailObj.dll contains no icons
// Error creating palette bitmap of (TSimpleJsonArray) : Server C:\Program Files\EASendMail\EASendMailObj.dll contains no icons
// ************************************************************************ //
// *************************************************************************//
// NOTE:
// Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties
// which return objects that may need to be explicitly created via a function
// call prior to any access via the property. These items have been disabled
// in order to prevent accidental use from within the object inspector. You
// may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively
// removing them from the $IFDEF blocks. However, such items must still be
// programmatically created via a method of the appropriate CoClass before
// they can be used.
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface
uses Windows, ActiveX, Classes, Graphics, OleServer, StdVCL, Variants;
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
EASendMailObjLibMajorVersion = 1;
EASendMailObjLibMinorVersion = 0;
LIBID_EASendMailObjLib: TGUID = '{8B5A2BD0-5638-4CCA-A7FF-91B9E6768AC4}';
IID_IMail: TGUID = '{1AD28FC9-0C71-4E89-85C9-CAECDE8BE3AB}';
IID_ICertificate: TGUID = '{A2809780-C98E-4C6D-A552-DAB146D4AD12}';
IID_ICertificateCollection: TGUID = '{DC8D5635-B8E7-441E-B550-CE1BF3BA5C55}';
IID_IFastSender: TGUID = '{92298BE3-ADEC-438F-800C-CF6311A7DF1D}';
IID_ISimpleJsonArray: TGUID = '{B62298B7-A091-4A42-8D50-B7F0194DE25A}';
IID_ISimpleJsonParser: TGUID = '{08088DBB-A031-4DCE-A4DF-7683CBE706AF}';
DIID__IMailEvents: TGUID = '{68CB8B02-D4AA-4A16-97A0-6B9488F98189}';
CLASS_Mail: TGUID = '{DF8A4FE2-221A-4504-987A-3FD4720DB929}';
DIID__IFastSenderEvents: TGUID = '{A1B45F08-67E7-4276-A7CA-7664C08F9EF7}';
CLASS_FastSender: TGUID = '{FF80631D-E750-4C67-AFC3-5170AB72518B}';
CLASS_Certificate: TGUID = '{EAFC4EAA-9390-492A-8E53-E179527780F6}';
CLASS_CertificateCollection: TGUID = '{036C2F8C-8D3C-4F4B-9B36-3B6F1D29C0B4}';
CLASS_SimpleJsonParser: TGUID = '{DD6B3C53-1871-4ADF-9C71-24B682012371}';
CLASS_SimpleJsonArray: TGUID = '{6C589C71-6FDC-4859-A9CD-F3A7EA2206D0}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IMail = interface;
IMailDisp = dispinterface;
ICertificate = interface;
ICertificateDisp = dispinterface;
ICertificateCollection = interface;
ICertificateCollectionDisp = dispinterface;
IFastSender = interface;
IFastSenderDisp = dispinterface;
ISimpleJsonArray = interface;
ISimpleJsonArrayDisp = dispinterface;
ISimpleJsonParser = interface;
ISimpleJsonParserDisp = dispinterface;
_IMailEvents = dispinterface;
_IFastSenderEvents = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
Mail = IMail;
FastSender = IFastSender;
Certificate = ICertificate;
CertificateCollection = ICertificateCollection;
SimpleJsonParser = ISimpleJsonParser;
SimpleJsonArray = ISimpleJsonArray;
// *********************************************************************//
// Interface: IMail
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {1AD28FC9-0C71-4E89-85C9-CAECDE8BE3AB}
// *********************************************************************//
IMail = interface(IDispatch)
['{1AD28FC9-0C71-4E89-85C9-CAECDE8BE3AB}']
function Get_BodyFormat: Integer; safecall;
procedure Set_BodyFormat(pVal: Integer); safecall;
function Get_BodyText: WideString; safecall;
procedure Set_BodyText(const pVal: WideString); safecall;
function Get_Charset: WideString; safecall;
procedure Set_Charset(const pVal: WideString); safecall;
function Get_From: WideString; safecall;
procedure Set_From(const pVal: WideString); safecall;
function Get_FromAddr: WideString; safecall;
procedure Set_FromAddr(const pVal: WideString); safecall;
function Get_LogFileName: WideString; safecall;
procedure Set_LogFileName(const pVal: WideString); safecall;
function Get_LicenseCode: WideString; safecall;
procedure Set_LicenseCode(const pVal: WideString); safecall;
function Get_ServerAddr: WideString; safecall;
procedure Set_ServerAddr(const pVal: WideString); safecall;
function Get_ServerPort: Integer; safecall;
procedure Set_ServerPort(pVal: Integer); safecall;
function Get_Subject: WideString; safecall;
procedure Set_Subject(const pVal: WideString); safecall;
function Get_ReplyTo: WideString; safecall;
procedure Set_ReplyTo(const pVal: WideString); safecall;
function Get_Priority: Integer; safecall;
procedure Set_Priority(pVal: Integer); safecall;
function Get_Timeout: Integer; safecall;
procedure Set_Timeout(pVal: Integer); safecall;
function Get_UserName: WideString; safecall;
procedure Set_UserName(const pVal: WideString); safecall;
function Get_Password: WideString; safecall;
procedure Set_Password(const pVal: WideString); safecall;
function Get_Version: WideString; safecall;
function Get_Asynchronous: Integer; safecall;
procedure Set_Asynchronous(pVal: Integer); safecall;
function Get_AltBody: WideString; safecall;
procedure Set_AltBody(const pVal: WideString); safecall;
function AddAttachment(const strFile: WideString): Integer; safecall;
function AddRecipient(const strName: WideString; const strAddress: WideString; Flags: Integer): Integer; safecall;
procedure ClearAttachment; safecall;
procedure ClearRecipient; safecall;
procedure ConvertHTML(Flags: Integer); safecall;
function ImportMail(const strFile: WideString): Integer; safecall;
procedure Reset; safecall;
function SendMail: Integer; safecall;
function AddAttachmentEx(const strFile: WideString; const strAlt: WideString): Integer; safecall;
function AddInline(const strFile: WideString): WideString; safecall;
function AddInlineEx(const strFile: WideString; const strAlt: WideString): WideString; safecall;
procedure ClearInline; safecall;
function SaveMail(const strFile: WideString): Integer; safecall;
function AddHeader(const strHeader: WideString; const strValue: WideString): Integer; safecall;
procedure ClearHeader; safecall;
procedure Terminate; safecall;
function GetLastError: Integer; safecall;
function GetLastErrDescription: WideString; safecall;
function Get_Anonymous: Integer; safecall;
procedure Set_Anonymous(pVal: Integer); safecall;
procedure SetMailer(const Mailer: WideString); safecall;
function Get_KeepConnection: Integer; safecall;
procedure Set_KeepConnection(pVal: Integer); safecall;
function ImportMailEx(const strFile: WideString): Integer; safecall;
function Get_TransferEncoding: Integer; safecall;
procedure Set_TransferEncoding(pVal: Integer); safecall;
function GetEmailServer(const EmailAddr: WideString): WideString; safecall;
function AddRecipientEx(const AddressList: WideString; Flags: Integer): Integer; safecall;
function AddAttachments(const sPath: WideString): Integer; safecall;
function Get_ComputerName: WideString; safecall;
procedure Set_ComputerName(const pVal: WideString); safecall;
function Get_BodyFormatEx: WideString; safecall;
procedure Set_BodyFormatEx(const pVal: WideString); safecall;
function Get_HeaderEncoding: Integer; safecall;
procedure Set_HeaderEncoding(pVal: Integer); safecall;
function SaveMailEx(const PickupPath: WideString): Integer; safecall;
function TestEmailAddr: Integer; safecall;
function GetAllEmailServers(const EmailAddr: WideString): WideString; safecall;
function GetEmailContent: WideString; safecall;
function GetEmailHeaders: WideString; safecall;
function GetAllRecipients: WideString; safecall;
function GetSenderAddr: WideString; safecall;
function Get_TryAllSmtpServers: Integer; safecall;
procedure Set_TryAllSmtpServers(pVal: Integer); safecall;
function CreateFolder(const FolderName: WideString): Integer; safecall;
function DeleteFile(const FileName: WideString): Integer; safecall;
function Get_RawModeEnable: Integer; safecall;
procedure Set_RawModeEnable(pVal: Integer); safecall;
function Get_WrapEmailAddr: Integer; safecall;
procedure Set_WrapEmailAddr(pVal: Integer); safecall;
function Get_DeliveryNotification: Integer; safecall;
procedure Set_DeliveryNotification(pVal: Integer); safecall;
function Get__Idle: Integer; safecall;
function SSL_init: Integer; safecall;
function Get_SSL_ignorecerterror: Integer; safecall;
procedure Set_SSL_ignorecerterror(pVal: Integer); safecall;
function Get_SSL_starttls: Integer; safecall;
procedure Set_SSL_starttls(pVal: Integer); safecall;
procedure SSL_uninit; safecall;
function Get_SSL_enabled: Integer; safecall;
function Get_raw_Content: WideString; safecall;
procedure Set_raw_Content(const pVal: WideString); safecall;
function Get_LogLevel: Integer; safecall;
procedure Set_LogLevel(pVal: Integer); safecall;
function Get_SignerCert: ICertificate; safecall;
procedure Set_SignerCert(const pVal: ICertificate); safecall;
function Get_RecipientsCerts: ICertificateCollection; safecall;
procedure WriteLog(const LogContent: WideString); safecall;
function Get_ReturnPath: WideString; safecall;
procedure Set_ReturnPath(const pVal: WideString); safecall;
function Get_LocalIP: WideString; safecall;
procedure Set_LocalIP(const pVal: WideString); safecall;
function ImportHtml(const html: WideString; const BasePath: WideString): Integer; safecall;
function AddAttachment1(const FileName: WideString; Stream: OleVariant): Integer; safecall;
function Get_AuthType: Integer; safecall;
procedure Set_AuthType(pVal: Integer); safecall;
function Get_SpecialFlags: Integer; safecall;
procedure Set_SpecialFlags(pVal: Integer); safecall;
function Get_DisplayTo: WideString; safecall;
procedure Set_DisplayTo(const pVal: WideString); safecall;
function Get_Date: TDateTime; safecall;
procedure Set_Date(pVal: TDateTime); safecall;
function Get_MessageID: WideString; safecall;
procedure Set_MessageID(const pVal: WideString); safecall;
procedure AppendBody(const BodyText: WideString; bAlt: Integer); safecall;
function AddInline1(const FileName: WideString; Stream: OleVariant): WideString; safecall;
function SendMailToQueue: Integer; safecall;
function Get_NoWrapBody: Integer; safecall;
procedure Set_NoWrapBody(pVal: Integer); safecall;
function Get_EncryptionAlgorithm: Integer; safecall;
procedure Set_EncryptionAlgorithm(pVal: Integer); safecall;
procedure ClearHeaderEx(const HeaderName: WideString); safecall;
function GetEmailChunk: OleVariant; safecall;
function AddAttachmentCT(const FileName: WideString; const ContentType: WideString): Integer; safecall;
function Get_SocksProxyServer: WideString; safecall;
procedure Set_SocksProxyServer(const pVal: WideString); safecall;
function Get_SocksProxyUser: WideString; safecall;
procedure Set_SocksProxyUser(const pVal: WideString); safecall;
function Get_SocksProxyPassword: WideString; safecall;
procedure Set_SocksProxyPassword(const pVal: WideString); safecall;
function Get_SocksProxyPort: Integer; safecall;
procedure Set_SocksProxyPort(pVal: Integer); safecall;
function Get_ProxyProtocol: Integer; safecall;
procedure Set_ProxyProtocol(pVal: Integer); safecall;
function Get_DK_PublicKey: WideString; safecall;
function LoadMessage(const FileName: WideString): Integer; safecall;
function Get_ReadReceipt: WordBool; safecall;
procedure Set_ReadReceipt(pVal: WordBool); safecall;
function LoadMessageChunk(newVal: OleVariant): Integer; safecall;
function Get_Recipients: OleVariant; safecall;
function Get_Style: Integer; safecall;
procedure Set_Style(pVal: Integer); safecall;
procedure SetAttHeader(Index: Integer; const HeaderKey: WideString;
const HeaderValue: WideString); safecall;
function Get_AutoCalendar: Integer; safecall;
procedure Set_AutoCalendar(pVal: Integer); safecall;
function Get_AttachmentCount: Integer; safecall;
function Get_DnsServerIP: WideString; safecall;
procedure Set_DnsServerIP(const pVal: WideString); safecall;
function SendMailToQueueEx(const Instant: WideString): Integer; safecall;
function LoadRawMessage(const FileName: WideString; Flag: Integer): Integer; safecall;
function Get_Protocol: Integer; safecall;
procedure Set_Protocol(pVal: Integer); safecall;
function Get_Alias: WideString; safecall;
procedure Set_Alias(const pVal: WideString); safecall;
function Get_Drafts: WideString; safecall;
procedure Set_Drafts(const pVal: WideString); safecall;
function Get_Sender: WideString; safecall;
procedure Set_Sender(const pVal: WideString); safecall;
procedure Quit; safecall;
procedure Close; safecall;
function Get_HttpProxyAuthType: Integer; safecall;
procedure Set_HttpProxyAuthType(pVal: Integer); safecall;
function Get_SMIMERFCCompatibility: WordBool; safecall;
procedure Set_SMIMERFCCompatibility(pVal: WordBool); safecall;
function Get_PIPELINING: WordBool; safecall;
procedure Set_PIPELINING(pVal: WordBool); safecall;
function Get_IgnoreDeliveryNotificationError: Integer; safecall;
procedure Set_IgnoreDeliveryNotificationError(pVal: Integer); safecall;
function Get_IPv6Policy: Integer; safecall;
procedure Set_IPv6Policy(pVal: Integer); safecall;
function Get_LocalIP6: WideString; safecall;
procedure Set_LocalIP6(const pVal: WideString); safecall;
function PostToRemoteQueue(const Instance: WideString; const URL: WideString;
const User: WideString; const Password: WideString): Integer; safecall;
function Get_MimeSplitor: WideString; safecall;
procedure Set_MimeSplitor(const pVal: WideString); safecall;
function Get_SaveCopy: WordBool; safecall;
procedure Set_SaveCopy(pVal: WordBool); safecall;
function Get_SignatureHashAlgorithm: Integer; safecall;
procedure Set_SignatureHashAlgorithm(pVal: Integer); safecall;
property BodyFormat: Integer read Get_BodyFormat write Set_BodyFormat;
property BodyText: WideString read Get_BodyText write Set_BodyText;
property Charset: WideString read Get_Charset write Set_Charset;
property From: WideString read Get_From write Set_From;
property FromAddr: WideString read Get_FromAddr write Set_FromAddr;
property LogFileName: WideString read Get_LogFileName write Set_LogFileName;
property LicenseCode: WideString read Get_LicenseCode write Set_LicenseCode;
property ServerAddr: WideString read Get_ServerAddr write Set_ServerAddr;
property ServerPort: Integer read Get_ServerPort write Set_ServerPort;
property Subject: WideString read Get_Subject write Set_Subject;
property ReplyTo: WideString read Get_ReplyTo write Set_ReplyTo;
property Priority: Integer read Get_Priority write Set_Priority;
property Timeout: Integer read Get_Timeout write Set_Timeout;
property UserName: WideString read Get_UserName write Set_UserName;
property Password: WideString read Get_Password write Set_Password;
property Version: WideString read Get_Version;
property Asynchronous: Integer read Get_Asynchronous write Set_Asynchronous;
property AltBody: WideString read Get_AltBody write Set_AltBody;
property Anonymous: Integer read Get_Anonymous write Set_Anonymous;
property KeepConnection: Integer read Get_KeepConnection write Set_KeepConnection;
property TransferEncoding: Integer read Get_TransferEncoding write Set_TransferEncoding;
property ComputerName: WideString read Get_ComputerName write Set_ComputerName;
property BodyFormatEx: WideString read Get_BodyFormatEx write Set_BodyFormatEx;
property HeaderEncoding: Integer read Get_HeaderEncoding write Set_HeaderEncoding;
property TryAllSmtpServers: Integer read Get_TryAllSmtpServers write Set_TryAllSmtpServers;
property RawModeEnable: Integer read Get_RawModeEnable write Set_RawModeEnable;
property WrapEmailAddr: Integer read Get_WrapEmailAddr write Set_WrapEmailAddr;
property DeliveryNotification: Integer read Get_DeliveryNotification write Set_DeliveryNotification;
property _Idle: Integer read Get__Idle;
property SSL_ignorecerterror: Integer read Get_SSL_ignorecerterror write Set_SSL_ignorecerterror;
property SSL_starttls: Integer read Get_SSL_starttls write Set_SSL_starttls;
property SSL_enabled: Integer read Get_SSL_enabled;
property raw_Content: WideString read Get_raw_Content write Set_raw_Content;
property LogLevel: Integer read Get_LogLevel write Set_LogLevel;
property SignerCert: ICertificate read Get_SignerCert write Set_SignerCert;
property RecipientsCerts: ICertificateCollection read Get_RecipientsCerts;
property ReturnPath: WideString read Get_ReturnPath write Set_ReturnPath;
property LocalIP: WideString read Get_LocalIP write Set_LocalIP;
property AuthType: Integer read Get_AuthType write Set_AuthType;
property SpecialFlags: Integer read Get_SpecialFlags write Set_SpecialFlags;
property DisplayTo: WideString read Get_DisplayTo write Set_DisplayTo;
property Date: TDateTime read Get_Date write Set_Date;
property MessageID: WideString read Get_MessageID write Set_MessageID;
property NoWrapBody: Integer read Get_NoWrapBody write Set_NoWrapBody;
property EncryptionAlgorithm: Integer read Get_EncryptionAlgorithm write Set_EncryptionAlgorithm;
property SocksProxyServer: WideString read Get_SocksProxyServer write Set_SocksProxyServer;
property SocksProxyUser: WideString read Get_SocksProxyUser write Set_SocksProxyUser;
property SocksProxyPassword: WideString read Get_SocksProxyPassword write Set_SocksProxyPassword;
property SocksProxyPort: Integer read Get_SocksProxyPort write Set_SocksProxyPort;
property ProxyProtocol: Integer read Get_ProxyProtocol write Set_ProxyProtocol;
property DK_PublicKey: WideString read Get_DK_PublicKey;
property ReadReceipt: WordBool read Get_ReadReceipt write Set_ReadReceipt;
property Recipients: OleVariant read Get_Recipients;
property Style: Integer read Get_Style write Set_Style;
property AutoCalendar: Integer read Get_AutoCalendar write Set_AutoCalendar;
property AttachmentCount: Integer read Get_AttachmentCount;
property DnsServerIP: WideString read Get_DnsServerIP write Set_DnsServerIP;
property Protocol: Integer read Get_Protocol write Set_Protocol;
property Alias: WideString read Get_Alias write Set_Alias;
property Drafts: WideString read Get_Drafts write Set_Drafts;
property Sender: WideString read Get_Sender write Set_Sender;
property HttpProxyAuthType: Integer read Get_HttpProxyAuthType write Set_HttpProxyAuthType;
property SMIMERFCCompatibility: WordBool read Get_SMIMERFCCompatibility write Set_SMIMERFCCompatibility;
property PIPELINING: WordBool read Get_PIPELINING write Set_PIPELINING;
property IgnoreDeliveryNotificationError: Integer read Get_IgnoreDeliveryNotificationError write Set_IgnoreDeliveryNotificationError;
property IPv6Policy: Integer read Get_IPv6Policy write Set_IPv6Policy;
property LocalIP6: WideString read Get_LocalIP6 write Set_LocalIP6;
property MimeSplitor: WideString read Get_MimeSplitor write Set_MimeSplitor;
property SaveCopy: WordBool read Get_SaveCopy write Set_SaveCopy;
property SignatureHashAlgorithm: Integer read Get_SignatureHashAlgorithm write Set_SignatureHashAlgorithm;
end;
// *********************************************************************//
// DispIntf: IMailDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {1AD28FC9-0C71-4E89-85C9-CAECDE8BE3AB}
// *********************************************************************//
IMailDisp = dispinterface
['{1AD28FC9-0C71-4E89-85C9-CAECDE8BE3AB}']
property BodyFormat: Integer dispid 1;
property BodyText: WideString dispid 2;
property Charset: WideString dispid 3;
property From: WideString dispid 4;
property FromAddr: WideString dispid 5;
property LogFileName: WideString dispid 6;
property LicenseCode: WideString dispid 7;
property ServerAddr: WideString dispid 8;
property ServerPort: Integer dispid 9;
property Subject: WideString dispid 10;
property ReplyTo: WideString dispid 11;
property Priority: Integer dispid 12;
property Timeout: Integer dispid 13;
property UserName: WideString dispid 14;
property Password: WideString dispid 15;
property Version: WideString readonly dispid 16;
property Asynchronous: Integer dispid 17;
property AltBody: WideString dispid 18;
function AddAttachment(const strFile: WideString): Integer; dispid 19;
function AddRecipient(const strName: WideString; const strAddress: WideString; Flags: Integer): Integer; dispid 20;
procedure ClearAttachment; dispid 21;
procedure ClearRecipient; dispid 22;
procedure ConvertHTML(Flags: Integer); dispid 23;
function ImportMail(const strFile: WideString): Integer; dispid 24;
procedure Reset; dispid 25;
function SendMail: Integer; dispid 26;
function AddAttachmentEx(const strFile: WideString; const strAlt: WideString): Integer; dispid 27;
function AddInline(const strFile: WideString): WideString; dispid 28;
function AddInlineEx(const strFile: WideString; const strAlt: WideString): WideString; dispid 29;
procedure ClearInline; dispid 30;
function SaveMail(const strFile: WideString): Integer; dispid 31;
function AddHeader(const strHeader: WideString; const strValue: WideString): Integer; dispid 32;
procedure ClearHeader; dispid 33;
procedure Terminate; dispid 34;
function GetLastError: Integer; dispid 35;
function GetLastErrDescription: WideString; dispid 36;
property Anonymous: Integer dispid 37;
procedure SetMailer(const Mailer: WideString); dispid 38;
property KeepConnection: Integer dispid 39;
function ImportMailEx(const strFile: WideString): Integer; dispid 40;
property TransferEncoding: Integer dispid 41;
function GetEmailServer(const EmailAddr: WideString): WideString; dispid 42;
function AddRecipientEx(const AddressList: WideString; Flags: Integer): Integer; dispid 43;
function AddAttachments(const sPath: WideString): Integer; dispid 44;
property ComputerName: WideString dispid 45;
property BodyFormatEx: WideString dispid 46;
property HeaderEncoding: Integer dispid 47;
function SaveMailEx(const PickupPath: WideString): Integer; dispid 48;
function TestEmailAddr: Integer; dispid 49;
function GetAllEmailServers(const EmailAddr: WideString): WideString; dispid 50;
function GetEmailContent: WideString; dispid 51;
function GetEmailHeaders: WideString; dispid 52;
function GetAllRecipients: WideString; dispid 53;
function GetSenderAddr: WideString; dispid 54;
property TryAllSmtpServers: Integer dispid 55;
function CreateFolder(const FolderName: WideString): Integer; dispid 56;
function DeleteFile(const FileName: WideString): Integer; dispid 57;
property RawModeEnable: Integer dispid 58;
property WrapEmailAddr: Integer dispid 59;
property DeliveryNotification: Integer dispid 60;
property _Idle: Integer readonly dispid 61;
function SSL_init: Integer; dispid 62;
property SSL_ignorecerterror: Integer dispid 63;
property SSL_starttls: Integer dispid 64;
procedure SSL_uninit; dispid 65;
property SSL_enabled: Integer readonly dispid 66;
property raw_Content: WideString dispid 67;
property LogLevel: Integer dispid 68;
property SignerCert: ICertificate dispid 69;
property RecipientsCerts: ICertificateCollection readonly dispid 70;
procedure WriteLog(const LogContent: WideString); dispid 71;
property ReturnPath: WideString dispid 72;
property LocalIP: WideString dispid 73;
function ImportHtml(const html: WideString; const BasePath: WideString): Integer; dispid 74;
function AddAttachment1(const FileName: WideString; Stream: OleVariant): Integer; dispid 75;
property AuthType: Integer dispid 76;
property SpecialFlags: Integer dispid 77;
property DisplayTo: WideString dispid 78;
property Date: TDateTime dispid 79;
property MessageID: WideString dispid 80;
procedure AppendBody(const BodyText: WideString; bAlt: Integer); dispid 81;
function AddInline1(const FileName: WideString; Stream: OleVariant): WideString; dispid 82;
function SendMailToQueue: Integer; dispid 83;
property NoWrapBody: Integer dispid 84;
property EncryptionAlgorithm: Integer dispid 85;
procedure ClearHeaderEx(const HeaderName: WideString); dispid 86;
function GetEmailChunk: OleVariant; dispid 87;
function AddAttachmentCT(const FileName: WideString; const ContentType: WideString): Integer; dispid 88;
property SocksProxyServer: WideString dispid 89;
property SocksProxyUser: WideString dispid 90;
property SocksProxyPassword: WideString dispid 91;
property SocksProxyPort: Integer dispid 92;
property ProxyProtocol: Integer dispid 93;
property DK_PublicKey: WideString readonly dispid 94;
function LoadMessage(const FileName: WideString): Integer; dispid 95;
property ReadReceipt: WordBool dispid 96;
function LoadMessageChunk(newVal: OleVariant): Integer; dispid 97;
property Recipients: OleVariant readonly dispid 98;
property Style: Integer dispid 99;
procedure SetAttHeader(Index: Integer; const HeaderKey: WideString;
const HeaderValue: WideString); dispid 100;
property AutoCalendar: Integer dispid 101;
property AttachmentCount: Integer readonly dispid 102;
property DnsServerIP: WideString dispid 103;
function SendMailToQueueEx(const Instant: WideString): Integer; dispid 104;
function LoadRawMessage(const FileName: WideString; Flag: Integer): Integer; dispid 105;
property Protocol: Integer dispid 106;
property Alias: WideString dispid 107;
property Drafts: WideString dispid 108;
property Sender: WideString dispid 109;
procedure Quit; dispid 110;
procedure Close; dispid 111;
property HttpProxyAuthType: Integer dispid 112;
property SMIMERFCCompatibility: WordBool dispid 113;
property PIPELINING: WordBool dispid 114;
property IgnoreDeliveryNotificationError: Integer dispid 115;
property IPv6Policy: Integer dispid 116;
property LocalIP6: WideString dispid 117;
function PostToRemoteQueue(const Instance: WideString; const URL: WideString;
const User: WideString; const Password: WideString): Integer; dispid 118;
property MimeSplitor: WideString dispid 119;
property SaveCopy: WordBool dispid 120;
property SignatureHashAlgorithm: Integer dispid 121;
end;
// *********************************************************************//
// Interface: ICertificate
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {A2809780-C98E-4C6D-A552-DAB146D4AD12}
// *********************************************************************//
ICertificate = interface(IDispatch)
['{A2809780-C98E-4C6D-A552-DAB146D4AD12}']
function FindSubject(const FindKey: WideString; StoreLocation: Integer;
const StoreName: WideString): WordBool; safecall;
function LoadPFX(PFXContent: OleVariant; const Password: WideString; KeyLocation: Integer): WordBool; safecall;
function LoadPFXFromFile(const PFXFile: WideString; const Password: WideString;
KeyLocation: Integer): WordBool; safecall;
function LoadCert(CERTContent: OleVariant): WordBool; safecall;
function LoadCertFromFile(const CERTFile: WideString): WordBool; safecall;
procedure Unload; safecall;
function Get_HasCertificate: WordBool; safecall;
function Get_Store: Largeuint; safecall;
procedure Set_Store(pVal: Largeuint); safecall;
function Get_Handle: Largeuint; safecall;
procedure Set_Handle(pVal: Largeuint); safecall;
function SignMessage(Content: OleVariant; SignatureHashAlgorithm: Integer): OleVariant; safecall;
function Get_HasPrivateKey: WordBool; safecall;
function GetLastError: WideString; safecall;
function Get_Issuer: WideString; safecall;
procedure Set_Issuer(const pVal: WideString); safecall;
function Get_PublicKey: WideString; safecall;
procedure Set_PublicKey(const pVal: WideString); safecall;
function Get_Subject: WideString; safecall;
procedure Set_Subject(const pVal: WideString); safecall;
function Get_NotAfter: TDateTime; safecall;
procedure Set_NotAfter(pVal: TDateTime); safecall;
function Get_NotBefore: TDateTime; safecall;
procedure Set_NotBefore(pVal: TDateTime); safecall;
function Get_SerialNumber: WideString; safecall;
procedure Set_SerialNumber(const pVal: WideString); safecall;
function FindCertificates(const FindKey: WideString; StoreLocation: Integer;
const StoreName: WideString): ICertificateCollection; safecall;
property HasCertificate: WordBool read Get_HasCertificate;
property Store: Largeuint read Get_Store write Set_Store;
property Handle: Largeuint read Get_Handle write Set_Handle;
property HasPrivateKey: WordBool read Get_HasPrivateKey;
property Issuer: WideString read Get_Issuer write Set_Issuer;
property PublicKey: WideString read Get_PublicKey write Set_PublicKey;
property Subject: WideString read Get_Subject write Set_Subject;
property NotAfter: TDateTime read Get_NotAfter write Set_NotAfter;
property NotBefore: TDateTime read Get_NotBefore write Set_NotBefore;
property SerialNumber: WideString read Get_SerialNumber write Set_SerialNumber;
end;
// *********************************************************************//
// DispIntf: ICertificateDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {A2809780-C98E-4C6D-A552-DAB146D4AD12}
// *********************************************************************//
ICertificateDisp = dispinterface
['{A2809780-C98E-4C6D-A552-DAB146D4AD12}']
function FindSubject(const FindKey: WideString; StoreLocation: Integer;
const StoreName: WideString): WordBool; dispid 1;
function LoadPFX(PFXContent: OleVariant; const Password: WideString; KeyLocation: Integer): WordBool; dispid 2;
function LoadPFXFromFile(const PFXFile: WideString; const Password: WideString;
KeyLocation: Integer): WordBool; dispid 3;
function LoadCert(CERTContent: OleVariant): WordBool; dispid 4;
function LoadCertFromFile(const CERTFile: WideString): WordBool; dispid 5;
procedure Unload; dispid 6;
property HasCertificate: WordBool readonly dispid 7;
property Store: {??Largeuint}OleVariant dispid 8;
property Handle: {??Largeuint}OleVariant dispid 9;
function SignMessage(Content: OleVariant; SignatureHashAlgorithm: Integer): OleVariant; dispid 10;
property HasPrivateKey: WordBool readonly dispid 11;
function GetLastError: WideString; dispid 12;
property Issuer: WideString dispid 13;
property PublicKey: WideString dispid 14;
property Subject: WideString dispid 15;
property NotAfter: TDateTime dispid 16;
property NotBefore: TDateTime dispid 17;
property SerialNumber: WideString dispid 18;
function FindCertificates(const FindKey: WideString; StoreLocation: Integer;
const StoreName: WideString): ICertificateCollection; dispid 19;
end;
// *********************************************************************//
// Interface: ICertificateCollection
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {DC8D5635-B8E7-441E-B550-CE1BF3BA5C55}
// *********************************************************************//
ICertificateCollection = interface(IDispatch)
['{DC8D5635-B8E7-441E-B550-CE1BF3BA5C55}']
function Get_Count: Integer; safecall;
function Item(Index: Integer): ICertificate; safecall;
procedure Add(const oCert: ICertificate); safecall;
procedure Insert(Index: Integer; const oCert: ICertificate); safecall;
procedure Clear; safecall;
procedure RemoveAt(Index: Integer); safecall;
function EncryptMessage(EncryptionAlgorithm: Integer; Content: OleVariant): OleVariant; safecall;
function Get_HasEncryptCert: WordBool; safecall;
function GetLastError: WideString; safecall;
property Count: Integer read Get_Count;
property HasEncryptCert: WordBool read Get_HasEncryptCert;
end;
// *********************************************************************//
// DispIntf: ICertificateCollectionDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {DC8D5635-B8E7-441E-B550-CE1BF3BA5C55}
// *********************************************************************//
ICertificateCollectionDisp = dispinterface
['{DC8D5635-B8E7-441E-B550-CE1BF3BA5C55}']
property Count: Integer readonly dispid 1;
function Item(Index: Integer): ICertificate; dispid 2;
procedure Add(const oCert: ICertificate); dispid 3;
procedure Insert(Index: Integer; const oCert: ICertificate); dispid 4;
procedure Clear; dispid 5;
procedure RemoveAt(Index: Integer); dispid 6;
function EncryptMessage(EncryptionAlgorithm: Integer; Content: OleVariant): OleVariant; dispid 7;
property HasEncryptCert: WordBool readonly dispid 8;
function GetLastError: WideString; dispid 9;
end;
// *********************************************************************//
// Interface: IFastSender
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {92298BE3-ADEC-438F-800C-CF6311A7DF1D}
// *********************************************************************//
IFastSender = interface(IDispatch)
['{92298BE3-ADEC-438F-800C-CF6311A7DF1D}']
function Send(const pSmtp: IMail; nKey: Integer; const tParam: WideString): Integer; safecall;
function Test(const pSmtp: IMail; nKey: Integer; const tParam: WideString): Integer; safecall;
function Get_MaxThreads: Integer; safecall;
procedure Set_MaxThreads(pVal: Integer); safecall;
function GetCurrentThreads: Integer; safecall;
function GetQueuedCount: Integer; safecall;
procedure ClearQueuedMails; safecall;
procedure StopAllThreads; safecall;
function GetIdleThreads: Integer; safecall;
function SendByPickup(const PickupPath: WideString; const pSmtp: IMail; nKey: Integer;
const tParam: WideString): Integer; safecall;
function SendEmlFile(const FileName: WideString; const senderAddr: WideString;
const recipientAddrs: WideString; nKey: Integer; const tParam: WideString;
const RegisterKey: WideString): Integer; safecall;
function Get_ComputerName: WideString; safecall;
procedure Set_ComputerName(const pVal: WideString); safecall;
procedure LockEvent; safecall;
procedure UnlockEvent; safecall;
procedure ClearAllMails; safecall;
procedure Pause; safecall;
procedure Resume; safecall;
function Get_KeepConnection: Integer; safecall;
procedure Set_KeepConnection(pVal: Integer); safecall;
function Get_MaxMessagePerConnection: Integer; safecall;
procedure Set_MaxMessagePerConnection(pVal: Integer); safecall;
property MaxThreads: Integer read Get_MaxThreads write Set_MaxThreads;
property ComputerName: WideString read Get_ComputerName write Set_ComputerName;
property KeepConnection: Integer read Get_KeepConnection write Set_KeepConnection;
property MaxMessagePerConnection: Integer read Get_MaxMessagePerConnection write Set_MaxMessagePerConnection;
end;
// *********************************************************************//
// DispIntf: IFastSenderDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {92298BE3-ADEC-438F-800C-CF6311A7DF1D}
// *********************************************************************//
IFastSenderDisp = dispinterface
['{92298BE3-ADEC-438F-800C-CF6311A7DF1D}']
function Send(const pSmtp: IMail; nKey: Integer; const tParam: WideString): Integer; dispid 1;
function Test(const pSmtp: IMail; nKey: Integer; const tParam: WideString): Integer; dispid 2;
property MaxThreads: Integer dispid 3;
function GetCurrentThreads: Integer; dispid 4;
function GetQueuedCount: Integer; dispid 5;
procedure ClearQueuedMails; dispid 6;
procedure StopAllThreads; dispid 7;
function GetIdleThreads: Integer; dispid 8;
function SendByPickup(const PickupPath: WideString; const pSmtp: IMail; nKey: Integer;
const tParam: WideString): Integer; dispid 9;
function SendEmlFile(const FileName: WideString; const senderAddr: WideString;
const recipientAddrs: WideString; nKey: Integer; const tParam: WideString;
const RegisterKey: WideString): Integer; dispid 10;
property ComputerName: WideString dispid 11;
procedure LockEvent; dispid 12;
procedure UnlockEvent; dispid 13;
procedure ClearAllMails; dispid 14;
procedure Pause; dispid 15;
procedure Resume; dispid 16;
property KeepConnection: Integer dispid 17;
property MaxMessagePerConnection: Integer dispid 18;
end;
// *********************************************************************//
// Interface: ISimpleJsonArray
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {B62298B7-A091-4A42-8D50-B7F0194DE25A}
// *********************************************************************//
ISimpleJsonArray = interface(IDispatch)
['{B62298B7-A091-4A42-8D50-B7F0194DE25A}']
function Get_Length: Integer; safecall;
function Get_Count: Integer; safecall;
procedure Add(const newVal: WideString); safecall;
procedure RemoveAt(Index: Integer); safecall;
procedure Clear; safecall;
function Item(Index: Integer): WideString; safecall;
property Length: Integer read Get_Length;
property Count: Integer read Get_Count;
end;
// *********************************************************************//
// DispIntf: ISimpleJsonArrayDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {B62298B7-A091-4A42-8D50-B7F0194DE25A}
// *********************************************************************//
ISimpleJsonArrayDisp = dispinterface
['{B62298B7-A091-4A42-8D50-B7F0194DE25A}']
property Length: Integer readonly dispid 1;
property Count: Integer readonly dispid 2;
procedure Add(const newVal: WideString); dispid 3;
procedure RemoveAt(Index: Integer); dispid 4;
procedure Clear; dispid 5;
function Item(Index: Integer): WideString; dispid 6;
end;
// *********************************************************************//
// Interface: ISimpleJsonParser
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {08088DBB-A031-4DCE-A4DF-7683CBE706AF}
// *********************************************************************//
ISimpleJsonParser = interface(IDispatch)
['{08088DBB-A031-4DCE-A4DF-7683CBE706AF}']
function GetJsonValue(const Source: WideString; const Key: WideString): WideString; safecall;
function ParseArray(const Source: WideString): ISimpleJsonArray; safecall;
function Trim(const Source: WideString; const Trimer: WideString): WideString; safecall;
end;
// *********************************************************************//
// DispIntf: ISimpleJsonParserDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {08088DBB-A031-4DCE-A4DF-7683CBE706AF}
// *********************************************************************//
ISimpleJsonParserDisp = dispinterface
['{08088DBB-A031-4DCE-A4DF-7683CBE706AF}']
function GetJsonValue(const Source: WideString; const Key: WideString): WideString; dispid 1;
function ParseArray(const Source: WideString): ISimpleJsonArray; dispid 2;
function Trim(const Source: WideString; const Trimer: WideString): WideString; dispid 3;
end;
// *********************************************************************//
// DispIntf: _IMailEvents
// Flags: (4096) Dispatchable
// GUID: {68CB8B02-D4AA-4A16-97A0-6B9488F98189}
// *********************************************************************//
_IMailEvents = dispinterface
['{68CB8B02-D4AA-4A16-97A0-6B9488F98189}']
procedure OnClosed; dispid 1;
procedure OnSending(lSent: Integer; lTotal: Integer); dispid 2;
procedure OnError(lError: Integer; const ErrDescription: WideString); dispid 3;
procedure OnConnected; dispid 4;
procedure OnAuthenticated; dispid 5;
procedure OnSendCommand(var Command: WideString); dispid 6;
procedure OnServerRespond(var Response: WideString); dispid 7;
end;
// *********************************************************************//
// DispIntf: _IFastSenderEvents
// Flags: (4096) Dispatchable
// GUID: {A1B45F08-67E7-4276-A7CA-7664C08F9EF7}
// *********************************************************************//
_IFastSenderEvents = dispinterface
['{A1B45F08-67E7-4276-A7CA-7664C08F9EF7}']
procedure OnSent(lRet: Integer; const ErrDesc: WideString; nKey: Integer;
const tParam: WideString; const senderAddr: WideString;
const Recipients: WideString); dispid 1;
procedure OnConnected(nKey: Integer; const tParam: WideString); dispid 2;
procedure OnAuthenticated(nKey: Integer; const tParam: WideString); dispid 3;
procedure OnSending(lSent: Integer; lTotal: Integer; nKey: Integer; const tParam: WideString); dispid 4;
procedure OnBeforeConnect(var Server: WideString; var User: WideString;
var Password: WideString; var Port: Integer; var SSL: WordBool); dispid 5;
end;
// *********************************************************************//
// The Class CoMail provides a Create and CreateRemote method to
// create instances of the default interface IMail exposed by
// the CoClass Mail. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoMail = class
class function Create: IMail;
class function CreateRemote(const MachineName: string): IMail;
end;
TMailOnSending = procedure(ASender: TObject; lSent: Integer; lTotal: Integer) of object;
TMailOnError = procedure(ASender: TObject; lError: Integer; const ErrDescription: WideString) of object;
TMailOnSendCommand = procedure(ASender: TObject; var Command: WideString) of object;
TMailOnServerRespond = procedure(ASender: TObject; var Response: WideString) of object;
// *********************************************************************//
// OLE Server Proxy class declaration
// Server Object : TMail
// Help String : Mail Class
// Default Interface: IMail
// Def. Intf. DISP? : No
// Event Interface: _IMailEvents
// TypeFlags : (2) CanCreate
// *********************************************************************//
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
TMailProperties= class;
{$ENDIF}
TMail = class(TOleServer)
private
FOnClosed: TNotifyEvent;
FOnSending: TMailOnSending;
FOnError: TMailOnError;
FOnConnected: TNotifyEvent;
FOnAuthenticated: TNotifyEvent;
FOnSendCommand: TMailOnSendCommand;
FOnServerRespond: TMailOnServerRespond;
FAutoQuit: Boolean;
FIntf: IMail;
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
FProps: TMailProperties;
function GetServerProperties: TMailProperties;
{$ENDIF}
function GetDefaultInterface: IMail;
protected
procedure InitServerData; override;
procedure InvokeEvent(DispID: TDispID; var Params: TVariantArray); override;
function Get_BodyFormat: Integer;
procedure Set_BodyFormat(pVal: Integer);
function Get_BodyText: WideString;
procedure Set_BodyText(const pVal: WideString);
function Get_Charset: WideString;
procedure Set_Charset(const pVal: WideString);
function Get_From: WideString;
procedure Set_From(const pVal: WideString);
function Get_FromAddr: WideString;
procedure Set_FromAddr(const pVal: WideString);
function Get_LogFileName: WideString;
procedure Set_LogFileName(const pVal: WideString);
function Get_LicenseCode: WideString;
procedure Set_LicenseCode(const pVal: WideString);
function Get_ServerAddr: WideString;
procedure Set_ServerAddr(const pVal: WideString);
function Get_ServerPort: Integer;
procedure Set_ServerPort(pVal: Integer);
function Get_Subject: WideString;
procedure Set_Subject(const pVal: WideString);
function Get_ReplyTo: WideString;
procedure Set_ReplyTo(const pVal: WideString);
function Get_Priority: Integer;
procedure Set_Priority(pVal: Integer);
function Get_Timeout: Integer;
procedure Set_Timeout(pVal: Integer);
function Get_UserName: WideString;
procedure Set_UserName(const pVal: WideString);
function Get_Password: WideString;
procedure Set_Password(const pVal: WideString);
function Get_Version: WideString;
function Get_Asynchronous: Integer;
procedure Set_Asynchronous(pVal: Integer);
function Get_AltBody: WideString;
procedure Set_AltBody(const pVal: WideString);
function Get_Anonymous: Integer;
procedure Set_Anonymous(pVal: Integer);
function Get_KeepConnection: Integer;
procedure Set_KeepConnection(pVal: Integer);
function Get_TransferEncoding: Integer;
procedure Set_TransferEncoding(pVal: Integer);
function Get_ComputerName: WideString;
procedure Set_ComputerName(const pVal: WideString);
function Get_BodyFormatEx: WideString;
procedure Set_BodyFormatEx(const pVal: WideString);
function Get_HeaderEncoding: Integer;
procedure Set_HeaderEncoding(pVal: Integer);
function Get_TryAllSmtpServers: Integer;
procedure Set_TryAllSmtpServers(pVal: Integer);
function Get_RawModeEnable: Integer;
procedure Set_RawModeEnable(pVal: Integer);
function Get_WrapEmailAddr: Integer;
procedure Set_WrapEmailAddr(pVal: Integer);
function Get_DeliveryNotification: Integer;
procedure Set_DeliveryNotification(pVal: Integer);
function Get__Idle: Integer;
function Get_SSL_ignorecerterror: Integer;
procedure Set_SSL_ignorecerterror(pVal: Integer);
function Get_SSL_starttls: Integer;
procedure Set_SSL_starttls(pVal: Integer);
function Get_SSL_enabled: Integer;
function Get_raw_Content: WideString;
procedure Set_raw_Content(const pVal: WideString);
function Get_LogLevel: Integer;
procedure Set_LogLevel(pVal: Integer);
function Get_SignerCert: ICertificate;
procedure Set_SignerCert(const pVal: ICertificate);
function Get_RecipientsCerts: ICertificateCollection;
function Get_ReturnPath: WideString;
procedure Set_ReturnPath(const pVal: WideString);
function Get_LocalIP: WideString;
procedure Set_LocalIP(const pVal: WideString);
function Get_AuthType: Integer;
procedure Set_AuthType(pVal: Integer);
function Get_SpecialFlags: Integer;
procedure Set_SpecialFlags(pVal: Integer);
function Get_DisplayTo: WideString;
procedure Set_DisplayTo(const pVal: WideString);
function Get_Date: TDateTime;
procedure Set_Date(pVal: TDateTime);
function Get_MessageID: WideString;
procedure Set_MessageID(const pVal: WideString);
function Get_NoWrapBody: Integer;
procedure Set_NoWrapBody(pVal: Integer);
function Get_EncryptionAlgorithm: Integer;
procedure Set_EncryptionAlgorithm(pVal: Integer);
function Get_SocksProxyServer: WideString;
procedure Set_SocksProxyServer(const pVal: WideString);
function Get_SocksProxyUser: WideString;
procedure Set_SocksProxyUser(const pVal: WideString);
function Get_SocksProxyPassword: WideString;
procedure Set_SocksProxyPassword(const pVal: WideString);
function Get_SocksProxyPort: Integer;
procedure Set_SocksProxyPort(pVal: Integer);
function Get_ProxyProtocol: Integer;
procedure Set_ProxyProtocol(pVal: Integer);
function Get_DK_PublicKey: WideString;
function Get_ReadReceipt: WordBool;
procedure Set_ReadReceipt(pVal: WordBool);
function Get_Recipients: OleVariant;
function Get_Style: Integer;
procedure Set_Style(pVal: Integer);
function Get_AutoCalendar: Integer;
procedure Set_AutoCalendar(pVal: Integer);
function Get_AttachmentCount: Integer;
function Get_DnsServerIP: WideString;
procedure Set_DnsServerIP(const pVal: WideString);
function Get_Protocol: Integer;
procedure Set_Protocol(pVal: Integer);
function Get_Alias: WideString;
procedure Set_Alias(const pVal: WideString);
function Get_Drafts: WideString;
procedure Set_Drafts(const pVal: WideString);
function Get_Sender: WideString;
procedure Set_Sender(const pVal: WideString);
function Get_HttpProxyAuthType: Integer;
procedure Set_HttpProxyAuthType(pVal: Integer);
function Get_SMIMERFCCompatibility: WordBool;
procedure Set_SMIMERFCCompatibility(pVal: WordBool);
function Get_PIPELINING: WordBool;
procedure Set_PIPELINING(pVal: WordBool);
function Get_IgnoreDeliveryNotificationError: Integer;
procedure Set_IgnoreDeliveryNotificationError(pVal: Integer);
function Get_IPv6Policy: Integer;
procedure Set_IPv6Policy(pVal: Integer);
function Get_LocalIP6: WideString;
procedure Set_LocalIP6(const pVal: WideString);
function Get_MimeSplitor: WideString;
procedure Set_MimeSplitor(const pVal: WideString);
function Get_SaveCopy: WordBool;
procedure Set_SaveCopy(pVal: WordBool);
function Get_SignatureHashAlgorithm: Integer;
procedure Set_SignatureHashAlgorithm(pVal: Integer);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
procedure Connect; override;
procedure ConnectTo(svrIntf: IMail);
procedure Disconnect; override;
function AddAttachment(const strFile: WideString): Integer;
function AddRecipient(const strName: WideString; const strAddress: WideString; Flags: Integer): Integer;
procedure ClearAttachment;
procedure ClearRecipient;
procedure ConvertHTML(Flags: Integer);
function ImportMail(const strFile: WideString): Integer;
procedure Reset;
function SendMail: Integer;
function AddAttachmentEx(const strFile: WideString; const strAlt: WideString): Integer;
function AddInline(const strFile: WideString): WideString;
function AddInlineEx(const strFile: WideString; const strAlt: WideString): WideString;
procedure ClearInline;
function SaveMail(const strFile: WideString): Integer;
function AddHeader(const strHeader: WideString; const strValue: WideString): Integer;
procedure ClearHeader;
procedure Terminate;
function GetLastError: Integer;
function GetLastErrDescription: WideString;
procedure SetMailer(const Mailer: WideString);
function ImportMailEx(const strFile: WideString): Integer;
function GetEmailServer(const EmailAddr: WideString): WideString;
function AddRecipientEx(const AddressList: WideString; Flags: Integer): Integer;
function AddAttachments(const sPath: WideString): Integer;
function SaveMailEx(const PickupPath: WideString): Integer;
function TestEmailAddr: Integer;
function GetAllEmailServers(const EmailAddr: WideString): WideString;
function GetEmailContent: WideString;
function GetEmailHeaders: WideString;
function GetAllRecipients: WideString;