HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Send an Email with Attachments in ASP.NET Core

36,930 views July 8, 2020 13:41

Watch on YouTube
ChannelCode Maze

Chapters

Description from the creator

►► Check out our courses: bit.ly/cdmz-courses
►► Support us on Patreon and get the source code: patreon.com/CodeMaze

IMPORTANT: We strongly suggest reading our article on this topic to see how to enable the Application password feature for Gmail to be able to send emails with less secure apps. You can't use your own passwords anymore as Google has blocked the usage of less secure apps in Gmail.

In this video, we are going to learn how to send an Email in ASP.NET Core. We are going to use synchronous and asynchronous ways to do that. Additionally, we are going to show you how to add attachments to the email message.

LINKS MENTIONED IN THE VIDEO:
To visit the whole article and download the source code visit:
►► code-maze.com/aspnetcore-send-email/
To visit our site:
►► code-maze.com/

FOLLOW US ON SOCIAL MEDIA!
►► linkedin.com/in/marinko-spasojevic/
►► twitter.com/CodeMazeBlog
►► facebook.com/CodeMazeBlog

VIDEO SUMMARY:
In this video, we are going to learn how to send an email in the ASP.NET Core application. We are going to start with the simple project creation and creating a basic email configuration. Once we finish that, we are going to install the required Mailkit library and create the logic to send email messages from ASP.NET Core.

We are going to show you both the synchronous and asynchronous ways to send email messages in ASP.NET Core and how to change the email body from plain text to pure HTML.

Finally, we are going to learn how to include attachments in the email message.

⏱️ Chapters
0:00 Intro
1:04 Project Setup and Configuration
3:03 Email Sender Interface and Class
6:28 Sending the First Email
8:03 HTML Body and Async Sending
10:17 Adding Email Attachments

About this tutorial

Code Maze published this 13:41 video tutorial on July 8, 2020. It has been watched 36,930 times on YouTube.

Channel
Code Maze
Category
Education
Duration
13:41
Published
July 8, 2020
Views
36,930
Likes
560

Share

This tutorial in other languages