Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- jdbc driver
- inner join
- xmldom
- update
- wap
- 정규식
- SPLIT
- asp함수
- 이미지세로길이
- ERD
- tempDB
- sql랭킹
- VARIABLE
- 한글입력체크
- 인젝션
- 자바기초
- WML
- VarType
- XML
- JavaScript
- sql순위
- injection
- 이미지가로길이
- MSSQL보안
- array
- javascript 한글입력체크
- join
- FileSystemObject
- instr
- sql업데이트
Archives
- Today
- Total
3초기억력
ASP - CDO 메일 보내기 샘플 본문
Examples using CDOSYS
Sending a text e-mail:
<% Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="mymail@mydomain.com" myMail.To="someone@somedomain.com" myMail.TextBody="This is a message." myMail.Send set myMail=nothing %> |
Sending a text e-mail with Bcc and CC fields:
<% Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="mymail@mydomain.com" myMail.To="someone@somedomain.com" myMail.Bcc="someoneelse@somedomain.com" myMail.Cc="someoneelse2@somedomain.com" myMail.TextBody="This is a message." myMail.Send set myMail=nothing %> |
Sending an HTML e-mail:
<% Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="mymail@mydomain.com" myMail.To="someone@somedomain.com" myMail.HTMLBody = "<h1>This is a message.</h1>" myMail.Send set myMail=nothing %> |
Sending an HTML e-mail that sends a webpage from a website:
<% Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="mymail@mydomain.com" myMail.To="someone@somedomain.com" myMail.CreateMHTMLBody "http://www.w3schools.com/asp/" myMail.Send set myMail=nothing %> |
Sending an HTML e-mail that sends a webpage from a file on your computer:
<% Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="mymail@mydomain.com" myMail.To="someone@somedomain.com" myMail.CreateMHTMLBody "file://c:/mydocuments/test.htm" myMail.Send set myMail=nothing %> |
Sending a text e-mail with an Attachment:
<% Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="mymail@mydomain.com" myMail.To="someone@somedomain.com" myMail.TextBody="This is a message." myMail.AddAttachment "c:\mydocuments\test.txt" myMail.Send set myMail=nothing %> |
Sending a text e-mail using a remote server:
<% Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="mymail@mydomain.com" myMail.To="someone@somedomain.com" myMail.TextBody="This is a message." myMail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2 'Name or IP of remote SMTP server myMail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.server.com" 'Server port myMail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25 myMail.Configuration.Fields.Update myMail.Send set myMail=nothing %> |
'플밍_ASP' 카테고리의 다른 글
ASP - VarType 종류 (0) | 2011.04.20 |
---|---|
ASP - WinHttpRequest 의 getResponseHeader() 메소드 (0) | 2011.04.20 |
ASP - VBScript VarType Function (0) | 2011.04.15 |
ASP - html 중 img 태그 내부 속성값만 가져오기 (0) | 2011.04.15 |
ASP - 정규식을 이용한 html 중 img 태그만 추출 (0) | 2011.04.15 |
Comments