How to Send Email From C# Application

7
1



How to Send Email From your c# application with a file attachment and HTML body.

In Order to Send Email via Smtp We need SMTP settings for sender email service provider,

The video discusses the following points
– Send Mail Using SMTP settings from c#
– How to attach files to your mail

Smtp Setting For Gmail and Yahoo

Gmail
smtp server : smtp.gmail.com
Port : 587
SSL : required

Yahoo
SMTP server: smtp.mail.yahoo.com
Port: 587
SSL: required

📖 Best C# Book from Amazon (Affiliate)

Download Demo Project

☕ Buy me a Coffee (Channel Support through Donation)

Subscribe to this channel Link to this video
➤ ➤

________________ 🌀 Related Videos __________________
: Similar Mvc Tutorials
: Similar C# Video Tutorials

________________ 🌟 About this Channel ______________
CodAffection – [ New videos every Monday at 12:30 PM UTC. ].
This channel is all about teaching and motivating software developers to build applications/ websites in various technologies/ programming languages like Angular, NodeJS, Asp.Net, C#, JavaScript, SQL, Python, etc.

________________ 🔗 Social Media Links ______________
Blog :
Facebook :
Twitter :
Youtube :

________________ 📚 Most Recommended Books _______
Code Complete(2nd Edition) :
The Art of Computer Programming :
Clean Code :
Design Patterns :
The Pragmatic Programmer :

________________ 💰 Purchase for Developers _________
💻 Laptops
MacBook Air :
Dell XPS 9570 :
ASUS ZenBook 13 :
Lenovo Ideapad :
⌨️ Keyboard : Das 4 Professional :
🖱️ Mouse : VicTsing :
🎧 Headphone : Mpow 059 Bluetooth :

________________ 🎬 All Playlist _______________________
: Angular
: Asp.Net Core
: Node JS
: Asp.Net MVC
: Web API
: MEAN Stack
: C# Tutorial
: Asp.Net WebForm
: C# WinForm
: MS SQL
: Crystal Report
: Common C# Excercises
: CG Exercises in C Program

#CSharpTutorial #CodAffection #CodAffectionCSharpTutorial

Nguồn:https://wijstaanvooronzegrondrechten.org/

7 COMMENTS

  1. https://goo.gl/RFY5C2 : Subscribe to CodAffection
    https://goo.gl/WsgPbp : C# User Registration With DB
    https://goo.gl/Z6SkSC : C# CRUD Operations With DB
    https://goo.gl/NhNQeZ : Export Excel in C# Applications

  2. we are getting thr following error….

    Send_Mail_Toclient

    Failure sending mail.

    at System.Net.Mail.SmtpClient.Send(MailMessage message) Can anyone help in?

LEAVE A REPLY

Please enter your comment!
Please enter your name here