ASP.Net中的电子邮件配置 [英] E-Mail Configuration in ASP.Net

查看:60
本文介绍了ASP.Net中的电子邮件配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面列出的是当前的电子邮件配置。但是,会发生错误; 交易失败。服务器响应是:5.7.1发送电子邮件需要SMTP认证。



以下是我们所有的邮件设置:



1)港口 - POP为110; IMAP是143; SMTP(传出)是587.

2)不应启用SSL。

3)您必须启用SMTP身份验证,但不启用安全密码身份验证。 />
4)传入和传出服务器名称必须是mail.domain.extension(例如:mail.domain.com)。

5)用户名是您的完整电子邮件地址。



The below-listed is the current e-mail configuration. However, an error occurs; "Transaction failed. The server response was: 5.7.1 SMTP Authentication is required to send email."

Here are all of our mail settings:

1) Ports - POP is 110; IMAP is 143; SMTP (outgoing) is 587.
2) SSL should not be enabled.
3) You MUST have SMTP Authentication enabled, but do NOT enable Secure Password Authentication.
4) Incoming and outgoing server name must be mail.domain.extension (example: mail.domain.com).
5) The user name is your FULL email address.

<?xml version="1.0"?>

<configuration>
  <appSettings>
    <add key="SMTPServer" value="mail.XXX.com"/>
    <add key="BCCEmail" value="info@XXX.com"/>
    <add key="TOEmail" value="info@XXX.com"/>
  </appSettings>
  <system.web>
    <compilation debug="true"/>

    <customErrors mode="Off" />

推荐答案

首先,非常糟糕的主意。您所描述的内容将以明文形式通过网络发送每个人的密码。启用S​​SL(STARTTLS)。



不要担心POP3和IMAP - 它们与邮件传递无关。



除此之外我们无法帮助你。显然,应用程序从 appSettings 获取一些设置,但没有共享应用程序实际发送消息的部分(通常使用 System.Net.Mail.SmtpClient ,我们无法看到它是否能够进行身份验证。
First, very bad idea. What you are describing will send everyone's passwords over the wire in plaintext. Enable SSL (STARTTLS).

Don't worry about POP3 and IMAP -- they have nothing to do with mail delivery.

Other than that we can't help you. Obviously the application is getting some settings from appSettings but without sharing the part where the application actually sends messages (usually using System.Net.Mail.SmtpClient, we can't see if it is able to authenticate.


这篇关于ASP.Net中的电子邮件配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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