Base solution for your next web application
Open Closed

sending email at user login #9003


User avatar
0
CNS created

Hi, i want to send email to admin whin any user logged in . if anyone have idea about this please share with me i am using asp.net core and angular,


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can inject IEmailSender into your TokenAuthController and send an email using it in the Authenticate method.

  • User Avatar
    0
    CNS created

    thanks ismcagdas. its very helpful