|
|
|
|
food / 2000-10-18 / ¿ÀÀü 11:42:50 / 210.219.185.189
Á¶È¸¼ö : 119
|
[Áú¹®] ¸ÞÀϸµ¿¡¼ À̹ÌÁö °¡ º¸³»ÁöÁö ¾Ê¾Æ¿ä |
µµ¿ÍÁÖ¼¼¿ä<%@ Language=VBScript %>
<%
Server.ScriptTimeout = 300
'¸¸ÀÏ ÈÀÏ÷ºÎ°¡ ÀÖ´Ù¸é ±× ÈÀÏÀÇ °æ·Î¸¦ ÀúÀåÇÑ´Ù.
if request("fileplus")<>"" then
filename = request("fileplus")
end if
content = replace(request("content"),chr(13)," ")
'°³Çà󸮸¦ À§Çؼ replace¸¦ Çß´Ù
'µ¥ÀÌŸº£À̽º¸¦ ¿°í Äõ¸®¸¦ ¼öÇàÇؼ µðºñ¿¡ ÀÖ´Â emailÁÖ¼Ò¸¦ '°¡Á®¿Â´Ù
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "dsn=sql;uid=sa;pwd=;"
Set rs=Conn.Execute("Select writer,email From ntn")
html = ""
'¹Ø¿¡°ÍÀº À߸øµÈ°ÍÀÓ ¹®ÀÚ¿Àº½Öµû¿ÈÇ¥·Î °¨½Îµ¥..¹®ÀÚ¿ ¾ÈÀ» ½Öµû¿ÈÇ¥³Ê µû¿ÈÇ¥°¡ µé¾î°¡ ÀÖÀ¸¸é ¾ÈµÊ
'html = html & ""width=300 height=150
'À§ÀÇ ³»¿ëÀ» ¼öÁ¤ÇÑ °ÍÀÓ...
'border=0 src=1-1.gif
html = ""
html = html & ""
html = html & ""
html = html & ""
html = html & " | "
html = html & ""
html = html & " |
|
| "
html = html & " | "
html = html & ""
html = html & " |
| "
html = html & " | "
html = html & ""
html = html & ""
html = html & " "
html = html & "¼ÓÀÌ ²ËÂù ÀÎÅÍ³Ý ¿©Çà»ç º¸¶ó³Ý"
html = html & "´å ÄÄÀÔ´Ï´Ù. ÈÞ¿ì~ ¾î´À»õ ¿Ê±êÀ» ¿©¸ç¾ß ÇÏ´Â µû¶æÇÑ °÷ÀÌ ±×¸®¿öÁö´Â °èÀýÀÌ µ¹¾Æ¿Ô³×¿©.. "
html = html & " µû¶æÇÑÈ£»§°ú ¶ß²ö~ÇÑ ¿Àµ±¹¹°ÀÌ ±×¸®¿öÁö´Âµ¥.. ȸ¿ø´ÔµéÀº ¾î¶°¼¼¿©...? ^^ ¿ÊÀå ±íÀÌ Â÷°îÂ÷°î ³Ö¾î µÎ¾ú´ø µÎÅùÇÑ ¿ÊµéÀ» ²¨³»¸ç Áö³ Ã߾ﵵ Çϳª µÑ¾¿ µÇ»õ±èÇÒ ¼ö ÀÖ´Â ÀÛÀº ¿©À¯¸¦ °¡Á® º¸½Ã´Â °ÍÀº ¾î¶°½Å°¡¿©.... ^^*"
html = html & " | "
'¸ÞÀÏÁÖ¼Ò°¡ ³¡³¯‹š±îÁö Loop¸¦ µ¹¸ç ¸ÞÀÏÀ» º¸³½´Ù.
Do While not rs.eof
Set objMail = Server.CreateObject("CDONTS.NewMail")
'¸¸ÀÏ Ã·ºÎÈÀÏÀÌ ÀÖ´Ù¸é ÈÀÏÀ» attach ÇÑ´Ù.
if filename <> "" then
objMail.attachFile(filename)
end if
objMail.From="boranet"
objMail.To=rs("email")
objMail.Subject= rs("writer") & " ´Ô²² : " & request("title")
objMail.Body= request("content")
objMail.BodyFormat = 0 ' HTMLÀÏ‹š 0, ÀÏ¹Ý TextÀ϶§ 1 À¸·Î ¼³Á¤ÇÑ´Ù.
objMail.MailFormat = 0 ' HTMLÀÏ‹š 0, ÀÏ¹Ý TextÀ϶§ 1 À¸·Î ¼³Á¤ÇÑ´Ù.
objMail.body = html '¸¸µç ¹®ÀÚ¿htmlÀ» Body·Î ¿¬°áÇÑ´Ù.
objMail.send 'ÀÌÁ¦ ¸ÞÀÏÀ» º¸³½´Ù.
set objMail = nothing
rs.movenext
loop
'CDOÄÄÆ÷³ÍÆ®µµ ´Ý°í µðºñµµ ´Ý°í....
set rs = nothing
Conn.close
Set Conn = nothing
%>
¡¡
¡¡
¡¡
Mail
face="µ¸¿ò" size="4" color="#000080"> À» Àß º¸³Â½À´Ï´Ù.
¼ö°íÇϼ̽À´Ï´Ù.
¡¡
¡¡
BoraNet
face="Century Gothic" size="4" color="#008080">Mailing List
|
|
|
|
|