我有一个网页中使用了PasswordRecovery控件。点击submit按钮后,收到两封邮件。一封邮件的from是[email protected],另一封邮件的from是[email protected]。根据需求只需要收到从[email protected]发来的邮件。我尝试删掉web.config中关于mailSettings中的设置,但测试的时候,系统报错。如何修改才能保证只收到[email protected]发来的邮件?PasswordRecovery控件中与发邮件相关的配置如下:
MailDefinition-From="[email protected]
MailDefinition-Subject="Test Password Reset" 
MailDefinition-BodyFileName="resetPasswordEmail.txt" web.config文件中关于发邮件的设置:
  <system.net>
    <mailSettings>
      <smtp from="[email protected]">
        <network host="mail" password="" userName="" />
      </smtp>
    </mailSettings>
  </system.net>  <appSettings>
    <add key="email_Default" value="[email protected]"/>
  </appSettings>