How to send an email in C# with .NET using Mailkit

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

Комментарии • 50

  • @tutorialsEU
    @tutorialsEU  3 года назад +4

    🔥FREE! Join our All-Access subscription to get access to all of our premium courses including the C# Masterclass and C# ASP NET Course: bit.ly/3RaL3Jm

  • @darwinluna
    @darwinluna 2 года назад +2

    Easy to follow and worked on the first try.

  • @mikedennis471
    @mikedennis471 2 года назад +2

    Excellent instructions, thank you so much for putting this video together. It solved my emailing problems.

  • @dhliu9687
    @dhliu9687 2 года назад +2

    Hi Sir ! I will try this out later. Give you thumb up first , very clear , nice explanation !!! Awesome

  • @evangelosvlachos1827
    @evangelosvlachos1827 2 года назад +2

    Good content, good description! Well done

  • @naveenkumarm2282
    @naveenkumarm2282 Год назад

    Very Usefull video Brother Greetings from India

  • @somehappyguy6598
    @somehappyguy6598 3 года назад +1

    Thanks Denis, great explanation!

  • @Ngonirow007
    @Ngonirow007 2 года назад +2

    My question now is how to send emails to clients that would have 2FA enabled and less secure app access turned off, that is when the API is now in production?

  • @JanKowalski-ld4ec
    @JanKowalski-ld4ec Год назад +1

    Very useful video, thanks a lot! Can you also make a video on schedule based email sending (i.e. monthly)? Thanks in advance!

  • @rajattoppo2407
    @rajattoppo2407 2 года назад +2

    well this is working in localhost but when published in server client.connect throwing exceptions any solution ??

  • @dilshansaga90
    @dilshansaga90 Год назад

    Great Video.

  • @ChandanYadav-cu7ox
    @ChandanYadav-cu7ox 3 года назад

    Thanks bro ,I love this content

  • @WaheedRafiq
    @WaheedRafiq 3 года назад

    wow it works for me and well explains dyslexic friendly nice and slow pace well done

  • @attilaguba856
    @attilaguba856 3 года назад +4

    Great! Thanks! Can you make an email sender with MVC 5 as well ! Would be appreciated! /

  • @aryanshah3354
    @aryanshah3354 3 года назад

    Thanks so much, this was so helpful

  • @sergeyt4118
    @sergeyt4118 3 года назад

    Thanks Denis!

  • @jorge-garces
    @jorge-garces 2 года назад

    Hello, do you have a example with Office 365 with modern authentication?

  • @TheoEkelmans
    @TheoEkelmans 7 месяцев назад

    Thanks :) !

  • @MauriceBoulard
    @MauriceBoulard 2 года назад +3

    from May 30th 2022 due to new policy of Google , this way to send messages to Gmail doesn't work anymore

    • @ppjjgg
      @ppjjgg 2 года назад

      me too.... i wanna get solution please

    • @hampus3699
      @hampus3699 2 года назад

      did you get any solution

  • @Zisane21
    @Zisane21 5 месяцев назад

    Do I really need to authenticate and disconnect at every request? What If I need to send 100 emails in bulk? How long will the client retain the connection once authenticated?

  • @demogamer6019
    @demogamer6019 2 года назад

    Good Video Bro, Use library protocol TLS 1.2?

  • @someshchandra651
    @someshchandra651 2 года назад

    Turing on "Less Secure app access" option is not available any more. Any alternate?

  • @naisargitrivedi3565
    @naisargitrivedi3565 2 года назад

    does this code also works with asp.net core 6 mvc or need to make any changes?

  • @ilyadudorov2573
    @ilyadudorov2573 3 года назад

    Thank you very much for such a useful guide, greetings from Russia 😀

  • @mikeafter5
    @mikeafter5 2 года назад

    Thanks!

  • @renedemontbrun2749
    @renedemontbrun2749 2 года назад +6

    You can no longer turn the Less Secure App Access On (new Google Mail policy), so none of this code will work.

    • @barnabas_666
      @barnabas_666 Год назад

      Its working if you use method described by @RealDude in comments below.

    • @NHGeneral
      @NHGeneral 11 месяцев назад

      @@barnabas_666 nope, it was changed again.

  • @ap207
    @ap207 2 года назад

    Why in my c sharp says mailkit and mimekit are not necessary directories and in the reference I can't find them??

  • @charliemiller3884
    @charliemiller3884 2 года назад +2

    Google now requires a more complex sign in method. Can you do a video on how to do that?

    • @dhliu9687
      @dhliu9687 2 года назад

      Less secure app access is not support ? I got this question today Oppos

  • @dhliu9687
    @dhliu9687 2 года назад

    Nice video sir, but got problem "Google disable the function [Less secure app access]", could you advice, thanks in advance!

  • @kokeservices
    @kokeservices Год назад

    Can you redo a video like this one using the N-Tier Architecture...

  • @Kiolesis
    @Kiolesis 3 года назад

    Cool Video! 😀

  • @attilaguba856
    @attilaguba856 3 года назад

    Great Tutorials ! So I've tried it and works fine except message.Body stuff , it's got an issue with the Text .

  • @ahmedmourad309
    @ahmedmourad309 3 года назад

    I am using it as api and angular it works well in localhost but return cors error when deploy api Although i enabled cors for all requests and other requests works well but sending email error with cors any help please sir?

  • @Farrael2
    @Farrael2 2 года назад

    How to add attachment using MailKit ?

  • @Habesha_Today
    @Habesha_Today 2 года назад

    bro please can you do an absolute beginner video on .NET Framework in C# and some projects pleaseeeeeeeeeeeeeee!!!!!!!!!! and I really appreciate all the things ur are doing👏👏👏👏

  • @stepbackandthink
    @stepbackandthink Год назад +1

    Can't use gmail anymore.

  • @DP-ee6qv
    @DP-ee6qv 3 года назад

    Hello , i want your game project file for learning perpose. I want to import your game project file in unity and want to see its code/machanics/ui/logics etc. Please share your game project file ☺️

  • @fandtm8054
    @fandtm8054 3 года назад

    Hello brother 🙏 Can u make detailed videos on C# Basics covering all topics with proper examples for beginners ❤️

    • @tutorialsEU
      @tutorialsEU  3 года назад

      Hi; please check out the channel, we have loads of C# topics for beginners! + For more detailed and structured way please check out our Udemy courses

    • @tutorialsEU
      @tutorialsEU  3 года назад

      @@parthbhadauria9517 Thanks! We indeed have a lot of things covered both here and on Udemy ;)

    • @richardmeyer418
      @richardmeyer418 3 года назад +1

      He has made some amazing videos and has a course on Udemy (udemy.com) called C# masterclass - it's really great - I can't remember how many people have given feedback, but it's a lot and the responses hover around 5 stars. Well worth the price - I'm trying to get through the Unity portion at the moment ...

    • @tutorialsEU
      @tutorialsEU  3 года назад

      @@richardmeyer418 Hey Richard, thanks for the feedback and good luck!

  • @ThaoMeoTV
    @ThaoMeoTV 2 года назад

    You are spider man