< Winsock Internet mail delivery component > Version : 2.1 Release type : Gnu Public License http://www.gnu.org Date : 04-05-2002 Project by : "Gavin Landon (aka Chizl)" http://www.chizl.com/ This software is an ActiveX (ATL/COM) DLL. Methods/Properties for C++: Properties: MailServer([in] BSTR) - "mail.yourmailserver.com" MailServer([out, retval] BSTR) - returns Mail Servers's existing value MailPort([in] long) - 2025 (25 is set by default) MailPort([out, retval] long) - returns Mail Port's existing value SMTPUserName([in] BSTR) - "SMTPUserName" SMTPUserName([out, retval] BSTR) - returns SMTP UserNames's existing value SMTPPassword([in] BSTR) - "SMTPPassword" SMTPPassword([out, retval] BSTR) - returns SMTP Password's existing value From([in] BSTR) - "From Name " From([out, retval] BSTR) - returns "From:" existing value BounceTo([in] BSTR) - "" BounceTo([out, retval] BSTR) - returns "MAIL FROM:" existing value Subject([in] BSTR) - "My Subject" Subject([out, retval] BSTR) - returns "Subject:" existing value Body([in] BSTR) - "My Message Body" Body([out, retval] BSTR) - returns Message Body's existing value ReplyTo([in] BSTR) - "Return Name " ReplyTo([out, retval] BSTR) - returns "Return-To:" existing value IsHTML([in] BOOL) - True | False IsHTML([out, retval] BOOL) - True | False //depending on what you set it up for. Active([out, retval] BOOL) - True | False //Only used after SendAsync Receipt([in] BOOL) - True | False Receipt([out, retval] BOOL) - True | False //return receipt Priority([in] long) - 1 | 2 | 3 | 4 | 5 //1 (Highest), 3 (Normal), 5 (Lowest) (3 is default) Priority([out, retval] long) - 1 | 2 | 3 | 4 | 5 ErrNum([out, retval] long) - returns Winsock and Mail Server Error Number ErrText([out, retval] BSTR) - returns Winsock and Mail Server Error Description) Methods: AddTo([in] BSTR) - "Persons Name1 " AddCC([in] BSTR) - "Persons Name2 " AddBCC([in] BSTR) - "" AddHeader([in] BSTR) - "HeaderName: HeaderValue" AddAttachment([in] BSTR bstrFilePath) - "C:\MyDir\MyFile.txt" // full path of file to attach Connect([out, retval] long) - Error if connection not happen Disconnect([out, retval] long) - Error if busy Send([out, retval] long) - Error if send doesn't happen SendAsync([out, retval] long) - Error after Active = false, if send doesn't happen ResetAddedHeaders() - resets all headers added by AddHeader() to empty. ResetTo() - resets all To's added by AddTo() to empty. ResetCC() - resets all CC's added by AddCC() to empty. ResetBCC() - resets all BCC's added by AddBCC() to empty. ResetAttachments() - removes all attachments added by AddAttachment Methods/Properties for VB: Properties: MailServer([in] String) - "mail.yourmailserver.com" MailServer([out, retval] String) - returns Mail Servers's existing value MailPort([in] long) - 2025 (25 is set by default) MailPort([out, retval] long) - returns Mail Port's existing value SMTPUserName([in] String) - "SMTPUserName" SMTPUserName([out, retval] String) - returns SMTP UserNames's existing value SMTPPassword([in] String) - "SMTPPassword" SMTPPassword([out, retval] String) - returns SMTP Password's existing value From([in] String) - "From Name " From([out, retval] String) - returns "From:" existing value BounceTo([in] String) - "" BounceTo([out, retval] String) - returns "MAIL FROM:" existing value Subject([in] String) - "My Subject" Subject([out, retval] String) - returns "Subject:" existing value Body([in] String) - "My Message Body" Body([out, retval] String) - returns Message Body's existing value ReplyTo([in] String) - "Return Name " ReplyTo([out, retval] String) - returns "Return-To:" existing value IsHTML([in] BOOL); - True | False IsHTML([out, retval] BOOL); - True | False //depending on what you set it up for. Active([out, retval] BOOL) - True | False //Only used after SendAsync Receipt([in] BOOL) - True | False //return receipt Receipt([out, retval] BOOL) - True | False Priority([in] long) - 1 | 2 | 3 | 4 | 5 //1 (Highest), 3 (Normal), 5 (Lowest) Priority([out, retval] long) - 1 | 2 | 3 | 4 | 5 ErrNum([out, retval] long) - returns Winsock and Mail Server Error Number ErrText([out, retval] String) - returns Winsock and Mail Server Error Description) Methods: AddTo([in] String) - "Persons Name1 " AddCC([in] String) - "Persons Name2 " AddBCC([in] String) - "" AddHeader([in] String) - "HeaderName: HeaderValue" AddAttachment([in] String) - "C:\MyDir\MyFile.txt" // full path of file to attach Connect([out, retval] long) - Error if connection not happen Disconnect([out, retval] long) - Error if busy Send([out, retval] long) - Error if send doesn't happen SendAsync([out, retval] long) - Error after Active = false, if send doesn't happen ResetAddedHeaders() - resets all headers added by AddHeader() to empty. ResetTo() - resets all To's added by AddTo() to empty. ResetCC() - resets all CC's added by AddCC() to empty. ResetBCC() - resets all BCC's added by AddBCC() to empty. ResetAttachments() - removes all attachments added by AddAttachment History : Date 04-05-2002 Version 1.0 Initial Revision Version 1.2 Added in SMTP Authentication Version 1.5 Changed up internals to use Vector arrays for passing multiple To, CC, BCC, and Headers Version 2.0 Added in Attachments and Added HTML. Version 2.1 Added in SendAsync and Active methods. Also added Priority and Receipt Properties. SendAsync allows you to send the message then monitor Active so your application isn't locked up while it's sending the message. Version 2.2 Added in TimeZone informations for headers of the email going out.