티스토리 뷰
FIRST, I had to address the tighter security of IIS7 by adding the CDO Library metadata and Configuration like below (보기: http://classicasp.aspfaq.com/email/how-do-i-send-e-mail-with-cdo.html)
<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->
<%
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "<enter_mail.server_here>" ' .....I use "localhost"
' --- To put in the pickup box if you don't have an SMTP service, use this instead:
' .Item(cdoSendUsingMethod) = cdoSendUsingPickup
' .Item(cdoSMTPServerPickupDirectory) = "c:\Inetpub\mailroot\Pickup" ' make sure directory allows writing
.Update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = from@me.com
.To = to@me.com
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>
NEXT, I downloaded a free, simple to use SMTP server from: http://softstack.com/freesmtp.html
(See http://weblogs.asp.net/steveschofield/archive/2006/12/19/iis7-post-23-vista-and-smtp-server-where-is-it.aspx)
Now all works great!
Or you can use the workaround of copying cdonts.dll from a Windows 2000 machine and regsvr32'ing it on the XP machine. I have not tested this method, so try it at your own risk. If it works, it may — at least in the short term — be the better solution. But you should plan to migrate your code eventually, because hosts running Windows 2003 are unlikely to be willing to register obsolete DLLs.
[출처] http://forums.iis.net/t/1106115.aspx
'웹프로그래밍 > ASP Classic' 카테고리의 다른 글
자바스크립트를 이용한 세션 자동 연결 종료 체킹 (0) | 2009.03.26 |
---|---|
ASP에서 XML 다루기 Microsoft.XMLDOM (0) | 2009.03.25 |
regsvr32 DLL 등록후 오류해결 (0) | 2009.02.09 |
캐슬 - 웹해킹방어도구 for ASP (0) | 2009.02.09 |
ASP Prepared Statements (0) | 2008.11.09 |
- Total
- Today
- Yesterday
- Make Use Of
- How to geek
- 인터넷 통계정보 검색시스템
- 트위터 공유 정보모음
- 웹표준KR
- 치우의 컴맹탈출구
- Dev. Cheat Sheets
- w3schools
- Dev. 조각들
- ASP Ajax Library
- CSS Tricks
- WebResourcesDepot
- jQuery Selectors Tester
- DeveloperSnippets
- Smashing Magazine
- Nettuts+
- devListing
- 웹 리소스 사이트(한)
- Mobile tuts+
- Dream In Code
- Developer Tutorials
- CSS3 Previews
- 자북
- 안드로이드 사이드
- Code Visually
- Code School
- SQLer.com
- 무료 파워포인트 템플릿
- iconPot
- Free PowerPoint Templates
- Design Bombs
- Web Designer Wall
- 1st Webdesigner
- Vandelay Design
- 무료 벡터 이미지 사이트들
- Tripwire Magazine
- Web TrendSet
- WebMonkey
- 윤춘근 프리젠테이션 디자이너 블로그
- cz.cc 무료 DNS
- [웹하드] MediaFire
- [웹하드] DivShare
- 한컴 인터넷 오피스
- PHP
- ASP
- iphone
- Docker
- JQuery
- IE
- nodejs
- nginx
- CSS
- Debug
- Android
- centos
- Chrome
- mssql
- API
- javascript
- laravel
- 안드로이드
- git
- classic asp
- Wordpress
- 한글
- Linux
- IOS
- 워드프레스
- sencha touch
- Prototype
- Mac
- JSON
- iis
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |