Function printsetup () {// Print page Set wb.execwb (8, 1);} function printpreview () {// Print page preview wb.execwb (7, 1);
Function printit () {if (confirm ('OK print?')) {
Wb.execwb (6,6)}} script> set jmail = server.createObject ("jmail.smtpmail") 'Create a Jmail object jmail.silent = true' jmail does not throw exception error, the return value is FALSE with true jmail.logging = true 'Enables usage log jmail.charset = "GB2312"' Mail text code for Simplified Chinese jmail.conteType = "text / html" mail format is HTML Jmail.Serveraddress = "Server Address "'Sending the server jmail.addrecipient email' mail recipient jmail.sendername =" sendername "'Mail sender's name Jmail.Sender =" email address "" Email Address "mail sender's email address jmail.priority = 1' Emergency procedure, 1 is the fastest, 5 is the slowest, 3 is the default jmail.subject = "mail subject" message title jmail.body = "mail body" 'mail content jmail.addRecipientBCC Email' Part of the address jmail.addrecipientcc Email 'email handler's address jmail.execute () "Execute Mail Send Jmail.Close' Close the mail object