Send mail from Dot NET Core Web API with attachments | .NET 7.0 mail sending using mailkit
ฝัง
- เผยแพร่เมื่อ 21 ม.ค. 2025
- #dotnet7 #webapi #nihiratechiees #mailkit
This video explains sending mail from dot net core 7.0 web API
It covers below scenarios
1, Send mail with plain text.
2, Send mail with html content
3, Send mail with attachment
4, Send mail with multiple attachment
Package used
-------------------------
MimeKit
MailKit
GitHub Source code link
=====================
github.com/nih...
Join this channel to get access to perks:
/ @nihiratechiees
wow, you did a good job bro, my program worked smoothly which I could not see in any other channels
Glad to hear
Hey really huge huge huge thanks for creating this video. ❣
Great👍
very very useful sir..Thank you so much
You are most welcome
Hello, the video is much appreciated. Gracias🙏
Thanks
I have a problem when importing image into "src" of img tag, I want to take the imge in localhost then show it in body of html when sending email, how can I do that?
Provide image url in the src
MailKit.Security.SslHandshakeException: An error occurred while attempting to establish an SSL or TLS connection.
Help?
Use tls
the response is 200ok but mail didn't reach at the mail why ??
Also check spam folder
thankyou for reply i checked spam folder
but it didn't seen
@@NihiraTechiees
how to read the email and save the text file ..?
nice video sir, thanks!
Thanks 🤝
what if we want to use office365 smtp config what will be the changes for the existing code
Let me check and let you know
very useful video
Glad you think so!
Good one
Thanks
I'm getting runtime error on smtp.Connect , not sure why
Could you share the error message
response 200 but mail didn't reach ??
Just debug see step by step whether it's breaking somewhere.
Thank you
Welcome 👍
but how to do this without hardcoding...can you give me any examples..please
Email conten( body) ?
If you encounter the error "An attempt to establish a connection was unsuccessful because the connected party did not respond properly, or the established connection was broken due to a wrong response from the connected computer," try using SSL instead of StartTLS and change the port to 465.
Thanks for sharing knowledge👍
You save me today :)
Glad to hear👍
Thanks
Welcome
email content, i want to send mail to multiple user...in properties i want to add attachment also
Will create separate video for that
@@NihiraTechiees Just do it ,I'm in need of that
❤
👍
Good content bro in same way phone notifications how ?
Let's cover future videos
@@NihiraTechiees waiting bro
body also
👍
Good one but u make this video too late.
Yes bro, similar scenario came in my task. So did some research. That concept I am just sharing