var htmlBody="";
htmlBody+="<html>";
htmlBody+="<head>";
htmlBody+="<meta http-equiv='Content-Type' content='text/html; charset=euc-kr'>";
htmlBody+="</head>";
htmlBody+="<body>";
htmlBody+="<br>";
htmlBody+="<div align='center'><img src='http://youth.cheongacamp.com/program/image/sp/okend.gif' width='680' height='163' border='0' usemap='#Map00'></div>";
htmlBody+="<map name='Map00'>";
htmlBody+="<area shape='rect' coords='193,116,293,142' href='http://youth.cheongacamp.com' target='_blank'>";
htmlBody+="</map>";
htmlBody+="</body>";
htmlBody+="</html>";
var config = Server.Createobject("CDO.Configuration");
with (config.Fields) {
Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1;
Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost";
Item("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "C:\\Inetpub\\mailroot\\Pickup";
Update();
}
var email = Server.CreateObject("CDO.Message");
email.Configuration = config;
email.To=entrantEmail;
email.From="ㅁㅁㅁ<admin@naver.com>";
email.Subject=krName+"님 신청이 접수되었습니다.";
email.HTMLBody=htmlBody;
email.Send();
dbCon.Close();
Response.Redirect("application_end.asp");
'ASP,MSSQL Tip' 카테고리의 다른 글
프로그래밍팁 (0) | 2013.06.11 |
---|---|
HTMLEncode 와 URLEncode (0) | 2013.06.11 |
iframe 속성 (0) | 2013.06.11 |
jscript를 전역에서 사용할수있게 해주는 코드 (1) | 2013.06.11 |
다국어 사이트를 위한 Charset과 CodePage (0) | 2013.06.11 |