담

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

· 2010-09-11 (토) 10:32:09 · 2520
<%
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건
+
제목 글쓴이 날짜 조회
12-01-11 조회 2,767
12-01-11 조회 1.2만
12-01-10 조회 2,863
12-01-08 조회 3,452
12-01-05 조회 5,342
11-12-29 조회 3,061
11-12-27 조회 2,850
11-12-25 조회 3,032
11-12-22 조회 3,471
11-12-14 조회 2,927
11-12-12 조회 3,566
11-11-28 조회 3,385
10-10-19 조회 2,846
08-09-05 조회 3,764
08-09-05 조회 3,582
08-06-14 조회 3,322
08-04-22 조회 3,605
08-04-17 조회 3,606
07-10-03 조회 4,218
07-10-03 조회 3,613
07-10-03 조회 7,298
07-10-03 조회 4,575
07-10-03 조회 3,272
07-10-03 조회 2,869
07-10-02 조회 3,580
07-10-02 조회 3,110
07-09-27 조회 5,030
07-09-27 조회 3,855
06-09-26 조회 3,518
06-09-26 조회 4,738
06-09-22 조회 3,913
06-09-22 조회 3,533
06-09-22 조회 4,280
06-09-21 조회 4,211
06-08-18 조회 3,700
05-11-30 조회 4,748
05-07-15 조회 4,598
05-03-23 조회 4,659
05-03-14 조회 3,327
05-03-13 조회 2,701
04-08-05 조회 5,776