Send Emails in C# and ASP.NET Core! - It´s actually pretty SIMPLE!

  Рет қаралды 93,838

tutorialsEU - C#

tutorialsEU - C#

Күн бұрын

Пікірлер: 72
@tutorialsEUC
@tutorialsEUC 2 жыл бұрын
🚀 C# Progress Academy - Become a senior C# developer: academy.tutorials.eu/p/csharp-progress-academy
@martaflru
@martaflru 4 ай бұрын
Hello, you forgot to post the link to the page with the code. I know you haven't read the other comments, but maybe you'll thank a little reminder. It would help many of us.
@cydoentis
@cydoentis 2 ай бұрын
A year later, and still too lazy to read comments or actually post the link lol.
@ghimireayuisha5888
@ghimireayuisha5888 Жыл бұрын
Awesome video. Exactly I watch your video on 1 year, after you uploaded.
@tinylittleanj2
@tinylittleanj2 11 ай бұрын
You sir, are a legend! Thank you :)
@sukanya.29728
@sukanya.29728 Жыл бұрын
hi sir i just want to know how to setup my outlook account for it. can i use this same way for send email via outlook..?
@oddikaro8236
@oddikaro8236 Жыл бұрын
Awesome, clean and to the point.
@reginahshikanda6478
@reginahshikanda6478 8 ай бұрын
Thank you so much for this!!
@alperkaya8919
@alperkaya8919 Жыл бұрын
It worked for me thank you man
@joyceannsicat9212
@joyceannsicat9212 Жыл бұрын
where did you see the link?
@SA-lm5yt
@SA-lm5yt 7 ай бұрын
SMTP server nasil kurdun
@CoderGeek-u6m
@CoderGeek-u6m 3 ай бұрын
I'm not seeing the link for the blog
@shahinbabayev4456
@shahinbabayev4456 2 жыл бұрын
I am getting this error "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 Client not authenticated to send mail"
@tutorialsEUC
@tutorialsEUC Жыл бұрын
Are you sure that you are using the correct SMTP port of the e-mail service? Usually that error means that you login information or SMTP config is wrong :)
@JoeMeyer8998
@JoeMeyer8998 Жыл бұрын
@@tutorialsEUC your app doesn't work. I think it's an authorization problem, the basic authentication doesn't work anymore with Microsoft, OAuth2 is required
@MrSurfsAlot
@MrSurfsAlot Жыл бұрын
@@JoeMeyer8998 Did you ever find out what the issue was? I receive the same error
@JoeMeyer8998
@JoeMeyer8998 Жыл бұрын
@@MrSurfsAlot No, I haven't
@sanjivkhare4139
@sanjivkhare4139 Жыл бұрын
me too
@GamesBR-qu6ip
@GamesBR-qu6ip 10 ай бұрын
Very Nice! thanks
@NguyenThanh-pj1hc
@NguyenThanh-pj1hc Жыл бұрын
thank you, it works
@rbsoliveira
@rbsoliveira 2 ай бұрын
Uma forma interessante seria criar uma fila em segundo plano e enviar, desta maneira sua aplicação não trava ao esperar o envio. Valeu pelo vídeo!!
@nareshkumarmm6244
@nareshkumarmm6244 Жыл бұрын
Thanks a lot man 🖖
@obaidashgran
@obaidashgran Жыл бұрын
thanks a lot man
@kriskata7653
@kriskata7653 Жыл бұрын
What I can do If I do not want to expose my password like this? If I have my application in production no developer would want their password visible in the code like this... Can you suggest an idea how to hide my password or authenticate another way?
@filiptrivan
@filiptrivan Жыл бұрын
use appsettings
@Sandman.886
@Sandman.886 Жыл бұрын
I think you can just declare a static variable with the password somewhere else and just call that variable instead of writting it
@kaasbaas9532
@kaasbaas9532 Жыл бұрын
Environment variables/secrets
@coding-gemini
@coding-gemini Жыл бұрын
User secrets / azure secrets / env variables
@lin1342-f1b
@lin1342-f1b 10 ай бұрын
sir how can I use TLS instead of SSL
@joseantoniosanchesgarcia9220
@joseantoniosanchesgarcia9220 Жыл бұрын
Hello bro, I got this error using the same configuration: The function requested is not supported, I am using mailTrap
@Daniel-tx6hx
@Daniel-tx6hx 5 ай бұрын
This is not the recommended approach because the username and password are exposed, and if the project is accessible to others, it is not practical. The recommended method is to send emails using the API-obtain a special key from Google or another provider, and everything else is quite similar.
@collinskiplagat6589
@collinskiplagat6589 2 ай бұрын
This is actually not true. This is actually the right approach. As for credentials being exposed, we could store them in environment variables.
@Daniel-tx6hx
@Daniel-tx6hx 2 ай бұрын
@@collinskiplagat6589 You are welcome to consult artificial intelligence and determine what is right and what is wrong
@johnkanekunga6668
@johnkanekunga6668 5 ай бұрын
Can you do another quick tutorial to receive emails?
@aniksaha244
@aniksaha244 Жыл бұрын
The server returned an invalid response to the EHLO command Getting this error , how to solve it will you please tell me?
@mohammedalherz4035
@mohammedalherz4035 Жыл бұрын
can i use that for OTP ?
@chotamulenga485
@chotamulenga485 6 ай бұрын
how can you hide the email and password from being in the source code?
@mazurkrl
@mazurkrl 3 ай бұрын
"The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 Client not authenticated to send mail. Error: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled." Idk why noone is pointing this out in the comments but basic authentication is apparently disabled since 2023 so this tutorial is outdated already
@gabrielfernandes8401
@gabrielfernandes8401 3 ай бұрын
This was working for me in September of 2024 (though I wasn't exposing the password in the code like this). But now I'm getting the same exact error about basic auth being disabled. Currently searching the internet for the new solution, but no luck yet.
@mazurkrl
@mazurkrl 3 ай бұрын
@@gabrielfernandes8401 I used google's smtp. But you do have to link your account with ur phone number and enable 2 step authentication. Then create app password and pass it in code instead of your regular password. Basically basic authentication but with some bs to do beforehand. Idk why all smtp services collectively disabled basic authentication. I dont want to set up whole azure portal link my credit card and authenticate with oauth2 for some small personal project xddd
@zat1245
@zat1245 Ай бұрын
I don’t understand your confusion. The error you posted says the problem. You are sending only basic authentication and the server you are sending to has basic authentication disabled. You just need to have your api use OAuth2. SmtpClient does not support this. You need to research using MailKit.
@deepakkaliprasad
@deepakkaliprasad Ай бұрын
facing the same issue. did you find answer for this ?
@zat1245
@zat1245 Ай бұрын
@@deepakkaliprasad The issue is listed in the error. The SMTP server you are connect to requires a secure connection and could not authenticate because basic authentication (passing the username and password raw) is diabled. So, it depends on the SMTP server you are using. Some allow you to turn off OAUTH2 authentication, some will provide you an app password to use in your apps, others will require you to create credentials to be used. So, find out what you need for yours and use MailKit instead as the basic one used here is deprecated
@mrtrader3661
@mrtrader3661 9 ай бұрын
How to use it for emails in database with API
@wolfgang5945
@wolfgang5945 11 ай бұрын
Is it limited to sending mail? After 1 time I still haven't been able to send mail anymore!
@overnine7602
@overnine7602 11 ай бұрын
Guess It depends on the SMPT Provider - in case of gmail, you can configure your account to be used in "unsecure apps" and still as they say, some email can be filtered anyway
@joegreen427
@joegreen427 Жыл бұрын
Um what if i dont want the email sent until someone registers a new account? And then verify it once the email is sent
@sabuwk12
@sabuwk12 Жыл бұрын
I’d assume you’d have to have some sort of database where you’d run a query to see registered emails. And check if a specific email is in your database. You then would perform that check and if it’s validated true then perform the email stuff in the video.
@Thorne991
@Thorne991 11 ай бұрын
Sorry, This one is pretty much click bait at this point. He speaks well but leaves out a bunch of "Other" code from what he shows and there is no source code to download. Just says "go to my free course" which has a money back guarantee.
@zat1245
@zat1245 Ай бұрын
And yet from this video I have copied the method he demonstrates and it works. Skill issue, champ. Maybe start with something less advanced.
@oilondabeats9011
@oilondabeats9011 11 ай бұрын
Hold on email paladin and how many of those emails u can send per day ?
@attilaguba856
@attilaguba856 3 ай бұрын
for example Gmail is 500/day , but better if you use SendGrid or etc!
@Wojbest_YT
@Wojbest_YT 5 ай бұрын
thanks now i can make malware that sends the malware from the host computer to their contacts
@located
@located Жыл бұрын
where is the link?
@Duelweb
@Duelweb Жыл бұрын
Exactly!! It does not exist. What a waste of time.
@berserkerzgz
@berserkerzgz Жыл бұрын
link to the code?
@chandrakantpatil4993
@chandrakantpatil4993 24 күн бұрын
code link
@vikrantkhairnar2
@vikrantkhairnar2 Жыл бұрын
Hello what if I want to save the message in draft instead of sending it
@aenon0
@aenon0 11 ай бұрын
live long and prosper😭😭
@Duelweb
@Duelweb Жыл бұрын
Don't you read your comments ? Where is the link ????????
@sibisuruthit9622
@sibisuruthit9622 11 ай бұрын
Be kind whenever u make a reply.
@Duelweb
@Duelweb 11 ай бұрын
@@sibisuruthit9622 There is no unkindness in this question. But more to the point is if we are going to give tutors our time (they make money off of us) then at least have the manners and respond. If you interpret my comment as unkind, perhaps you are overly sensitive 😀
@sibisuruthit9622
@sibisuruthit9622 11 ай бұрын
@@Duelweb if someone is a tutor to u, apart from money n time, u should give the respect. That is the basic manners
@syth6189
@syth6189 10 ай бұрын
@@sibisuruthit9622 Basic manners is them not wasting our time
@sibisuruthit9622
@sibisuruthit9622 10 ай бұрын
@@syth6189 of course it is. But there is always a way to convey anything.
@_HoangNguyenMinhPhuoc
@_HoangNguyenMinhPhuoc 9 ай бұрын
How to use the Repository Design Pattern in C# and ASP.NET
18:35
tutorialsEU - C#
Рет қаралды 14 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 321 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
How to send an email in C# with .NET using Mailkit
16:46
tutorialsEU
Рет қаралды 34 М.
Sending Emails in ASP.NET Core using Gmail | Quick, Free and Easy
9:46
Programming with Felipe Gavilan
Рет қаралды 2,3 М.
Send Email with a .NET 6 Web API using Mailkit & SMTP 📧
22:02
Patrick God
Рет қаралды 77 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 212 М.
ASP.NET Core Crash Course - C# App in One Hour
1:00:44
freeCodeCamp.org
Рет қаралды 1,6 МЛН
The Only .NET Scheduler You Should Be Using!
16:38
Nick Chapsas
Рет қаралды 60 М.
how to send email in asp.net mvc | MVC sending email
12:36
Haritha Computers & Technology
Рет қаралды 36 М.
Understand your C# queries! IEnumerable & IQueryable in explained
11:28
tutorialsEU - C#
Рет қаралды 42 М.
.NET and C# are in trouble. Here is what I'd do.
10:57
Ed Andersen
Рет қаралды 131 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН