//POP3 Interface CMailCOM.POP3.1 MailDomain -(Property, READ)Get mail server domain(only for single domain) LastResponse -(Property, READ)Current system response message(+OK or -ERR) CreateUserPath Account -(Method)Create the account's POP3 work path Login Account, Password -(Method)Login pop3 server(the Account is made up with form as 'Account:IP'(Account and it's IP address) LoginSuccess -(Property, READ, BOOL)If login successfully, LoginSucc = 1 else 0 GetMailBoxInfo -(Method)Get mail box info MailCount -(Property, READ, long)how many mails in the mail box GetMailInfo indexOfMail -(Method)get No. indexOfMail(based 1) mail info From -(Property, READ)sender address To -(Property, READ)receiver address Subject -(Property, READ)subject of mail Date -(Property, READ)date of mail Size -(Property, READ, long)size of mail IsRead -(Property, READ, BOOL)if mail is read or not UID -(Property, READ)UID of mail GetMailData indexOfMail -(Method)get No. indexOfMail mail data Body -(Property, READ)mail body BodyHtmlURL -(Property, READ)HTML link of mail(if the mail is html form) HeaderURL -(Property, READ)URL of mail header EmailURL -(Property, READ)URL of original mail AttachCount -(Property, READ, long) attachements count GetAttachInfo indexOfAttach -(Method) get No. indexOfAttch attachement info AttachURL -(Property, READ)url for downloading attachement file AttachFileName -(Property, READ)get attachement file name Download urlOfAttach -(Method)download the url DeleteMailByUID strUID -(Method)Delete mail by UID Logout Account -(Method)Logout //--------- 4.0 new interface---------------------------------------- MoveToInbox strUID -(Method)move mail to inbox MoveToFolder strUID -(Method)move mail to folder DeleteMailEx strUID -(Method)delete mail in Folder GetMailDataEx strUID -(Method)get mail data in folder GetMailInfoEx strUID -(Method)get mail info in folder GetRemotePOP3 -(Method)retr POP3 mails //-------------------------------------------------------------- //account manager interface CMailCOM.Admin.1 LastResponse -(Property, READ)server response Login Account, Password -(Method)login account manager server LoginSuccess -(Property, READ, BOOL) login successfully or not Password -(Property, WRITE)password UserName -(Property, READ/WRITE)account own name Comment -(Property, READ/WRITE)account comment POP3Server -(Property, READ/WRITE)POP3Server POP3Mail -(Property, READ/WRITE)POP3Mail POP3Password -(Property, READ/WRITE)POP3Password LeaveCopy -(Property, READ/WRITE, BOOL)leave a copy on the remote pop3 server Signup Account -(Method)create account Modify Account, Password -(Method)modify account's password Destroy Account, Password -(Method)delete account //SMTP interface CMailCOM.SMTP.1 LastResponse -(Property, READ)server response CreateUserPath Account -(Method)create Account's SMTP work path StartUpload Request -(Method)start post mail form SetSubject formfieldofSubject -(Method)set subject SetBody formfieldofBody -(Method)set body SetFrom formfieldofFrom -(Method)set sender address SetTo formfieldofTo -(Method)set receiver addresses SetCc formfieldofCc -(Method)set cc addresses SetBcc formfieldofBcc -(Method)set bcc addresses SetMaxFileSize longSize -(Method)set attachement file size AddAttach formname -(Method)set attachement file name SendMail -(Method)send mail //--------------------- 4.0 new interface --------------------- UID -(Property, READ)after clients send an email, the email will be saved to outbox automatically, and UID is the email's UID in the folder. //------------------------------------------------------- //How to send mail by ASP Webmail Set objSMTP= CreateObject("CMailCOM.SMTP.1") objSMTP.CreateUserPath("ASPMail:" & Request("REMOTE_ADDR")) objSMTP.Subject = "Subject" objSMTP.Body = "Body" objSMTP.To = "to@mail.com" objSMTP.From = "from@mail.com" 'objSMTP.ContentType = "text/plain" 'send mail in text format 'objSMTP.ContentType = "text/html" 'send mail in html format objSMTP.SendMail Set objSMTP = Nothing //How to create an account Set objAccount = CreateObject("CMailCOM.Admin.1") objAccount.UserName = "test" objAccount.Password = "password" objAccount.Comment = "test for creating account" objAccount.Signup "test" Set objAccount = Nothing