使用ASPMail组件发送数字卡片

2016-01-29 18:21 9 1 收藏

使用ASPMail组件发送数字卡片,使用ASPMail组件发送数字卡片

【 tulaoshi.com - ASP 】

  Sending Digital PostCards with ASP and the free component ASPEmail from Persits software.
By Joao Vieira

What is a Digital Postcard?
A digital postcard is a image a net surfer picks out, along with an accompanying personal message. The net surfer "sends" the postcard by supplying a friend's email address. A link is then emailed to the address supplied. The link takes the receiver of the digital postcard to the site which displays the image and contains the personal message.



First you must create a database to house the information for the postcards. (I use a DataBase to put the PostCards information so that when a person gets the mail with the post card only have to click on the link and the page apears, goin to DB to get the Data. So here it is the structure of my DataBase (you can make your own, with more information if you intend to.


Postal
ID_POSTAL Autonumber
passw integer
postal Text
nameto Text
namefrom Text
emailfrom Text
emailto Text
Message Text
Data Text

For the digital postcard system to work, you will need a number of images for the postcards. In my example I have six unique postcards, and 12 images for the postcards: a thumbnail and normal size image for each postcard. I also use images for buttons, the main ones being View, Send, and Repeat.

Concerning the code, I want to warn you that I am not going to be going deep into the HTML aspect; I will concentrate on the ASP. If you have any questions about this article, please contact me.

You will have to make an HTML form. I used the POST method, because I don't like to see all ofthe information submitted in the address link box. (Related Article! Passing Data Between ASP Pages)

FILE: makin.html
This file contains the form where we get all of the information from the user. This information will be used to make the digital postcard.

<form  
     name="postalsent"  
     method="post"  
     action="view.asp?fromn=seeit"  
     target="_self"


.....
    <td width="24" valign="bottom"
       <font face="Arial"
         <input type="radio" value="postal1" name ="R1"
           
    <td width="140"
       <font face="Arial"
      <IMG border=2 height=86 src="https://img.tulaoshi.com/attachment/portal/jcwcj/2005-12/10/0512100054048765.gif"" width=134
           
    <td width="12" valign="bottom"
       <font face=3D"Arial"                 
          <input type="radio" value="postal2" name ="R1"
           
    <td width="151"
       <font face="Arial"
          <IMG border=2 height=87 src="https://img.tulaoshi.com/attachment/portal/jcwcj/2005-12/10/05121000540485045.gif"" width=134
             

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/asp/)

来源:https://www.tulaoshi.com/n/20160129/1505432.html

延伸阅读
标签: ASP
  test.asp[code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" <html<head <titleactivex组件应用例子一</title</head <% '--------------------------------------------------------- 'activex组件应用例子一 '读取sql server 7 pubs数据库中authors表并分页显示 ...
标签: ASP
  首先由Set objASPError=Server.GetLastError 取得错误信息,接着由 ASPError 物件的属生取得相关信息: objASPError.ASPCode:传回IIS产生的错误码 objASPError.Number:传回COM标准错误码,如 0x800A03FC objASPError.Source:传回实际产生错误的原始码 objASPError.Category:指出错误的来源为 ASP、Script 或是 Object objASPError.F...
标签: ASP
      ASP对象让你的服务器和浏览器互相影响,你会例行公事的在你的ASP脚本中使用一个或者多个对象。你不用安装任何东西来使用它们,但是你必须要记住打开或者关闭它们。 转自:动态网制作指南 www.knowsky.com   ASP组件,和ASP对象不同,它是ActiveX控制和ASP接口让普通进程单一化。一些普通的使用对象和组件就在...
标签: flash教程
本文由 中国 cao4811 原创,转载请保留此信息! 本系列Flash教程由中国Flash互助课堂专为Flash新手制作,更多教程和练习请 点击这里 ,在这里有系列的教程、练习,并有老师对练习进行点评与指导,欢迎朋友们的光临!  在学习中遇到问题请到 论坛 发贴交流! 更多AS 3.0教程: http://www.jcwcn.com/portal-topic-topicid-2....
标签: flash教程
使用第三方组件 如果想添加第三方的组件到 MX的“组件”面板中,最简单的方法就是先找到路径Flash MX\First Run\下的Components文件夹,然后将其打开,打开后您会可以发现一个Flash UI Components.fla文件,这就是FlashMX存放七个内置组件的文件。现在只要把第三方组件(.fla格式)放到Components文件夹中即可。然后重新启...

经验教程

349

收藏

86
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部