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

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 51

  • @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.

  • @tinkusingh455
    @tinkusingh455 4 години тому

    Really appreciated your teaching, you are amazing. it is working

  • @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

  • @somehappyguy6598
    @somehappyguy6598 3 роки тому +1

    Thanks Denis, great explanation!

  • @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!

  • @naveenkumarm2282
    @naveenkumarm2282 Рік тому

    Very Usefull video Brother Greetings from India

  • @WaheedRafiq
    @WaheedRafiq 3 роки тому

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

  • @ChandanYadav-cu7ox
    @ChandanYadav-cu7ox 3 роки тому

    Thanks bro ,I love this content

  • @aryanshah3354
    @aryanshah3354 3 роки тому

    Thanks so much, this was so helpful

  • @dilshansaga90
    @dilshansaga90 Рік тому

    Great Video.

  • @attilaguba856
    @attilaguba856 3 роки тому +4

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

  • @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?

  • @rajattoppo2407
    @rajattoppo2407 2 роки тому +2

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

  • @ilyadudorov2573
    @ilyadudorov2573 3 роки тому

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

  • @sergeyt4118
    @sergeyt4118 3 роки тому

    Thanks Denis!

  • @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

  • @demogamer6019
    @demogamer6019 2 роки тому

    Good Video Bro, Use library protocol TLS 1.2?

  • @TheoEkelmans
    @TheoEkelmans 7 місяців тому

    Thanks :) !

  • @mikeafter5
    @mikeafter5 2 роки тому

    Thanks!

  • @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

  • @jorge-garces
    @jorge-garces 2 роки тому

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

  • @Kiolesis
    @Kiolesis 3 роки тому

    Cool Video! 😀

  • @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?

  • @Zisane21
    @Zisane21 6 місяців тому

    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?

  • @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??

  • @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👏👏👏👏

  • @dhliu9687
    @dhliu9687 2 роки тому

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

  • @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 .

  • @kokeservices
    @kokeservices Рік тому

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

  • @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 Рік тому

      @@barnabas_666 nope, it was changed again.

  • @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 ?

  • @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!

  • @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 ☺️

  • @stepbackandthink
    @stepbackandthink Рік тому +1

    Can't use gmail anymore.

  • @ThaoMeoTV
    @ThaoMeoTV 2 роки тому

    You are spider man