최초커밋
This commit is contained in:
42
include/mail_config.asp
Normal file
42
include/mail_config.asp
Normal file
@@ -0,0 +1,42 @@
|
||||
<%
|
||||
set objMessage = createobject("cdo.message")
|
||||
set objConfig = createobject("cdo.configuration")
|
||||
|
||||
Set Flds = objConfig.Fields
|
||||
|
||||
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
|
||||
'-> 서버 접근방법을 설정합니다
|
||||
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.office365.com"
|
||||
'-> 서버 주소를 설정합니다
|
||||
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate")=1
|
||||
'-> SMTP 접속 인증방법을 설정합니다
|
||||
Flds.item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
|
||||
'-> 접근할 포트번호를 설정합니다
|
||||
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusername")="admin@korearic.onmicrosoft.com"
|
||||
'-> SMTP 서버에 인증할 ID를 입력합니다
|
||||
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword")="it#51304"
|
||||
'-> SMTP 서버에 인증할 암호를 입력합니다
|
||||
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 30
|
||||
'-> 접속시도할 제한시간을 설정합니다
|
||||
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendtls") = True
|
||||
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = 1
|
||||
|
||||
Flds.update
|
||||
|
||||
Set objMessage.Configuration = objConfig
|
||||
|
||||
objMessage.To = mail_target
|
||||
If mail_from = "" Then
|
||||
mail_from = "info@kric.com"
|
||||
End If
|
||||
objMessage.From = mail_from
|
||||
objMessage.Subject = mail_subject
|
||||
objMessage.HTMLBody = mail_body
|
||||
objMessage.fields.update
|
||||
if Trim(mail_subject) <> "" and Trim(mail_target) <> "" and Trim(mail_body) <> "" then
|
||||
objMessage.Send
|
||||
end if
|
||||
|
||||
set objMessage = Nothing
|
||||
set objConfig = Nothing
|
||||
%>
|
||||
Reference in New Issue
Block a user