<%@LANGUAGE = VBSCRIPT%> <html> <body> <% if IsEmpty(Application("em_MaxMPOP3")) and IsEmpty(Application("em_MaxSigns")) then dim mam set mam = server.createobject("easymail.AdminManager") tmp_num = 0 do while tmp_num < 30 mam.LoadExt if mam.IsLoadOK = true then Exit Do end if mam.Sleep 500 tmp_num = tmp_num + 1 loop if mam.IsLoadOK = true then Application("em_MaxMPOP3") = mam.MaxMPOP3 Application("em_MaxSigns") = mam.MaxSigns Application("em_SystemAdmin") = LCase(mam.SystemAdmin) Application("em_EnableBBS") = mam.EnableBBS Application("em_Enable_SignHold") = mam.Enable_SignHold Application("em_Enable_FreeSign") = mam.Enable_FreeSign Application("em_Enable_SignWithDomainUser") = mam.Enable_SignWithDomainUser Application("em_Enable_SignNumberLimit") = mam.Enable_SignNumberLimit Application("em_SignNumberLimitDays") = mam.SignNumberLimitDays Application("em_Enable_ShareFolder") = mam.Enable_ShareFolder Application("em_Enable_SignEnglishName") = mam.Enable_SignEnglishName Application("em_LogPageKSize") = mam.LogPageKSize Application("em_TestAccounts") = LCase(mam.TestAccounts) Application("em_SignMode") = mam.SignMode Application("em_SignWaitDays") = mam.SignWaitDays Application("em_am_Name") = mam.am_Name Application("em_am_Accounts") = LCase(mam.am_Accounts) Application("em_AccountsAdmin") = LCase(mam.AccountsAdmin) Application("em_EnableEntAddress") = mam.Enable_Show_EntAddress Application("em_SpamAdmin") = LCase(mam.SpamAdmin) Application("em_EnableTrap") = mam.EnableTrap if mam.EnableTrap = true then Application("em_TrapMail") = mam.TrapMail end if end if set mam = nothing end if %> <% Dim mailsend Dim sender ' 发送帐号是 admin, 填写邮件系统内有效帐号名称 sender = "admin" ' 创建MailSend对象 Set mailsend = Server.CreateObject("easymail.MailSend") mailsend.CreateNew sender, "temp" ' 发信人名称 mailsend.MailName = "系统管理员" ' 收件人邮件地址 mailsend.EM_To = "admin@system.mail" mailsend.EM_Subject = "邮件主题" mailsend.EM_Text = "邮件正文内容!" ' ================== 需要发送html格式邮件时使用以下内容 ================== ' 输入html邮件内容 'mailsend.EM_HTML_Text = "<html>请在此处输入html邮件内容...</html>" 'mailsend.useRichEditer = true ' ======================================================================== if mailsend.Send() = false then Response.Write "邮件发送失败!" else Response.Write "邮件发送成功!" end if Set mailsend = Nothing %> </body> </html> |
Copyright 2000-Present by Ma Jian. All rights reserved. 皖ICP备05013246号