Jmail's main parameters list --------------- (1) Body (letter body): string such as: jmail.body = "Here you can be the form of the user, you can From from. "(2) Charset (character set, default is" US-ASCII "): Strings, such as: jmail.charset =" US-ASCII "(3) ContentTransferencoding: String Specifies the encoding mode when content transfer The default is "quoted-printable" such as: jmail.contentTransferencoding = "base64" (4) ContentType (the default is "text / plain": String If you send mail in HTML format, change to " Text / html. Such as: jmail.conteType = "text / html" (5) eNCoding: String Set attachment encoding mode (default is "base64). You can choose to use" Base64 "," uuencode "or" quoted-printable ", such as: Jmail.Encoding = "Base64" (6) log (Jmail created log, prerequisite Loging property is set to true, see below): String, such as: Log information using the Response.write (Jmail.log) statement. (7) Logging (Whether to use a log): Booler such as: jmail.logging = true (8) Recipients: String read-only properties, return all recipients such as: Response.Write (" Jmail. Recipients "); 9) Replyto (specify another reply address): Strings, such as: jmail.replyto = "qiao198@hotmail.com" (10) Sender (sender's email address): string such as: jmail.sender = "qiao198 @ 21cn.com "(11) Sendername (sender's name): Strings, such as: jmail.sendername =" a gram "(12) ServerAddress (address of the mail server): String you can specify multiple servers, divide Number point. You can specify the port number.
If ServerAddress keeps blank, Jmail will try a remote mail server and then send it directly to the server. Such as: jmail.serveraddress = "mail.21cn.net.cn" (13) Subject (setting the title of the message): String, such as: Jmail.Subject = "Guest feedback form" (14) Add Document attachments such as: jmail.addattachment ("c: / yornfile.zip") (15) AddCustomattachment (FileName, DATA) Add custom attachment. Such as: Jmail.Addcustomattachment ("anyfile.txt", "contents of file" ); (16) AddHeader (header, value) Add user-defined letters headers. Such as: Jmail.addhead, "192.158.1.10"); (17) AddRecipient: Strings, such as: Jmail.AddRecipient ("qiao198@hotmail.com"); (18) AddRecipientBCC (Email), Delivery: such as: Jmail.addrecipientBCC ("qiao198@hotmail.com"); (19) AddRecipientc (email), Cc Recipient:, Jmail.AddRecipientcc (") (20) Addurlattachment (URL, document name) download and add an attachment from the URL. The second parameter "document name" is used to specify the file name after the letter is received. Such as: jmail.addurlatchment ("http://www.chinabs.net/jmail.zip", "jmail") (21) appendbodyfromfile (file name), use the file as a letter text: such as: jmail.appendbodyfromfile ("C: / yafile.txt ") (22) appendtext (text) Added the text content of the letter, such as adding greetings or other information. Such as: Jmail.AppendText ("Welcome to this site!") (23) Close (), forced JMAIL Turn the buffer connection with the mail server: such as: jmail.close () (24) Execute (), execute the email Jmail.execute ()