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

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 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

  • @mikedennis471
    @mikedennis471 2 ปีที่แล้ว +2

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

  • @darwinluna
    @darwinluna 2 ปีที่แล้ว +2

    Easy to follow and worked on the first try.

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

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

  • @somehappyguy6598
    @somehappyguy6598 2 ปีที่แล้ว +1

    Thanks Denis, great explanation!

  • @WaheedRafiq
    @WaheedRafiq 3 ปีที่แล้ว

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

  • @demogamer6019
    @demogamer6019 2 ปีที่แล้ว

    Good Video Bro, Use library protocol TLS 1.2?

  • @dilshansaga90
    @dilshansaga90 ปีที่แล้ว

    Great Video.

  • @ChandanYadav-cu7ox
    @ChandanYadav-cu7ox 3 ปีที่แล้ว

    Thanks bro ,I love this content

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

  • @ilyadudorov2573
    @ilyadudorov2573 3 ปีที่แล้ว

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

  • @jorge-garces
    @jorge-garces 2 ปีที่แล้ว

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

  • @TheoEkelmans
    @TheoEkelmans 6 หลายเดือนก่อน

    Thanks :) !

  • @mikeafter5
    @mikeafter5 2 ปีที่แล้ว

    Thanks!

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

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

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

  • @dhliu9687
    @dhliu9687 2 ปีที่แล้ว

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

  • @rajattoppo2407
    @rajattoppo2407 2 ปีที่แล้ว +2

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

  • @kokeservices
    @kokeservices ปีที่แล้ว

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

  • @Kiolesis
    @Kiolesis 3 ปีที่แล้ว

    Cool Video! 😀

    • @tutorialsEU
      @tutorialsEU  3 ปีที่แล้ว

      Thanks for the visit

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

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

  • @Zisane21
    @Zisane21 4 หลายเดือนก่อน

    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?

  • @naisargitrivedi3565
    @naisargitrivedi3565 2 ปีที่แล้ว

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

  • @someshchandra651
    @someshchandra651 2 ปีที่แล้ว

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

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

  • @Farrael2
    @Farrael2 2 ปีที่แล้ว

    How to add attachment using MailKit ?

  • @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 10 หลายเดือนก่อน

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

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

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

  • @ThaoMeoTV
    @ThaoMeoTV 2 ปีที่แล้ว

    You are spider man