Sep 28 2020
03:14 AM
- last edited on
Feb 01 2023
12:41 PM
by
TechCommunityAP
Sep 28 2020
03:14 AM
- last edited on
Feb 01 2023
12:41 PM
by
TechCommunityAP
Hi.
What I am trying to do is set up the MFA and send email using the SMTP function.
I installed the Authenticator app and completed the MFA setup for my personal account. I didn't set anything else. In this case, I can send an email using SMTP.
The problem I thought, because of setting up MFA, I thought I wouldn't be able to use SMTP. Or thought additional certification would be necessary. But there was no such problem.
Is there no problem because I tested it with my personal account?
Or is the use of MFA and SMTP irrelevant?
Here is SMTP test code:
Sep 28 2020 04:42 AM
@Seyoon_Park Hi, as far as I know you should be prompted for an app password when enabling MFA using smtp. Not sure what you're trying to do but sounds like something similar to this? https://docs.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-dev...
Sep 28 2020 09:32 AM
You cannot just reuse old code for this, you need to leverage OAuth: https://techcommunity.microsoft.com/t5/exchange-team-blog/announcing-oauth-2-0-support-for-imap-and-...
Sep 28 2020 10:46 AM
Sep 28 2020 05:50 PM
I read the article you linked. However, it is about SMTP and Exchange Online. All l'm trying to do is send an email using SMTP and end it. Is this related to Exchange Online?
I don't think it's relevant.
Sep 28 2020 05:57 PM
As you said, when I complete the MFA setup, a pop-up will pop up asking me to enter my app password when I log in. However, when sending an email using SMTP in code, no pop-up occurs.
I have read the article you linked, but this is also related to exchange online. What I don't understand now is what SMTP and Exchange Online have to do with it.
Can I know what Exchange Online and SMTP have to do with it?
Sep 28 2020 11:29 PM
@Seyoon_Park Hello, well according to your attached info you're using SMTP with the setting smtp.office365.com (online) to send, so would you mind elaborate what you're trying to accomplish and how your environment is set up.
Oct 05 2020 12:12 AM
@ChristianBergstrom Hello,
Trying to accomplish:
1. Set up MFA in my account.
2. To find out if MFA has no effect on SMTP.
3. I thought setting MFA would require additional settings for SMTP, but it didn't matter at all, so I'm asking because it's werid.
My environment:
1. There is nothing but the MFA setting and the code above.