[C# Winforms] Email Application (Send & Receive)

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

КОМЕНТАРІ • 78

  • @DarrenLeeCSharp
    @DarrenLeeCSharp  5 років тому +10

    If you are getting this error, "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1", try the following methods below
    1) Ensure that your network does not block your application
    2) Go to Gmail Settings > Forwarding and POP/IMAP > IMAP Access > Enable IMAP
    3) Go to Google Account > Security > Less secure app access > On
    If the above still doesnt work, try changing to stronger password.
    Hope this helps!

    • @SOFCsquad
      @SOFCsquad 4 роки тому

      i get this S22.Imap.InvalidCredentialsException
      HResult=0x80131500
      Message=xm001 NO Empty username or password. f9mb46014454wrw
      Source=S22.Imap
      StackTrace:
      at S22.Imap.ImapClient.Login(String username, String password, AuthMethod method)
      at S22.Imap.ImapClient..ctor(String hostname, Int32 port, String username, String password, AuthMethod method, Boolean ssl, RemoteCertificateValidationCallback validate)
      at WindowsFormsApp1.Form2.b__7_0() in C:\Users\oser\Desktop\Log On\WindowsFormsApp1\Form2.cs:line 70
      at System.Threading.Tasks.Task.InnerInvoke()
      at System.Threading.Tasks.Task.Execute()
      can you help? @Darren Lee

  • @hotechmanager
    @hotechmanager 5 років тому

    Can't explain, How much i am blessing you ..

  • @liyinbei
    @liyinbei 7 років тому +2

    Glad to see you are back to coding ! All the best

  • @shaharukhpathan5331
    @shaharukhpathan5331 5 років тому

    I like your way of teaching

  • @oluwaseunjoto6087
    @oluwaseunjoto6087 4 роки тому

    Thanks bro! God bless you.

  • @platinumlagg
    @platinumlagg 6 років тому

    Banging tune!!

  • @madraven37
    @madraven37 4 роки тому

    thank you very much!!

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

    thanks to so much...

  • @tedbobit2762
    @tedbobit2762 5 років тому

    Thanks very much ! Big like man ...

  • @modexl61
    @modexl61 6 років тому

    thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu

  • @galrose7165
    @galrose7165 7 років тому

    Nice tutorial Darren, the problem with the code is that it doesn't cover disconnections - if you disconnect for a second then from that moment on the connection is lost and it won't continue receiving. I'm looking to find an elegant solution for that now.

  • @DblessinnovativetechBlogspot
    @DblessinnovativetechBlogspot 7 років тому

    Good one Darren, Thanks

    • @DarrenLeeCSharp
      @DarrenLeeCSharp  7 років тому +1

      Hey there, i remembered you commented on my other video a very long time ago! Thank you for your continuous support :-) Happy coding!
      Darren

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

    how to download attachement ? can you please help me out in this scenarion
    I have sent attachment by edit this. but unable to receive attachement. please help me out anybody. your response will be highly appreciated.

  • @edritchey7648
    @edritchey7648 7 років тому

    I'm getting errors. The first error was fixed by changing the port to 465. I got that fix at stack overflow. The second error was fixed by changing my settings at google by allowing less secure apps but I am still getting an error at mailer.Send(message); the message part inside the parenthesis is lit up in yellow.

    • @hajarbachar1452
      @hajarbachar1452 7 років тому

      thisi a good tuto for send and receive messages vializer.com/2ayt

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

    i know this is very old but when i try to get body it comes with html tag how can i remove these html tags?

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

    New version off this app with cooler design please , nice vidoe

  • @markjervinvillanueva4595
    @markjervinvillanueva4595 7 років тому +2

    how to save the receive email on the richtextbox?

  • @brandonbill4389
    @brandonbill4389 7 років тому

    A socket operation was attempted to an unreachable network i got this error in receiving

  • @davidliptak2684
    @davidliptak2684 7 років тому

    Hi, can you tell me what I should do if it writes me this:
    Error1 The name 'txtEmail' does not exist in the current context
    and there are other errors with similar problem.

  • @jonaselias2404
    @jonaselias2404 6 років тому

    Thanks bro

  • @ishtiaqhussain4370
    @ishtiaqhussain4370 6 років тому +1

    error, is there anyone how can help me....
    "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required."

    • @ErCapoAlex
      @ErCapoAlex 6 років тому

      I think It works just for IMAP :)

  • @compasd1470
    @compasd1470 4 роки тому

    Good program
    How download attachment email imap

  • @johncarlocamangian8675
    @johncarlocamangian8675 7 років тому

    Thank for this tutorial but I get this error . how can i fix this ?
    The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at

    • @galrose7165
      @galrose7165 7 років тому

      check out the accepted answer in this link:
      stackoverflow.com/questions/29465096/how-to-send-an-e-mail-with-c-sharp-through-gmail
      If still not resolved:
      stackoverflow.com/questions/704636/sending-email-through-gmail-smtp-server-with-c-sharp/9572958#9572958

  • @tabos1233
    @tabos1233 6 років тому

    it's said "server dose not support IMAP IDE"

  • @healthchamps8096
    @healthchamps8096 4 роки тому

    Nice bro.. really nice work... Can i contact u

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

    please link the source code

  • @ashutoshpriyadershi5157
    @ashutoshpriyadershi5157 6 років тому

    Please tell me, how can I save the attachement to disk?

  • @fernandomacotto1997
    @fernandomacotto1997 5 років тому

    hello my master..
    your dll receives embedded image

  • @DEVLETADAMI
    @DEVLETADAMI 6 років тому

    Hello thank you for this tutorial.
    I dont want to one receive mail. I want to all received mail box. How can I do?
    I tried e.Client.GetMessageS but it doesnt get it

    • @asciidude
      @asciidude 6 років тому +1

      e.Client.GetMessage - try that

  • @nishikallychurm9479
    @nishikallychurm9479 7 років тому

    Nice video :) i'm getting an error: Non-invocable member 'EventHandler' cannot be used like a method. But i have put the email address and password in the code as I am expected to do it like this. Its urgent...

    • @DarrenLeeCSharp
      @DarrenLeeCSharp  7 років тому +1

      Did you copy the code exactly? Or did you made some adjustments? Leave me your email if you need the source code :-) Cheers!

    • @aydl_
      @aydl_ 5 років тому

      @@DarrenLeeCSharp i need it for my project 🌹

  • @SalahAli007
    @SalahAli007 5 років тому

    hallo, can you send me the code i will be thankfull

  • @adilkevin6220
    @adilkevin6220 6 років тому

    Please create complete Gmail like application

  • @ComputerTechBoss
    @ComputerTechBoss 7 років тому

    Hey, great vid. Thanks. Can you please provide the source code to this. I've copied it all and built it successfully, however when running it at this line
    mailer.Send(message);
    I get this error message: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required

    • @DarrenLeeCSharp
      @DarrenLeeCSharp  7 років тому

      +ComputerTechBoss are you logged into your email account on your web browser? Hope this helps! Cheers!

    • @DarrenLeeCSharp
      @DarrenLeeCSharp  7 років тому

      +ComputerTechBoss if its still not working, please tell me your email and i'll send it to yoh. No worries :-)

    • @faizanhanif653
      @faizanhanif653 7 років тому

      Plz send me source code at faizan.techies61@gmail.com

    • @TheCrow_Airsoft
      @TheCrow_Airsoft 6 років тому

      Hello Darren Lee. I was wondering if there was a way to load the whole inbox within the textbox on the right? please help me out :)

  • @Brightside_Highlights
    @Brightside_Highlights 7 років тому

    Warning! The DLL is a trojaner!

    • @Brightside_Highlights
      @Brightside_Highlights 6 років тому

      the Ghost Earth kaspersky detected. You dont need the dll

    • @alanuntrauer6065
      @alanuntrauer6065 6 років тому

      Hes right ive also verified it as a trojan.

    • @Brightside_Highlights
      @Brightside_Highlights 6 років тому +1

      My Kaspersky Total Security detected it as a trojan. I trust my antivirus software

    • @alanuntrauer6065
      @alanuntrauer6065 6 років тому

      You have to look deeper.. he can run the dll through a crypter which hides the malicious code from AVs basically encrypts it, when you run the program it will open a reader app on (w8.1) and if you try to open the folder of its location it will say premission denied and im an ADMIN on my pc so thats a reg edit which is only caused from trojans. And after i run the app it added a process (Te.service

    • @alanuntrauer6065
      @alanuntrauer6065 6 років тому

      It added a (Te.service) to msconfig which i didnt add and its not a legit windows process. Im telling you its not legit and unsafe, also when you scan it on virus total or metascan SWATop go look at the parent archive it shows 6/40 detected as trojan

  • @alanuntrauer6065
    @alanuntrauer6065 6 років тому

    Dont download the mediafire, use this DLL: github.com/smiley22/S22.Imap

  • @madwolfgames
    @madwolfgames 7 років тому

    Doesnt work.

    • @hajarbachar1452
      @hajarbachar1452 7 років тому

      thisi a good tuto for send and receive messages vializer.com/2ayt

  • @firzamuhammad1717
    @firzamuhammad1717 6 років тому

    gabisa tai

  • @ishtiaqhussain4370
    @ishtiaqhussain4370 6 років тому

    error, is there anyone how can help me....
    "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required."