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

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

          <bdo id='kBFSi'></bdo><ul id='kBFSi'></ul>
        <tfoot id='kBFSi'></tfoot>
      1. 我可以在不通过 SMTP 服务器验证的情况下发送电子邮件吗?

        时间:2023-10-05

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

        <tfoot id='hLQU9'></tfoot>
      2. <small id='hLQU9'></small><noframes id='hLQU9'>

            <legend id='hLQU9'><style id='hLQU9'><dir id='hLQU9'><q id='hLQU9'></q></dir></style></legend>

                  <tbody id='hLQU9'></tbody>

                  <bdo id='hLQU9'></bdo><ul id='hLQU9'></ul>
                  本文介绍了我可以在不通过 SMTP 服务器验证的情况下发送电子邮件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在创建简单的电子邮件发送应用程序.在我的应用程序中,当我发送电子邮件时,我必须输入我的电子邮件地址或密码,但我不想使用密码,只想输入电子邮件

                  i am creating simple email sending application. In my application when ever i send email i have to put my email address or password as from but i don't want to use password only want to put email

                  所以

                  我可以使用 c#/.net 应用程序在不使用密码的情况下发送电子邮件吗?

                  Can i send Email without using password using c#/.net application ?

                  这是我的代码:

                     try
                      {
                          // setup mail message
                          MailMessage message = new MailMessage();
                          message.From = new MailAddress(textBox1.Text);
                          message.To.Add(new MailAddress(textBox2.Text));
                          message.Subject = textBox3.Text;
                          message.Body = richTextBox1.Text;
                  
                          // setup mail client
                          SmtpClient mailClient = new SmtpClient("smtp.gmail.com");
                          mailClient.Credentials = new NetworkCredential(textBox1.Text,"password");
                  
                          // send message
                          mailClient.Send(message);
                  
                          MessageBox.Show("Sent");
                      }
                      catch(Exception)
                      {
                          MessageBox.Show("Error");
                      }
                  

                  推荐答案

                  我可以使用 c#/.net 应用程序在不使用密码的情况下发送电子邮件吗?

                  Can i send Email without using password using c#/.net application ?

                  是的,如果您可以访问不需要身份验证的电子邮件网关,您可以这样做:

                  Yes, if you have access to an email gateway that doesn't require authentication you can simply do:

                  SmtpClient mailClient = new SmtpClient("your.emailgateway.com");
                  mailClient.Send(message);
                  

                  也许您的公司或 ISP 可以为您提供一个?

                  Maybe your company or ISP can provide one for you?

                  这篇关于我可以在不通过 SMTP 服务器验证的情况下发送电子邮件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在 Windows 应用程序中使用 SMTP 服务器向手机发送短信? 下一篇:asp.net 邮件添加回复

                  相关文章

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

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

                  2. <legend id='SwtvS'><style id='SwtvS'><dir id='SwtvS'><q id='SwtvS'></q></dir></style></legend>

                        <bdo id='SwtvS'></bdo><ul id='SwtvS'></ul>