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

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

      我可以通过 Office365 共享邮箱发送 SMTP 电子邮件吗?

      Can I send SMTP email through Office365 shared mailbox?(我可以通过 Office365 共享邮箱发送 SMTP 电子邮件吗?)

    2. <legend id='PFstf'><style id='PFstf'><dir id='PFstf'><q id='PFstf'></q></dir></style></legend>
      <tfoot id='PFstf'></tfoot>
        <tbody id='PFstf'></tbody>

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

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

          <i id='PFstf'><tr id='PFstf'><dt id='PFstf'><q id='PFstf'><span id='PFstf'><b id='PFstf'><form id='PFstf'><ins id='PFstf'></ins><ul id='PFstf'></ul><sub id='PFstf'></sub></form><legend id='PFstf'></legend><bdo id='PFstf'><pre id='PFstf'><center id='PFstf'></center></pre></bdo></b><th id='PFstf'></th></span></q></dt></tr></i><div id='PFstf'><tfoot id='PFstf'></tfoot><dl id='PFstf'><fieldset id='PFstf'></fieldset></dl></div>
                本文介绍了我可以通过 Office365 共享邮箱发送 SMTP 电子邮件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我们正在考虑迁移到 O365;但是,我们开发的软件使用我们当前的 Exchange 服务器向外部用户发送电子邮件,并在发生错误时发送到支持箱.

                We are thinking about moving to O365; however, we developed software that uses our current Exchange server to send email both to external users as well as to a support box when errors occur.

                我一直在对此进行测试,以确保我们现有的代码将继续与 O365 一起使用,但到目前为止,我还不是很成功.

                I've been testing this to ensure that the code we have in place will continue to work with O365 but so far, I have not been very successful.

                我尝试过使用 .Net 的 SmtpClient 和 MailKit 的 SmtpClient,但似乎都没有.我不断收到错误(这是来自 MailKit 的错误——.Net 错误类似)

                I have tried using .Net's SmtpClient as well as MailKit's SmtpClient and neither one seems to work. I keep getting error (this is the error from MailKit -- the .Net error is similar)

                AuthenticationInvalidCredentials:5.7.3 身份验证不成功[*.prod.exchangelabs.com]"

                "AuthenticationInvalidCredentials: 5.7.3 Authentication unsuccessful [*.prod.exchangelabs.com]"

                我可以使用我的代码中的凭据登录到 OWA —— 所以我知道凭据是有效的.不能通过 O356 发送电子邮件吗?是否需要在 Exchange 中进行任何特殊配置才能实现这一点?

                I can use the credentials that I have in my code to log into OWA -- so I know the credentials are valid. Is it not possible to send email via O356? Is there any special configuration that has to happen in Exchange to make this possible?

                这是我迄今为止尝试过的:

                Here is what I've tried so far:

                MailKit

                var msg = new MimeMessage();
                msg.From.Add(new MailboxAddress("Support","support@mydomain.com"));
                msg.To.Add(new MailboxAddress("Me","me@mydomain.com"));
                msg.To.Add(new MailboxAddress("External User","euser@externaldomain.com"));
                msg.Subject = "Test";
                msg.Body = new TextPart("plain"){
                   Text = "Here is a message for you"
                };
                using(var client = new SmtpClient()){
                    client.ServerCertificateValidationCallback = (s,c,h,e) => true;
                    client.AuthenticationMechanisms.Remove("XOAUTH2"); //Not sure what this does.  Have tried with and without
                    client.Connect("smtp.office365.com", 587, MailKit.Security.SecureSocketOptions.StartTls);
                    client.Authenticate(new NetworkCredential("support@mydomain.com", "supportPwd"));
                    client.Send(msg);
                    client.Disconnect(true);
                }
                

                .Net SmtpClient 代码看起来与 MailKit 代码非常相似.

                The .Net SmtpClient code looked very similar to the MailKit code.

                1. 有没有办法通过 O365 与许可用户一起发送?(上面的代码)
                2. 是否需要在 Exchange 或许可用户上进行任何特殊设置才能完成这项工作?(如果 1 的答案是肯定的)
                3. 是否可以通过凭据用户拥有代理发送"权限的共享邮箱发送电子邮件?

                更新

                我仍然收到相同的错误消息.我们确实为我们的域用户启用了 MFA.但是,我们有一项政策,当用户从受信任的位置(我们组织的 IP)登录时,他们不需要 MFA.我还将我们的 IP 列为受信任的 IP.在我看来,MFA 不应该是这里的问题.

                I'm still getting the same error message. We do have MFA enabled for our domain users. However, we have a policy that does not require MFA for users when they are signing in from a trusted location (our org's IP). I also listed our IP as a Trusted IP. In my mind, MFA shouldn't be the issue here.

                我知道凭据是正确的.我从代码中复制它们并在登录 M365 时将它们粘贴到登录屏幕中——我很好地进入了.

                I know the credentials are correct. I copied them from the code and pasted them in to the login screen when signing into M365 -- and I got in just fine.

                我做错了什么?

                推荐答案

                1. 是的,你可以.

                1. Yes, you can.

                用户设置:

                服务器设置:https://support.office.com/en-us/article/POP-IMAP-and-SMTP-settings-for-Outlook-com-d088b986-291d-42b8-9564-9c414e2aa040p>

                Server-settings : https://support.office.com/en-us/article/POP-IMAP-and-SMTP-settings-for-Outlook-com-d088b986-291d-42b8-9564-9c414e2aa040

                SMTP server name smtp.office365.com
                
                SMTP port 587
                
                SMTP encryption method STARTTLS
                

                1. 不,你不能.您需要获得许可的用户才能通过 SMTP 发送邮件.

                https://answers.microsoft.com/en-us/msoffice/forum/msoffice_o365admin/set-up-smtp-relay-with-shared-mailbox/d7b98214-9564-432c-b098-525a98c529fb

                我们的一个客户有一个使用 TYPO3 设置的时事通讯系统,我们必须为此创建一个新邮箱.但是,一个简单的就足够了:我们只分配了 Office 365 F1 许可证,而不是 Office 365 商业高级版.

                A customer of ours has a newsletter system set up with TYPO3 and we had to create a new mailbox for this. However, a light one will suffice: instead of a Office 365 Business Premium we only assigned a Office 365 F1 licence.

                还发现:Office365 共享邮箱可以使用 SMTP 吗?

                这篇关于我可以通过 Office365 共享邮箱发送 SMTP 电子邮件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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 列表框上的取消选择)
                  <bdo id='2fVji'></bdo><ul id='2fVji'></ul>

                    <tbody id='2fVji'></tbody>
                  <tfoot id='2fVji'></tfoot>

                  1. <small id='2fVji'></small><noframes id='2fVji'>

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