• <bdo id='gkrlu'></bdo><ul id='gkrlu'></ul>

  • <i id='gkrlu'><tr id='gkrlu'><dt id='gkrlu'><q id='gkrlu'><span id='gkrlu'><b id='gkrlu'><form id='gkrlu'><ins id='gkrlu'></ins><ul id='gkrlu'></ul><sub id='gkrlu'></sub></form><legend id='gkrlu'></legend><bdo id='gkrlu'><pre id='gkrlu'><center id='gkrlu'></center></pre></bdo></b><th id='gkrlu'></th></span></q></dt></tr></i><div id='gkrlu'><tfoot id='gkrlu'></tfoot><dl id='gkrlu'><fieldset id='gkrlu'></fieldset></dl></div>
    <legend id='gkrlu'><style id='gkrlu'><dir id='gkrlu'><q id='gkrlu'></q></dir></style></legend>
    <tfoot id='gkrlu'></tfoot>

      <small id='gkrlu'></small><noframes id='gkrlu'>

      1. 在 asp.net 中使用特定名称而不是发件人电子邮件发送电子邮件

        时间:2023-10-05

        <small id='XVG1J'></small><noframes id='XVG1J'>

        • <i id='XVG1J'><tr id='XVG1J'><dt id='XVG1J'><q id='XVG1J'><span id='XVG1J'><b id='XVG1J'><form id='XVG1J'><ins id='XVG1J'></ins><ul id='XVG1J'></ul><sub id='XVG1J'></sub></form><legend id='XVG1J'></legend><bdo id='XVG1J'><pre id='XVG1J'><center id='XVG1J'></center></pre></bdo></b><th id='XVG1J'></th></span></q></dt></tr></i><div id='XVG1J'><tfoot id='XVG1J'></tfoot><dl id='XVG1J'><fieldset id='XVG1J'></fieldset></dl></div>
            <bdo id='XVG1J'></bdo><ul id='XVG1J'></ul>
              1. <legend id='XVG1J'><style id='XVG1J'><dir id='XVG1J'><q id='XVG1J'></q></dir></style></legend>

                  <tbody id='XVG1J'></tbody>
                • <tfoot id='XVG1J'></tfoot>

                  本文介绍了在 asp.net 中使用特定名称而不是发件人电子邮件发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我需要在 asp.net 中发送电子邮件,但我需要发件人显示为MySiteName",而没有 info@mysitename.com.

                  I need to send an email in asp.net but I need sender appears like "MySiteName" without info@mysitename.com.

                  推荐答案

                  像这样:

                  using(MailMessage message = new MailMessage(
                          new MailAddress("You@Domain.com", "Your Name"),
                          new MailAddress("Recipient@OtherDomain.com", "Their Name")
                      )) {
                      message.Subject = ...;
                      message.Body = ...;
                  
                      new SmtpClient().Send(message);
                  }
                  

                  您需要在 Web.config 中输入 SmtpClient 的连接设置

                  You will need to enter the SmtpClient's connection settings in Web.config

                  这篇关于在 asp.net 中使用特定名称而不是发件人电子邮件发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:C# 邮件程序 - 550 访问被拒绝 - HELO 名称无效 下一篇:如何在测试期间将电子邮件发送到本地文件夹?

                  相关文章

                  <tfoot id='lS9Hb'></tfoot><legend id='lS9Hb'><style id='lS9Hb'><dir id='lS9Hb'><q id='lS9Hb'></q></dir></style></legend>

                  1. <small id='lS9Hb'></small><noframes id='lS9Hb'>

                      • <bdo id='lS9Hb'></bdo><ul id='lS9Hb'></ul>
                      <i id='lS9Hb'><tr id='lS9Hb'><dt id='lS9Hb'><q id='lS9Hb'><span id='lS9Hb'><b id='lS9Hb'><form id='lS9Hb'><ins id='lS9Hb'></ins><ul id='lS9Hb'></ul><sub id='lS9Hb'></sub></form><legend id='lS9Hb'></legend><bdo id='lS9Hb'><pre id='lS9Hb'><center id='lS9Hb'></center></pre></bdo></b><th id='lS9Hb'></th></span></q></dt></tr></i><div id='lS9Hb'><tfoot id='lS9Hb'></tfoot><dl id='lS9Hb'><fieldset id='lS9Hb'></fieldset></dl></div>