<%
if Request("MailtoAddress") <> "" then
¡¡¡¡¡¡¡¡msg = SendMail
(Request("SMTPServer"),Request("SMTPServerUserName"),Request("SMTPServerPassword"),
Request("MailDomain"),Request("MailtoAddress"),Request("MailtoName"),Request("Subject"),
Request("MailBody"),Request("FromName"),Request("MailFrom"),Request("Priority"))
¡¡¡¡¡¡¡¡if msg then Response.Write("·¢Ëͳɹ¦") else Response.Write("·¢ËͲ»³É¹¦")
¡¡¡¡¡¡¡¡Response.End()
end if
function
SendMail(SMTPServer,SMTPServerUserName,SMTPServerPassword,MailDomain,MailtoAddress,MailtoName,
Subject,MailBody,FromName,MailFrom,Priority)
¡¡¡¡¡¡¡¡dim JMail, msg
¡¡¡¡¡¡¡¡set JMail=Server.CreateObject("JMail.Message")
¡¡¡¡¡¡¡¡JMail.Charset="gb2312" '±àÂë
¡¡¡¡¡¡¡¡JMail.silent=true 'ÉèÖÃΪtrue,JMail²»»áÅ׳öÀýÍâ´íÎó.
¡¡¡¡¡¡¡¡JMail.ContentType = "text/plain" 'ÓʼþÕýÎĸñʽ
¡¡¡¡¡¡¡¡'JMail.ServerAddress = SMTPServer 'ÓÃÀ´·¢ËÍÓʼþµÄSMTP·þÎñÆ÷(ÎÞЧ)
¡¡¡¡¡¡¡¡'Ö¸¶¨Óʼþ·þÎñÆ÷µÄµØÖ·¡£¿ÉÒÔÖ¸¶¨¶à¸ö·þÎñÆ÷£¬Ó÷ֺŵ㿪¡£¿ÉÒÔÖ¸¶¨¶Ë¿ÚºÅ¡£
¡¡¡¡¡¡¡¡'Èç¹ûserverAddress±£³Ö¿Õ°×£¬JMail»á³¢ÊÔ½â¾öÔ¶³ÌÓʼþ·þÎñÆ÷£¬È»ºóÖ±½Ó·¢Ë͵½·þÎñÆ÷ÉÏÈ¥¡£???
¡¡¡¡¡¡¡¡'È磺JMail.ServerAddress = &tquo;mail.mydom.net; mail2.mydom.net:2500"
¡¡¡¡¡¡¡¡JMail.MailServerUserName = SMTPServerUserName 'µÇ¼Óû§Ãû
¡¡¡¡¡¡¡¡JMail.MailServerPassWord = SMTPServerPassword 'µÇ¼ÃÜÂë
¡¡¡¡¡¡¡¡JMail.MailDomain = MailDomain 'ÓòÃû£¨Èç¹ûÓá°name@domain.com¡±ÕâÑùµÄÓû§ÃûµÇ¼ʱ£¬ÇëÖ¸Ã÷domain.com
¡¡¡¡¡¡¡¡JMail.AddRecipient MailtoAddress,MailtoName 'ÊÕÐÅÈË
¡¡¡¡¡¡¡¡JMail.Subject = Subject 'Ö÷Ìâ
¡¡¡¡¡¡¡¡JMail.Body = MailBody 'ÓʼþÕýÎÄ£¨´¿Îı¾¸ñʽ£©
¡¡¡¡¡¡¡¡JMail.FromName = FromName '·¢ÐÅÈËÐÕÃû
¡¡¡¡¡¡¡¡JMail.From = MailFrom '·¢ÐÅÈËEmail
¡¡¡¡¡¡¡¡JMail.Priority = Priority 'ÓʼþµÈ¼¶12345
¡¡¡¡¡¡¡¡msg = JMail.Send(SMTPServer)
¡¡¡¡¡¡¡¡JMail.Close
¡¡¡¡¡¡¡¡set JMail = nothing
¡¡¡¡¡¡¡¡SendMail = msg
end function
%>
×ܲ¿µØÖ·£ºÖ麣ÊÐÏãÖÞÇøÉÓî¹ú¼Ê´óÏÃ1801ÊÒ
ÆìÏÂÍøÕ¾£ºÄÍ˼ÖÇ»Û - ÌÔÓòÍø - ÎÒµÄ400µç»° - ÖÐÎÄÓòÃû£ºÄÍ˼Äá¿Ë.cn ÄÍ˼Äá¿Ë.top
ÄÍ˼ÖÇ»Û © °æȨËùÓÐ Copyright © 2000-2024 IISP.COM,Inc. All rights reserved
±¸°¸ºÅÂ룺 ÔÁICP±¸09063828ºÅ¡¡ ¹«°²±¸°¸ºÅ£º ÔÁ¹«Íø°²±¸ 44049002000123ºÅ¡¡ ÓòÃû×¢²á·þÎñ»ú¹¹Ðí¿É£ºÔÁD3.1-20240003 CNÓòÃû´úÀí×ÔÉîÛÚÍòάÍø
ÉùÃ÷£º±¾ÍøÕ¾ÖÐËùʹÓõ½µÄÆäËû¸÷ÖÖ°æȨÄÚÈÝ£¬°üÀ¨µ«²»ÏÞÓÚÎÄÕ¡¢Í¼Æ¬¡¢ÊÓƵ¡¢ÒôƵ¡¢×ÖÌåµÈÄÚÈÝ°æȨ¹éÔ×÷ÕßËùÓУ¬ÈçȨÀûËùÓÐÈË·¢ÏÖ£¬Ç뼰ʱ¸æÖª£¬ÒÔ±ãÎÒÃÇɾ³ý°æȨÄÚÈÝ
±¾Õ¾³ÌÐò½çÃæ¡¢Ô´´úÂëÊÜÏà¹Ø·¨Âɱ£»¤, δ¾ÊÚȨ, ÑϽûʹÓÃ; ÄÍ˼ÖÇ»Û © ΪÎÒ¹«Ë¾×¢²áÉ̱ê, δ¾ÊÚȨ, ÑϽûʹÓÃ