Skip to content

조회 수 9106 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
1. 먼저 SMTP가 설치되어 있는지 확인 하자
서버관리자에 들어가서 기능요약 부분에 SMTP 서버 항목이 있는지 확인
없다면 기능 추가를 통해서 SMTP 서버를 설치


2. 코드
보통 CDO.Message 객체만 생성해서 보낼 경우 아래와 같은 오류가 발생합니다.

CDO.Message.1 오류 '80040220'
"SendUsing" 구성 값이 잘못되었습니다.

이런 경우 Configration 객체로 구성값을 구성합니다.

< %
'/////////////////////////////////////////////////
' 메일발송 모듈 2008
'/////////////////////////////////////////////////

Set objConfig = Server.CreateObject("CDO.Configuration")

 With objConfig.Fields
  .item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
  .item("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "C:\inetpub\mailroot\pickup"
  .item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
  .item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 30
  .update
 End With

 Set objMessage = Server.CreateObject("CDO.Message")

 With objMessage
 Set .Configuration = objConfig
  .To = "수신메일주소"
  .From = "발신메일주소"
  .Subject = "메일제목"
  .HTMLBody = "메일내용"
  .Send
 End With

%>

코드는 위와 같으며, 위의 경우는 로컬 SMTP 서버를 이용해서 보내는 경우 일반적인 세팅방법입니다.


3. mailroot 폴더 권한 설정
위와 같이 했음에도 다음과 같은 에러가 발생할 수 있습니다.

CDO.Message.1 오류 '80070005'
액세스가 거부되었습니다.

이건 로컬 SMTP를 이용해 보내는 경우 Pickup 디렉토리를 이용하는데 폴더에 적절한 권한에 없어서 발새하는 에러입니다.
mailroot 폴더에 IIS_IUSRS 사용자그룹에 쓰기권한을 부여합니다.


위와 같이 하면 메일이 잘 발송될 것입니다


참고사이트
http://www.taeyo.net/Forum/Content.aspx?SEQ=151954&TBL=ASP 
http://blog.naver.com/PostView.nhn?blogId=intoaction2&logNo=140119510817
http://wareway.net/archives/2171

  1. Windows Server 2003과 Windows XP에서 네트워크 연결 아이콘...

    Date2009.07.14 ByADMINPLAY Views6132
    Read More
  2. SCSI 점퍼 세팅

    Date2009.04.15 ByADMINPLAY Views6373
    Read More
  3. 마이크로스프트 트러블 슈팅 동영상 강좌

    Date2009.06.04 ByADMINPLAY Views6575
    Read More
  4. 리눅스서버 데이터 윈도 rsync 백업

    Date2009.06.04 ByADMINPLAY Views6585
    Read More
  5. Windows 2003 R2 업데이트 오류 (0x80190194)

    Date2014.09.17 ByADMINPLAY Views6673
    Read More
  6. Windows HELP Command List

    Date2009.11.04 ByADMINPLAY Views7094
    Read More
  7. 윈도우 각 프로세스에 대한 설명

    Date2009.04.24 ByADMINPLAY Views7147
    Read More
  8. PC의 Application 목록 한번에 확인하는 방법

    Date2014.03.11 ByADMINPLAY Views7203
    Read More
  9. ntbackup 을 이용한 백업 서버 구축하기

    Date2009.08.08 ByADMINPLAY Views7209
    Read More
  10. PC에서 DNS 캐쉬 초기화하기

    Date2009.07.18 ByADMINPLAY Views7240
    Read More
  11. Exchange kisa rbl 설정

    Date2009.06.04 ByADMINPLAY Views7389
    Read More
  12. Windows 7 업데이트 Command 삭제방법

    Date2014.08.20 ByADMINPLAY Views7395
    Read More
  13. Exchange 서버 서비스 목록

    Date2009.08.08 ByADMINPLAY Views7456
    Read More
  14. Windows 2003 Media service- strimming

    Date2008.12.14 ByADMIN Views7483
    Read More
  15. MS 아웃룩 2000 에서 POP3 설정 방법

    Date2009.07.18 ByADMINPLAY Views7520
    Read More
  16. win2003 관련팁

    Date2009.08.08 ByADMINPLAY Views7580
    Read More
  17. AD의 Role을 확인법

    Date2009.10.31 ByADMINPLAY Views7594
    Read More
  18. 스트리밍서버 셋팅

    Date2009.08.08 ByADMINPLAY Views7747
    Read More
  19. IIS,ASP 상에서 캐쉬 설정 방법

    Date2014.07.08 ByADMINPLAY Views7759
    Read More
  20. Windows 공유폴더 암호없이 공유폴더 접근하기

    Date2015.04.22 ByADMINPLAY Views7919
    Read More
Board Pagination Prev 1 2 3 4 5 6 Next
/ 6

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234