question

PPCMD-9649 avatar image
0 Votes"
PPCMD-9649 asked PPCMD-9649 commented

Where is the Services folder in a .NET Core Razor Pages App?

I am trying to implement email functionality on my new .NET Core Website as per this page:

https://docs.microsoft.com/en-us/aspnet/core/security/authentication/accconfirm. However, I cannot find a folder named 'Services' anywhere in my project. How should I proceed and should I create a folder with that name?

dotnet-aspnet-core-blazordotnet-aspnet-core-webapidotnet-aspnet-core-auth
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

should I create a folder with that name?

Yes. That's how I understand the instructions.

1 Vote 1 ·

Thanks. That did it.

0 Votes 0 ·

1 Answer

JasonPan-MSFT avatar image
1 Vote"
JasonPan-MSFT answered PPCMD-9649 commented

Hi @PPCMD-9649

Welcome to Q&A, we can't find Services folder in your project. If you want use it, you can create a new one like the source code.

224187-image.png

And I suggest you can learn Scaffold Identity in ASP.NET Core projects first. It will help you to learn this template clearly.

224176-image.png

In the document you provided, we need EmailSender.cs and IEmailSender.cs, it show us how to use it manually. In Scaffold Identity, you can override the template pages easily and also can use EmailSender. EmailSender is integrated in the framework.


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Best Regards,
Jason



image.png (32.2 KiB)
image.png (187.9 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks. It worked.

0 Votes 0 ·