关于邮件申请 [英] about mail application

查看:83
本文介绍了关于邮件申请的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在asp.net中接收邮件
提供演示

how i can receive mail in asp.net
provide demonstration

推荐答案

每天要问很多次.您为什么无法在此论坛上找到答案?或您可以在Google找到的答案.

您无法使用ASP.NET接收邮件,这不是它的用途.您可以创建一个邮件服务器,然后可以接收邮件,还可以使用ASP.NET创建代码以显示已收到的邮件,这是另一个问题.
This gets asked so many times a day. Why can''t you find the answers already on this forum ? Or the answers you can find with google.

You CAN''T receive mail with ASP.NET, that''s not what it is for. You can create a mail server, which can then recieve mail, and you can use ASP.NET to create the code to show what mail has been recieved, that''s another question.


您无法使用ASP.NET接收邮件.

您可以发送.

试试这个...

You cannot receive mail with ASP.NET.

You can send it.

Try this...

Dim objEmail as New MailMessage()
      objEmail.To       = txtTo.Text
      objEmail.From     = txtFrom.Text
      objEmail.Cc       = txtCc.Text
      objEmail.Subject  = "Test Email"
      objEmail.Body     = txtName.Text & ", " &txtComments.Text
      objEmail.Priority = MailPriority.High
  ''SmtpMail.SmtpServer  = "localhost"
  try
    SmtpMail.Send(EMail)
    Response.Write(Your E-mail has been sent sucessfully - _
                   Thank You)

  catch exc as Exception
    Response.Write("Send failure: " + exc.ToString())
  End Try



您可以创建一个表来填充变量,然后使用按钮作为要发送的事件.


接收只能在邮件服务器中进行,但是可以设置规则,以便某些内容或发件人将内容和其他数据转发到一个表,该表可以被拾取并发送到例如网页.


单击此处 [



You can create a table to fill the variables then use a button as the event to send.


Receiving can only occur in a mail server, however rules can be set so that certain content or senders will forward content and other data to a table that can be picked up and sent to a web page for example.


It is quite easy to find out all you need by clicking Here[^]


这篇关于关于邮件申请的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆