HOME > 이용안내
이용안내
 
작성일 : 15-01-28 13:38
[스크립트언어] [ASP]windows2008R2 서버에서 cdo.message 사용시 에러 [CDO.Message.1 error '80040222' ]
 글쓴이 : 제이네트워크
조회 : 98,825  
[ASP]windows2008R2 서버에서 cdo.message 사용시 에러 [CDO.Message.1 error '80040222' ]
 
메일 소스를 이용해서 보내게 되면
CDO.Message.1 error '80040222'
The pickup directory path is required and was not specified.
이러한 오류가 있을 경우
 
 
[소스]
Const cdoSendUsingPort = 1  ' 상수선언 (로컬셋팅)

SET objMessage = Server.CreateObject("CDO.Message")
SET objConfig = createobject("CDO.Configuration")

'''''''''''''''''' Setting the SMTP Server ''''''''''''''''''''''''
SET Flds = objConfig.Fields

With Flds
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPort
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 30
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "C:\Inetpub\mailroot\Pickup"  (해주어야 합니다.)
.update
End With

SET objMessage.Configuration = objConfig

With objMessage
.From = "test@hanmail.net"
.To = "test@jnetwork.co.kr"
.CC = ""
.Subject = "hello world"
.HTMLBody = "hello wolrd"

.DSNOptions = 14
.Fields("urn:schemas:mailheader:return-receipt-to") = "master@naver.com"
.Fields("urn:schemas:mailheader:disposition-notification-to") = "master@naver.com"

.BodyPart.Charset="ks_c_5601-1987"
.HTMLBodyPart.Charset="ks_c_5601-1987"
.Fields.update
.Send
End With

SET objConfig = Nothing
SET objMessage = Nothing
 
 





Cloud server Streaming service Domain Cloud Firewall

제이네트워크 15-01-28 13:46
 
[간편설정]
  Set myMail=CreateObject("CDO.Message")
  myMail.Subject="CDOSYS"
  myMail.From="master@hanmail.net"
  myMail.To="receive@jnetwork.co.kr"

 myMail.Subject = "메일제목"
 myMail.HTMLBody = strHTML2
 myMail.BodyPart.Charset = "ks_c_5601-1987"
 myMail.HTMLBodyPart.Charset = "ks_c_5601-1987"
 myMail.TextBodyPart.Charset = "ks_c_5601-1987"
   
  myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=1  '(1일때 로컬네트워크, 2일때 원격네트워크)
  'SMTP server
  myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="localhost"
  'SMTP port
  myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
  myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "C:\Inetpub\mailroot\Pickup"
  myMail.Configuration.Fields.Update

  myMail.Send
  set myMail=nothing
 
 

Total 385

번호 제   목   글쓴이 날짜 조회
385 [스크립트언어] [PHP] php에서 Excel 파일 읽기/쓰기 (2) 제이네트워크 2015-01-23 969363
384 [메일] 아웃룩 메일 수발신할 때 (메일오류코드 2) 제이네트워크 2021-05-28 217087
383 [DB] [mysql-5.6.x 설치 후 에러로 실행 안될때 ][Warning] TIMESTAMP with implicit DEFAULT value … 제이네트워크 2015-05-22 199219
382 [DB] Excel to mysql (import /export) 엑셀데이타를 mysql로 입력하기 제이네트워크 2014-01-18 118393
381 [윈도우서버] [윈도우10 원격데스크톱 오류 CredSSP 암호화 Oracle 수정 때문] 제이네트워크 2018-06-21 106474
380 [DB] SQL Server Management Studio 설치 안될 때 제이네트워크 2017-02-28 104339
379 [리눅스서버] rsync 를 사용하여 원격지에 데이타 백업하기 (1) 제이네트워크 2013-10-21 101882
378 [스크립트언어] [ASP]windows2008R2 서버에서 cdo.message 사용시 에러 [CDO.Message.1 error '80040222… (1) 제이네트워크 2015-01-28 98826
377 [스크립트언어] [php]php.ini 설정에서 register_globals = on/off 차이점과 기능설명 (1) 관리자 2012-02-09 98812
376 [리눅스서버] [Linux] 리눅스에서 Split 를 사용하여 큰 파일을 작은파일로 나누기 제이네트워크 2015-01-23 90344
375 [윈도우서버] [iis7.x ASP 에러] An error occurred on the server when processing the URL 제이네트워크 2015-05-04 86847
374 [윈도우서버] [IIS 8.x 설치 후 HTTP오류 404.3 오류 및 asp / asp.net 실행오류] 제이네트워크 2015-04-21 83463
373 [리눅스서버] Centos5.x yum install 에러시 CentOS-Base.repo 변경 제이네트워크 2017-05-01 83107
372 [리눅스서버] 리눅스서버에서 한글파일명 깨질때 (파일질라나 ftp로 한글깨짐) 제이네트워크 2017-03-16 82994
371 [윈도우서버] [ASP] IIS 7.x 에서 500내부서버오류 정보보기 제이네트워크 2013-02-05 81902
370 [스크립트언어] php 에러 메세지 출력하기 (php.ini 설정) 제이네트워크 2016-07-27 81270
369 [DB] [mysql] DB 에러 메세지 Unable to lock ./ibdata1, error: 11 (1) 제이네트워크 2012-11-18 80629
368 [메일] [Mail] 네이버 웍스메일에서 아웃룩(outlook), 스마트폰에서 수발신 가능하게 … 제이네트워크 2015-01-23 79587
367 [스크립트언어] [php]php설치후 에러 SAFE MODE Restriction in effect. The script whose uid is 501 is not allowed… 제이네트워크 2013-08-19 78898
366 [리눅스서버] find 명령어로 일정기간, 특정용량 파일 삭제 및 찾기 제이네트워크 2013-02-27 77797
365 [리눅스서버] ftp 접속방식 문제 관리자 2011-06-17 77406
364 [메일] 메일에러 리턴메세지 제이네트워크 2011-06-17 76722
363 [스크립트언어] [XE] xe (제로보드xe) 로그인 패스워드를 잊어 버렸을 경우 제이네트워크 2013-08-06 75814
362 [스크립트언어] [asp]HTTP 오류 500.24 - Internal Server Error 관리되는 통합 파이프라인 모드에 적용… 제이네트워크 2014-12-09 75055
361 [스크립트언어] [PHP 에서 순위 구하기] 제이네트워크 2015-01-23 74183
360 [리눅스서버] Centos 6.x + php5.x 에서 mssql 서버 연동방법 (1) 제이네트워크 2014-12-12 73605
359 [리눅스서버] 리눅스 서비스 목록 및 내용 (1) 제이네트워크 2014-01-24 73408
358 [스크립트언어] [php]설치시 에러 configure: error: xml2-config not found. please check your libxml2 installatio… 관리자 2011-10-11 73386
357 [스크립트언어] php컴파일에러(flex) configure: error: cannot find output from lex; giving up 제이네트워크 2012-11-13 73236
356 [리눅스서버] VSFTP 에서 사용하는 port를 변경하기 제이네트워크 2018-04-26 72517
355 [wowza] Wowza Media Server 3.5.2 리눅스(윈도우동일) RPM버전 디렉토리 구조 제이네트워크 2013-03-19 72246
354 [스크립트언어] php zip 설치 (ziparchive php extension) 제이네트워크 2015-11-25 71629
353 [리눅스서버] 리눅스 컴파일에러 error : Autoconf version 2.68 or higher is required on CentOS 제이네트워크 2019-10-07 71362
352 [스크립트언어] [php] configure 중 에러 : error: mcrypt.h not found. Please reinstall libmcrypt. 관리자 2011-07-08 69963
351 [윈도우서버] [오류]예약된 작업(작업스케줄러)실행시 0x80090016: 키 세트가 없습니다 제이네트워크 2012-09-11 69907
350 [DB] [mysql] 해당 컬럼 값을 1씩 증가시키기 와 mysql 자료형,제약조건,엔진 제이네트워크 2015-01-21 69236
349 [리눅스서버] CentOS7.x 버전에서 최신 node.js 설치하기 제이네트워크 2019-05-23 69017
348 [리눅스서버] 리눅스서버에 VNC SERVER 설치 하기 (centos5.8~ 6.7 까지 되네요) 제이네트워크 2015-03-19 68851
347 [스크립트언어] [PHP]PHP코드를 최적화하는 40가지 팁 제이네트워크 2013-12-04 68695
346 [리눅스서버] [named] dig 명령어 사용법 제이네트워크 2015-02-14 68017
 1  2  3  4  5  6  7  8  9  10