티스토리 뷰
정보 보관 ver1.0
메일 보내기] CDONTS.Newmail(Windows2000Server) -> CDO.Message(Windows2003Server)
James Wetzel 2009. 2. 2. 18:38
시나리오
ASP 메일 보내기에 대하여 알아보자.
정보
[Windows 2000Server]
Sub SendMail ( IP_send, IP_to, IP_subject, IP_body, fileFullPath, flag )
[필수 셋팅]
IIS Server에 "기본 SMTP 가상 서버"를 설치 한다.
[Windows 2000Server]
Sub SendMail ( IP_send, IP_to, IP_subject, IP_body, fileFullPath, flag )
Dim SMail
Set SMail = Server.CreateObject("CDONTS.Newmail")
With SMail
.From = IP_send
.To = IP_to
.Subject = IP_subject
.body = IP_body
.BodyFormat = 0
.MailFormat = 0
If fileFullPath <> "" Then
.attachFile fileFullPath,,1 'cdoEncodingBase64
End If
.Send
End With
Set SMail = nothing
End Sub
[Windows2003Server]
Sub SendMail ( IP_send, IP_to, IP_subject, IP_body, fileFullPath, flag )
End Sub
[Windows2003Server]
Sub SendMail ( IP_send, IP_to, IP_subject, IP_body, fileFullPath, flag )
Dim SMail
Set SMail = Server.CreateObject("CDONTS.Newmail")
With SMail
.From = IP_send
.To = IP_to
.Subject = IP_subject
.HtmlBody= IP_body
If fileFullPath <> "" Then
.attachFile fileFullPath,,1 'cdoEncodingBase64
End If
.Send
End With
Set SMail = nothing
End Sub
End Sub
비고
보다 자세한 내용은 http://blog.naver.com/keypush/10000527198 참고.
728x90
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 제품 등록
- 표현 언어(expression language)
- 스프링 프레임워크(spring framework)
- 메이븐(maven)
- REST API
- java.sql
- nl2br
- 문자 자르기
- jstl(java standard tag library)
- error-java
- system.io
- 람다식(lambda expression)
- React
- 스프링 시큐리티(spring security)-http basic 인증
- .submit()
- jstl(java standard tag library)-core
- java-개발 환경 설정하기
- docker
- In App Purchase
- jsp 오픈 소스
- java web-mvc
- await
- 스프링 프레임워크(spring framewordk)
- 스프링 시큐리티(spring security)
- 진수 변환
- MainActor
- 특정 문자를 기준으로 자르기
- java 키워드 정리
- System.Diagnostics
- 인텔리제이(intellij)
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함