表单提交到邮箱如何做?

ioucsdn 2004-08-05 05:47:57
有一个纯html客户意见反馈的页面,当点提交按钮时会打开比如outlook,foxmail等邮件发送软件,可是在页面填写的表单里的内容并不能一同传到邮件发送软件上,请问怎么样才可以点了提交之后就直接将表单内容发送到邮箱?
(不使用cdo,jmail之类的组件做。)
...全文
238 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
eyun 2004-08-05
  • 打赏
  • 举报
回复
jmail,如上
qiyangaoying 2004-08-05
  • 打赏
  • 举报
回复
up
woyingjie 2004-08-05
  • 打赏
  • 举报
回复
<%
Title="你好"
ToWho="woyingjie@yahoo.com.cn"
Content="欢迎光临http://www.killerj.tk"
call SendMyEmail(Title,ToWho,Content)
'发送邮件
Sub SendMyEmail(Title,ToWho,Content)
Dim msg
Dim email_server,user_name,password,Email_type,send_email

email_server = "smtp.163.com"
user_name = "woyingjie@163.com"
password = "******"
Email_type = 1
send_email = "AAA"

Set msg=Server.CreateObject("JMail.Message")

msg.Body = ""
msg.HTMLBody = ""
'---
msg.appendtext(Content)

if user_name<>"" and password<>"" then
msg.MailServerUserName = user_name
msg.MailServerPassword = password
end if
if ToWho<>"" then msg.ReplyTo=ToWho
'--
msg.Logging = True
msg.silent = true
msg.Charset = "so-8859-1"
msg.From = user_name
msg.FromName = send_email
msg.Subject = Title
'--
msg.AddRecipient ToWho
msg.Priority=Email_type
err=msg.Send (email_server)
'---
msg.clear
msg.close
Set msg=nothing
End Sub
%>
ioucsdn 2004-08-05
  • 打赏
  • 举报
回复
我用CDO做了一个,可服务器不支持这个组件。
谁能给我一个jmail的,现成的拿来就能用的最好,谢谢。
phyllis2001 2004-08-05
  • 打赏
  • 举报
回复
纯html?????没法做~~就是用asp也很难的!!!建议还是用jmail吧~~
xiaohunhun417 2004-08-05
  • 打赏
  • 举报
回复
我也想知道,用cdo,jmail能做也行

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧