담

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

· 2010-09-11 (토) 10:32:09 · 2629
<%
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에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
기타 09-11-26 조회 3,797
기타 09-11-24 조회 3,989
JavaScript 09-11-23 조회 3,343
jQuery 09-11-21 조회 7,125
JavaScript 09-11-20 조회 5,038
기타 09-11-19 조회 2,254
기타 09-11-13 조회 9,251
기타 09-11-09 조회 6,209
jQuery 09-11-09 조회 4,476
기타 09-11-09 조회 2,520
jQuery 09-11-04 조회 9,443
jQuery 09-10-26 조회 3,706
PHP 09-10-10 조회 1.2만
기타 09-10-09 조회 3,189
기타 09-10-08 조회 6,850
PHP 09-10-03 조회 3,013
MySQL 09-09-19 조회 4,714
기타 09-09-15 조회 3,378
기타 09-09-14 조회 3,299
jQuery 09-09-11 조회 5,802
기타 09-09-04 조회 5,814
기타 09-08-31 조회 5,865
기타 09-08-31 조회 4,982
기타 09-08-30 조회 3,513
JavaScript
[JavaScript]
09-08-30 조회 3,198
기타 09-08-30 조회 2,746
JavaScript 09-08-30 조회 3,435
기타 09-08-30 조회 3,029
기타 09-08-30 조회 3,483
MySQL 09-08-16 조회 7,470