담

ASP에서 배달 확인/ 읽음 확인 구현 방법

· 2010-09-11 (토) 10:32:09 · 2528
<%
Set oMsg = CreateObject("CDO.Message")
oMsg.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'생성되는 메시지가 SMTP pickup 디렉터리가 아닌 SMTP 서비스로 전송되게 합니다.
oMsg.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") =  "fareast\smpark"
oMsg.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") =  "xxxxx"
oMsg.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") =  "seo-msg-01"
'생성되는 메시지의 서버, 사서함 및 암호
oMsg.Configuration.Fields.Update

oMsg.From = "[email protected]"
oMsg.To = "[email protected]"

oMsg.Subject = "읽음 확인 및 배달 확인"
oMsg.DSNOptions = 14
'이 메시지의 배달 상태 확인(delivery status notification:DSN)값으로 14는 배달 성공, 실패 및  지연시
'확인메시지 생성
oMsg.Fields("urn:schemas:mailheader:return-receipt-to") = [email protected] <mailto:[email protected]>
'받는 사람이 이 메시지를 열었을 때 읽음 확인 메시지가 여기에서 지정된 사람에게 보내집니다.
oMsg.Fields("urn:schemas:mailheader:disposition-notification-to") = [email protected] <mailto:[email protected]>
'MDN(Message Disposition Notification)은 이 메시지의 확인 메시지가 리턴 될 수신자를 지정합니다.
'MDN에 대하여는 Request for Comments (RFC) 2298에 자세히 설명됩니다.
oMsg.TextBody = " SMTP 서버를 통한 읽음 확인 및 배달 확인 메시지"
oMsg.Fields.Update
oMsg.Send

Set oMsg = Nothing
%> 

 

[이 게시물은 관리자님에 의해 2011-10-31 16:46:12 기타에서 이동 됨]
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
16-07-13 조회 2,172
16-07-12 조회 2,356
16-07-12 조회 2,383
16-07-11 조회 2,193
16-06-05 조회 2,922
16-06-03 조회 3,042
16-05-26 조회 2,962
15-09-22 조회 4,992
15-06-10 조회 4,837
14-10-25 조회 6,364
14-10-22 조회 8,988
14-09-21 조회 5,794
14-09-16 조회 5,080
14-08-22 조회 1.1만
14-08-13 조회 5,914
14-08-12 조회 5,442
14-08-12 조회 6,307
14-08-11 조회 6,933
14-06-12 조회 6,211
14-06-11 조회 5,119
14-05-09 조회 5,431
14-05-09 조회 6,389
14-05-09 조회 6,420
14-05-08 조회 5,755
14-04-17 조회 4,757
14-04-16 조회 4,589
14-04-15 조회 4,591
14-04-15 조회 4,539
14-04-15 조회 4,309
14-04-14 조회 4,293
14-04-14 조회 4,260
14-04-14 조회 4,636
14-04-14 조회 4,783
14-04-14 조회 4,769
14-04-13 조회 4,669
14-04-12 조회 4,242
14-04-12 조회 4,383
14-04-12 조회 4,489
14-04-11 조회 5,014
14-04-10 조회 4,752
14-04-10 조회 4,782
14-04-09 조회 4,941
14-04-09 조회 5,311
14-04-08 조회 6,975
13-10-30 조회 7,659
13-07-11 조회 5,137
13-03-28 조회 1.1만
13-02-27 조회 6,794
13-02-14 조회 5,608
13-01-10 조회 4,524
12-12-31 조회 5,105
12-12-20 조회 6,121
12-12-12 조회 5,280
12-12-07 조회 4,506
12-11-28 조회 4,857
12-11-22 조회 5,300
12-11-12 조회 5,660
12-09-22 조회 4,516
12-09-18 조회 4,705