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

· 2010-09-11 (토) 10:32:09 · 2624
<%
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 기타에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
PHP 10-09-15 조회 2,492
MySQL 10-09-14 조회 4,313
JavaScript 10-09-11 조회 4,046
기타 10-09-11 조회 3,278
기타 10-09-11 조회 2,150
기타 10-09-11 조회 3,277
JavaScript 10-09-11 조회 2,625
기타 10-09-11 조회 1,923
기타 10-09-11 조회 1,856
기타 10-09-11 조회 3,214
기타 10-09-11 조회 2,003
기타 10-09-11 조회 2,266
기타 10-09-11 조회 2,560
JavaScript
[JavaScript]
10-09-11 조회 2,361
jQuery 10-09-07 조회 3,625
정규표현식 10-09-07 조회 5,383
JavaScript 10-09-07 조회 4,245
기타 10-09-07 조회 1,916
JavaScript 10-09-07 조회 3,472
PHP 10-09-07 조회 3,864
JavaScript 10-08-29 조회 3,068
PHP 10-08-27 조회 6,952
jQuery 10-08-27 조회 4,006
jQuery 10-08-20 조회 8,102
jQuery 10-07-30 조회 5,740
기타 10-07-01 조회 3,082
기타 10-07-01 조회 2,121
기타 10-07-01 조회 2,707
JavaScript 10-07-01 조회 3,119
기타 10-06-30 조회 2,769