没有收到从SMTP发送的邮件吗? [英] Didn't receive mails send from SMTP?

查看:338
本文介绍了没有收到从SMTP发送的邮件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用SMTP服务器发送电子邮件.我使用asp中的creatuserwizard来创建注册表单.
这是aspx文件.

i used SMTP server to send emails.i used creatuserwizard in asp to create a registration form .
This is aspx file.

<asp:CreateUserWizard ID="userwizard" ContinueDestinationPageUrl="~/secretfiles/secret.aspx" runat="server" >
  <MailDefinition BodyFileName="register.txt" Subject="Registration Confirmation" From="amrit.enest@gmail.com" />
  </asp:CreateUserWizard>




这是我的web.config文件.




This is my web.config file.

<mailSettings>
    <smtp deliveryMethod="SpecifiedPickupDirectory" from="amrit.enest@gmail.com">
    <specifiedPickupDirectory pickupDirectoryLocation="C:\Users\eNest-25\Desktop\emails"/>
    </smtp>
    </mailSettings>



.eml文件是在提取目录位置生成的,其中包含有关电子邮件的信息,但是用户尚未收到它,而是在发件人的电子邮件ID的已发送邮件中显示.
为什么?

我没有提供用于在任何地方发送电子邮件的电子邮件密码.我怀疑smtp如何在不知道发送电子邮件密码的情况下发送邮件

请帮助



The .eml files are being generate in pickup-directory location with the information about email but user yet didn''t receive it not it is being shown in sent mails of sender''s email id.
Why?

I didn''t provide password of email which is being used to send emails anywhere.i doubt how can smtp can send mails without knowing the password of sending email

Please help

推荐答案

您已将deliveryMethod指定为SpecifiedPickupDirectory,这使得它实际上并未发送邮件.而是将其保存在您提到的文件夹中的硬盘上.将其设置为network,它将发送电子邮件.您还需要设置密码和用户名以及端口号和主机.

有关发送邮件的更多详细信息,请查看MSDN文章,此处 [^ ] .
You have specified the deliveryMethod to be SpecifiedPickupDirectory this makes it not send the mail actually. Instead it saves on your hard disc in the folder you mentioned. Set it to network and it will send the email. You also need to setup the password and the username along with port number and host.

For more details on sending mail, check out the MSDN article, here[^].


这篇关于没有收到从SMTP发送的邮件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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