|
¸ñ·ÏÀ¸·Î °¡±â.. |
|
Windows 2008, 2012, 2016 SMTP Classic ASP·Î ¸ÞÀÏ ¹è´Þ/ÀÐÀ½È®ÀÎ |
±èÁ¾È£
|
»èÁ¦Çϱâ
|
|
Set ObjMail = Server.CreateObject("CDO.Message") Set ObjConf = Server.CreateObject("CDO.Configuration")
Set Flds = ObjConf.Fields ''1:local SMTP·Î ¹ß¼Û(pickup directory), 2:¿ø°ÝÁö SMTP·Î ¹ß¼Û Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.domain.com" '' µµ¸ÞÀÎ or IP Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 '' ¿ø°ÝÁö SMTP Port ¹øÈ£ Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "username" '' ¿ø°ÝÁö SMTP¿¡ ÀÎÁõÀÌ ÀÖÀ»°æ¿ì °èÁ¤ Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "passwd" '' ¿ø°ÝÁö SMTP¿¡ ÀÎÁõÀÌ ÀÖÀ»°æ¿ì ºñ¹Ð¹øÈ£ Flds.Update Set ObjMail.Configuration = ObjConf
ObjMail.Subject = ''¸ÞÀÏÁ¦¸ñ ObjMail.From = '' º¸³»´Â»ç¶÷ (Çü½Ä : Ç¥½ÃÇÒÀ̸§<¸ÞÀÏÁÖ¼Ò>) ObjMail.To = '' ¹Þ´Â»ç¶÷ ObjMail.TextBody = '' ÅؽºÆ® ¸ÞÀÏ ³»¿ë ObjMail.DSNOptions = 14 '' ÀÌ ¸Þ½ÃÁöÀÇ ¹è´Þ »óÅ ȮÀÎ(delivery status notification:DSN)°ªÀ¸·Î 14´Â ¹è´Þ ¼º°ø, ½ÇÆÐ ¹× Áö¿¬½Ã È®Àθ޽ÃÁö »ý¼º '' 0 : È®Àθ޼¼Áö »ý¼º ¾ÈÇÔ '' 1 : È®Àθ޼¼Áö »ý¼º ¾ÈÇÔ '' 2 : ¹è´Þ ½ÇÆнà ȮÀθ޽ÃÁö »ý¼º '' 4 : ¹è´Þ ¼º°ø½Ã È®Àθ޽ÃÁö »ý¼º '' 8 : ¹è´Þ Áö¿¬½Ã È®Àθ޽ÃÁö »ý¼º ''14 : ¹è´Þ ¼º°ø, ½ÇÆÐ ¹× Áö¿¬½Ã È®Àθ޽ÃÁö »ý¼º ObjMail.Fields("urn:schemas:mailheader:return-receipt-to") = "½Ã¼¼»ó<mail@mail.com>" '' ¹Þ´Â »ç¶÷ÀÌ ÀÌ ¸Þ½ÃÁö¸¦ ¿¾úÀ» ¶§ ÀÐÀ½ È®ÀÎ ¸Þ½ÃÁö°¡ ¿©±â¿¡¼ ÁöÁ¤µÈ »ç¶÷¿¡°Ô º¸³»Áý´Ï´Ù. ObjMail.Send Set ObjMail = Nothing
|
|
|