ACTIVE SERVER PAGE > ¿ÜºÎ ¸ÞÀÏ º¸³»±â µî·ÏÀÏ : 2017-07-04 17:44 Á¶È¸¼ö : 52,594¾Æ·¡ .Item(cdoSMTPServer) = "xxx.xxx.xxx.xxx" ºÎºÐÀ» ¼öÁ¤ÇØÁּžßÇÏ°í,
¸ÞŸÅÂ±× ÀÖ¾î¾ß ÇÔ »ó¼ö¿¡ ÇÊ¿ä·Î ÇÔ <!--METADATA TYPE="TypeLib" NAME="CDO for Windows 2000 Type Library" UUID="{CD000000-8B95-11D1-82DB-00C04FB1625D}" --> <% Function SendMailRemoteSMTP(strSubject, strContent, strFrom, strTo, iFormat) Dim objMsg, objConf, objFields Set objMsg = CreateObject("CDO.Message") Set objConf = CreateObject("CDO.Configuration") Set objFields = objConf.Fields 'IIS¿¡ ÀÖ´Â ±âº» ¼³Á¤À» °¡Áö°í ¿Â´Ù. objConf.Load 1 Set objFields = objConf.Fields With objFields ' cdoSendUsingMethod = cdoSendUsingPickup À϶§ Pickup Æú´õ¸¦ ÁöÁ¤ÇØÁØ´Ù. '.Item(cdoSMTPServerPickupDirectory) = "c:\Inetpub\mailroot\Pickup" ' ¸ÞÀÏ ¼¹ö .Item(cdoSMTPServer) = "xxx.xxx.xxx.xxx" ' ¸ÞÀÏ ¼¹öÀÇ Æ÷Æ® ¹øÈ£ .Item(cdoSMTPServerPort) = 26 ' ŸÀӾƿô ' Default is 30 seconds .Item(cdoSMTPConnectionTimeout) = 30 '.Item(cdoLanguageCode) = "" ' ¸ÞÀÏ Àü¼Û ¹æ¹ý ' cdoSendUsingPickup - ·ÎÄà SMTPÀÇ Pickup Æú´õ¸¦ ÀÌ¿ë ' cdoSendUsingPort - ¿ø°Ý ³×Æ®¿öÅ©¸¦ ÀÌ¿ë ' Default is cdoSendUsingPickup .Item(cdoSendUsingMethod) = cdoSendUsingPort ' ÀÎÁõ ¹æ¹ý ' cdoAnonymous - ÀÍ¸í ¾×¼¼½º ' cdoBasic - ±âº» ÀÎÁõ ' - Windows º¸¾È ÆÐÅ°Áö ' Default is cdoAnonymous '.Item(cdoSMTPAuthenticate) = cdoAnonymous .Item(cdoSMTPAuthenticate) = cdoBasic ' ÀÍ¸í ¾×¼¼½º ÀÎÁõÀÌ ¾Æ´Ò °æ¿ì .Item(cdoSendUserName) = "°èÁ¤" .Item(cdoSendPassword) = "¾ÏÈ£" .Item(cdoURLGetLatestVersion) = True .Update End With With objMsg Set .Configuration = objConf .Subject = strSubject If iFormat = 1 Then .TextBody = strContent Else .HTMLBody = strContent End If .From = strFrom .To = strTo '.ReplyTo = strReply '.AddAttachment "C:\files\another.doc" .Send End With Set objFields = Nothing Set objConf = Nothing Set objMsg = Nothing End Function SendMailRemoteSMTP "Å×½ºÆ®Á¦¸ñ1","Å×½ºÆ®³»¿ë1","cak0280@daum.net","cak0280@skylla.co.kr","1" %>
|