CDO.Message 와 CDONTS.NewMail 의 차이점은
cdonts 는 NT 에 제공된 메일 컴포넌트 이며 2000서버부터 CDO가 제공되었습니다.
물론 2000에서는 호환성 때문인지는 모르지만 cdonts도 같이 제공되었구요.
XP Pro / 2003 서버에서는 더이상 cdonts는 제공되지 않습니다.
SMTP 인증없이 메일 발송하는 방법입니다.
- strFrom = "xxxx@orgio.net" ' change to your email address
- strTo = "xxxx@hanmail.net" ' change to the recipient's address
- strSubject = "사과메일 입니다. " ' change to your subject
- strBody = "업무에 지장을 드려 죄송합니다. 에러를 수정하였습니다. "
- ' the following section creates the mail object and sends the mail
- Set objSendMail = CreateObject("CDO.Message")
- objSendMail.From = strFrom
- objSendMail.To = strTo
- objSendMail.Subject = strSubject
- objSendMail.HTMLBody = strBody
- objSendMail.Send
- Set objSendMail = Nothing
.
'Computer > ASP' 카테고리의 다른 글
펌) dext업로드 컴포넌트에 대해서.. (0) | 2011.11.29 |
---|---|
펌) asp에서 디비작업 최적화하기 (0) | 2011.11.29 |
ASP CDONTS 메일 발송 (0) | 2011.11.29 |
CDO 객체를 이용한 메일발송 ASP 예제 (SMTP 인증) (0) | 2011.11.29 |
asp 용 substring. (0) | 2008.01.11 |