您现在的位置: 军旅同心-旅游自驾-军旅文学 >> 读书赏析 >> 学习园地 >> 电脑网络 >> 技术文章 >> 正文
使用ASPMail组件发送数字卡片
作者:采集员 文章来源:来源于网络 点击数: 更新时间:2005-9-10 13:49:32
;nameto")

     ' Print the body of the email
     enviar = "Let me inform you that " & session("namefrom") & _
              Chr(13) & Chr(10) & _
              "have sent you a digital card. To see " & _
              "it follow the link :" & _
              Chr(13) & Chr(10) & Chr(13) & Chr(10) & _
              "http://www.???????.com/view.asp?fromn=out&" & _
              "ident=" & identifier & _
              "&psw=" & passw & " " & Chr(13) & Chr(10) & _
              " your card is available till the day " & _   
              formatDateTime(d,2) & _
              Chr(13) & Chr(10) & Chr(13) & Chr(10) & _
              Chr(13) & Chr(10) & _
              "        Thanks"   

     Mail.Body = enviar

     'Just skip if there are any errors...
     On Error resume Next  

     ' This will send the email
     Mail.Send  


     ' Display an error message if there was an error
     If Err <> 0 Then %>
         <img src="images/error.gif" width="322" height="53"  
               border="0">
     <%
         'Comment out this code if you want to see
         'the error number
         'Response.Write "<br><br>" & "Error found : " & _
                         Err.description & "<br><br>"

         Response.Write "<center><p>SERVER SIDE ERROR, " & _
                        "contact site webmaster.</p></center>"

         goby = 0  
     Else
          Response.Write "<br><br><br><center><p>POSTCARD WAS SENT " & _
                         "NO PROBLEMS...<br>"
     End if
End if

' I think that you have seen that I use the JavaScript history.back
' and go.  I use it so when the user come back he don't
' loose any information already entered into the form.
%>

<center>
    <a href="javascript:history.go('-2')">
        <img src="../images/rebuiltbutton.gif" width="60"  
              height="53" border="0">
    </a>
</center>
</strong></small></font>

</body>
</html>



Get the E-Mail free component:http://www.aspemail.com/

Let me explain how to set it up. Put the component wherever you want, I usually put the components I use
in the directory C:Inetpubcomponents. Then register it (after you put it in the directory you want) by
typing:


regsvr32 AspEmail.dll
from the command line. That's all! Remember, the email code won't work unless you register the component!
If you have any questions, please contact me:http://www.4guysfromrolla.com/webtech/joao.shtml

上一页  [1] [2] [3] [4] 


更多
免责声明:作品版权归所属媒体与作者所有!!本站刊载此文不代表同意其说法或描述,仅为提供更多信息。如果您认为我们侵犯了您的版权,请告知!本站立即删除。有异议请联系我们。
文章录入:烟灰缸    责任编辑:烟灰缸 
  • 上一篇文章:
  • 下一篇文章:
  • 网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 网站地图 | 版权申明 | 网站公告 | 管理登录 |