• <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 中使用特定名称而不是发件人电子邮件发送电子邮件

        Sending emails in asp.net with specific name instead of sender email(在 asp.net 中使用特定名称而不是发件人电子邮件发送电子邮件)

        <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 中使用特定名称而不是发件人电子邮件发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Populate ListBox with a IEnumrable on another thread (winforms)(在另一个线程(winforms)上使用 IEnumrable 填充 ListBox)
                  listbox selected item give me quot; System.Data.DataRowViewquot; , C# winforms(列表框选择的项目给我quot;System.Data.DataRowView, C# Winforms)
                  Cannot remove items from ListBox(无法从列表框中删除项目)
                  Preventing ListBox scrolling to top when updated(更新时防止列表框滚动到顶部)
                  Drag and drop from list to canvas on windows phone with MVVM(使用 MVVM 在 Windows 手机上从列表拖放到画布)
                  Deselection on a WPF listbox with extended selection mode(具有扩展选择模式的 WPF 列表框上的取消选择)
                  <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'>

                          <tbody id='lS9Hb'></tbody>

                          • <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>