📄 jmail.tlh
字号:
_bstr_t Name,
_bstr_t EMail,
char recipientType );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_Name (
BSTR * Value ) = 0;
virtual HRESULT __stdcall get_EMail (
BSTR * Value ) = 0;
virtual HRESULT __stdcall get_ReType (
long * Value ) = 0;
virtual HRESULT __stdcall raw_New (
BSTR Name,
BSTR EMail,
char recipientType,
struct IRecipient * * Value ) = 0;
};
struct __declspec(uuid("dbaaea4b-ad29-47bd-8776-c787d5be28aa"))
Recipient;
// [ default ] interface IRecipient
struct __declspec(uuid("1e6d8684-755d-4847-bf40-68ec5e4bc1e9"))
IAttachments : IDispatch
{
//
// Property data
//
__declspec(property(get=GetItem))
IAttachmentPtr Item[];
__declspec(property(get=GetCount))
long Count;
//
// Wrapper methods for error-handling
//
long GetCount ( );
HRESULT Add (
struct IAttachment * * Attachment );
IAttachmentPtr GetItem (
long index );
HRESULT Clear ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_Count (
long * Value ) = 0;
virtual HRESULT __stdcall raw_Add (
struct IAttachment * * Attachment ) = 0;
virtual HRESULT __stdcall get_Item (
long index,
struct IAttachment * * Value ) = 0;
virtual HRESULT __stdcall raw_Clear ( ) = 0;
};
struct __declspec(uuid("b3a0acb9-3d8c-4999-9e6b-3e44372e11dd"))
Attachments;
// [ default ] interface IAttachments
struct __declspec(uuid("952f0b99-50b6-44b3-ae0d-700d5b98b416"))
IAttachment : IDispatch
{
//
// Property data
//
__declspec(property(get=GetName))
_bstr_t Name;
__declspec(property(get=GetSize))
long Size;
__declspec(property(get=GetContentType))
_bstr_t ContentType;
__declspec(property(get=GetData,put=PutData))
_bstr_t Data;
__declspec(property(get=GetisInline,put=PutisInline))
VARIANT_BOOL isInline;
__declspec(property(get=GetBinaryData,put=PutBinaryData))
_bstr_t BinaryData;
//
// Wrapper methods for error-handling
//
_bstr_t GetName ( );
long GetSize ( );
_bstr_t GetContentType ( );
HRESULT SaveToFile (
_bstr_t FileName );
_bstr_t GetData ( );
void PutData (
_bstr_t Value );
IAttachmentPtr New (
_bstr_t FileName,
_bstr_t ContentType,
_bstr_t Data );
VARIANT_BOOL GetisInline ( );
void PutisInline (
VARIANT_BOOL Value );
_bstr_t GetBinaryData ( );
void PutBinaryData (
_bstr_t Value );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_Name (
BSTR * Value ) = 0;
virtual HRESULT __stdcall get_Size (
long * Value ) = 0;
virtual HRESULT __stdcall get_ContentType (
BSTR * Value ) = 0;
virtual HRESULT __stdcall raw_SaveToFile (
BSTR FileName ) = 0;
virtual HRESULT __stdcall get_Data (
BSTR * Value ) = 0;
virtual HRESULT __stdcall put_Data (
BSTR Value ) = 0;
virtual HRESULT __stdcall raw_New (
BSTR FileName,
BSTR ContentType,
BSTR Data,
struct IAttachment * * Value ) = 0;
virtual HRESULT __stdcall get_isInline (
VARIANT_BOOL * Value ) = 0;
virtual HRESULT __stdcall put_isInline (
VARIANT_BOOL Value ) = 0;
virtual HRESULT __stdcall get_BinaryData (
BSTR * Value ) = 0;
virtual HRESULT __stdcall put_BinaryData (
BSTR Value ) = 0;
};
struct __declspec(uuid("53deca78-c334-4235-9165-1fe7d8912a76"))
Attachment;
// [ default ] interface IAttachment
struct __declspec(uuid("aed3a6b1-2171-11d2-b77c-0008c73aca8f"))
ISMTPMail : IDispatch
{
//
// Property data
//
__declspec(property(get=GetMessage,put=PutMessage))
IMessagePtr Message;
__declspec(property(get=GetContentTransferEncoding,put=PutContentTransferEncoding))
_bstr_t ContentTransferEncoding;
__declspec(property(get=GetServerAddress,put=PutServerAddress))
_bstr_t ServerAddress;
__declspec(property(get=GetServerPort,put=PutServerPort))
long ServerPort;
__declspec(property(get=GetSender,put=PutSender))
_bstr_t Sender;
__declspec(property(get=GetReplyTo,put=PutReplyTo))
_bstr_t ReplyTo;
__declspec(property(get=GetSubject,put=PutSubject))
_bstr_t Subject;
__declspec(property(get=GetBody,put=PutBody))
_bstr_t Body;
__declspec(property(get=GetHideRecipients,put=PutHideRecipients))
_bstr_t HideRecipients;
__declspec(property(get=GetMailDomain,put=PutMailDomain))
_bstr_t MailDomain;
__declspec(property(get=GetLazysend,put=PutLazysend))
VARIANT_BOOL Lazysend;
__declspec(property(get=GetCharset,put=PutCharset))
_bstr_t Charset;
__declspec(property(get=GetSenderName,put=PutSenderName))
_bstr_t SenderName;
__declspec(property(get=GetContentType,put=PutContentType))
_bstr_t ContentType;
__declspec(property(get=GetPriority,put=PutPriority))
long Priority;
__declspec(property(get=GetMimeVersion,put=PutMimeVersion))
_bstr_t MimeVersion;
__declspec(property(get=GetEncoding,put=PutEncoding))
_bstr_t Encoding;
__declspec(property(get=GetReturnReceipt,put=PutReturnReceipt))
VARIANT_BOOL ReturnReceipt;
__declspec(property(get=GetHTMLBody,put=PutHTMLBody))
_bstr_t HTMLBody;
__declspec(property(get=GetLog))
_bstr_t Log;
__declspec(property(get=GetLogging,put=PutLogging))
VARIANT_BOOL Logging;
__declspec(property(get=GetISOEncodeHeaders,put=PutISOEncodeHeaders))
VARIANT_BOOL ISOEncodeHeaders;
__declspec(property(get=GetUsePipelining,put=PutUsePipelining))
VARIANT_BOOL UsePipelining;
__declspec(property(get=GetSilent,put=PutSilent))
VARIANT_BOOL Silent;
__declspec(property(get=GetErrorCode))
long ErrorCode;
__declspec(property(get=GetErrorMessage))
_bstr_t ErrorMessage;
__declspec(property(get=GetErrorSource))
_bstr_t ErrorSource;
__declspec(property(get=GetSimpleLayout,put=PutSimpleLayout))
VARIANT_BOOL SimpleLayout;
__declspec(property(get=GetRecipients))
_bstr_t Recipients;
__declspec(property(get=GetDeferredDelivery,put=PutDeferredDelivery))
DATE DeferredDelivery;
__declspec(property(get=GetVersion))
_bstr_t Version;
__declspec(property(get=GetMemCount))
long MemCount;
__declspec(property(get=GetMemSize))
long MemSize;
//
// Wrapper methods for error-handling
//
VARIANT_BOOL Execute ( );
HRESULT AppendBodyFromFile (
_bstr_t FileName );
HRESULT AppendText (
_bstr_t Text );
_bstr_t AddAttachment (
_bstr_t FileName,
_bstr_t ContentType );
_bstr_t AddCustomAttachment (
_bstr_t FileName,
_bstr_t Data );
HRESULT AddRecipient (
_bstr_t EMail );
HRESULT AddRecipientCC (
_bstr_t EMail );
HRESULT AddRecipientBCC (
_bstr_t EMail );
HRESULT AddHeader (
_bstr_t XHeader,
_bstr_t Value );
HRESULT AddNativeHeader (
_bstr_t Header,
_bstr_t Value );
HRESULT ClearRecipients ( );
HRESULT ClearAttachments ( );
_bstr_t GetServerAddress ( );
void PutServerAddress (
_bstr_t Value );
long GetServerPort ( );
void PutServerPort (
long Value );
_bstr_t GetSender ( );
void PutSender (
_bstr_t Value );
_bstr_t GetSenderName ( );
void PutSenderName (
_bstr_t Value );
_bstr_t GetReplyTo ( );
void PutReplyTo (
_bstr_t Value );
_bstr_t GetSubject ( );
void PutSubject (
_bstr_t Value );
_bstr_t GetBody ( );
void PutBody (
_bstr_t Value );
_bstr_t GetContentType ( );
void PutContentType (
_bstr_t Value );
long GetPriority ( );
void PutPriority (
long Value );
_bstr_t GetHideRecipients ( );
void PutHideRecipients (
_bstr_t Value );
_bstr_t GetMailDomain ( );
void PutMailDomain (
_bstr_t Value );
VARIANT_BOOL GetLazysend ( );
void PutLazysend (
VARIANT_BOOL Value );
_bstr_t GetCharset ( );
void PutCharset (
_bstr_t Value );
_bstr_t GetContentTransferEncoding ( );
void PutContentTransferEncoding (
_bstr_t Value );
_bstr_t GetMimeVersion ( );
void PutMimeVersion (
_bstr_t Value );
_bstr_t GetEncoding ( );
void PutEncoding (
_bstr_t Value );
HRESULT AddRecipientEx (
_bstr_t EMail,
_bstr_t Name );
VARIANT_BOOL GetReturnReceipt ( );
void PutReturnReceipt (
VARIANT_BOOL Value );
HRESULT LogCustomMessage (
_bstr_t Message );
_bstr_t GetLog ( );
VARIANT_BOOL GetLogging ( );
void PutLogging (
VARIANT_BOOL Value );
_bstr_t GetHTMLBody ( );
void PutHTMLBody (
_bstr_t Value );
HRESULT Close ( );
VARIANT_BOOL GetISOEncodeHeaders ( );
void PutISOEncodeHeaders (
VARIANT_BOOL Value );
HRESULT ClearCustomHeaders ( );
VARIANT_BOOL GetUsePipelining ( );
void PutUsePipelining (
VARIANT_BOOL Value );
VARIANT_BOOL GetSilent ( );
void PutSilent (
VARIANT_BOOL Value );
long GetErrorCode ( );
_bstr_t GetErrorMessage ( );
_bstr_t GetErrorSource ( );
VARIANT_BOOL GetSimpleLayout ( );
void PutSimpleLayout (
VARIANT_BOOL Value );
HRESULT GetMessageBodyFromURL (
_bstr_t bstrURL,
_bstr_t bstrAuth );
_bstr_t AddURLAttachment (
_bstr_t bstrURL,
_bstr_t bstrAttachAs,
_bstr_t bstrAuth );
HRESULT ExtractEmailAddressesFromURL (
_bstr_t bstrURL,
_bstr_t bstrAuth );
_bstr_t GetRecipients ( );
DATE GetDeferredDelivery ( );
void PutDeferredDelivery (
DATE Value );
_bstr_t GetVersion ( );
long GetMemCount ( );
long GetMemSize ( );
IMessagePtr GetMessage ( );
void PutMessage (
struct IMessage * Value );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall raw_Execute (
VARIANT_BOOL * RetVal ) = 0;
virtual HRESULT __stdcall raw_AppendBodyFromFile (
BSTR FileName ) = 0;
virtual HRESULT __stdcall raw_AppendText (
BSTR Text ) = 0;
virtual HRESULT __stdcall raw_AddAttachment (
BSTR FileName,
BSTR ContentType,
BSTR * Value ) = 0;
virtual HRESULT __stdcall raw_AddCustomAttachment (
BSTR FileName,
BSTR Data,
BSTR * Value ) = 0;
virtual HRESULT __stdcall raw_AddRecipient (
BSTR EMail ) = 0;
virtual HRESULT __stdcall raw_AddRecipientCC (
BSTR EMail ) = 0;
virtual HRESULT __stdcall raw_AddRecipientBCC (
BSTR EMail ) = 0;
virtual HRESULT __stdcall raw_AddHeader (
BSTR XHeader,
BSTR Value ) = 0;
virtual HRESULT __stdcall raw_AddNativeHeader (
BSTR Header,
BSTR Value ) = 0;
virtual HRESULT __stdcall raw_ClearRecipients ( ) = 0;
virtual HRESULT __stdcall raw_ClearAttachments ( ) = 0;
virtual HRESULT __stdcall get_ServerAddress (
BSTR * Value ) = 0;
virtual HRESULT __stdcall put_ServerAddress (
BSTR Value ) = 0;
virtual HRESULT __stdcall get_ServerPort (
long * Value ) = 0;
virtual HRESULT __stdcall put_ServerPort (
long Value ) = 0;
virtual HRESULT __stdcall get_Sender (
BSTR * Value ) = 0;
virtual HRESULT __stdcall put_Sender (
BSTR Value ) = 0;
virtual HRESULT __stdcall get_SenderName (
BSTR * Value ) = 0;
virtual HRESULT __stdcall put_SenderName (
BSTR Value ) = 0;
virtual HRESULT __stdcall get_ReplyTo (
BSTR * Value ) = 0;
virtual HRESULT __stdcall put_ReplyTo (
BSTR Value ) = 0;
virtual HRESULT __stdcall get_Subject (
BSTR * Value ) = 0;
virtual HRESULT __stdcall put_Subject (
BSTR Value ) = 0;
virtual HRESULT __stdcall get_Body (
BSTR * Value ) = 0;
virtual HRESULT __stdcall put_Body (
BSTR Value ) = 0;
virtual HRESULT __stdcall get_ContentType (
BSTR * Value ) = 0;
virtual HRESULT __stdcall put_ContentType (
BSTR Value ) = 0;
virtual HRESULT __stdcall get_Priority (
long * Value ) = 0;
virtual HRESULT __stdcall put_Priority (
long Value ) = 0;
virtual HRESULT __stdcall get_HideRecipients (
BSTR * Value ) = 0;
virtual HRESULT __stdcall put_HideRecipients (
BSTR Value ) = 0;
virtual HRESULT __stdcall get_MailDomain (
BSTR * Value ) = 0;
virtual HRESULT __stdcall put_MailDomain (
BSTR Value ) = 0;
virtual HRESULT __stdcall get_Lazysend (
VARIANT_BOOL * Value ) = 0;
virtual HRESULT __stdcall put_Lazysend (
VARIANT_BOOL Value ) = 0;
virtual HRESULT __stdcall get_Charset (
BSTR * Value ) = 0;
virtual HRESULT __stdcall put_Charset (
BSTR Value ) = 0;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -