Access Specifier
6
ADO .Net
3
Basics
16
Collections
1
Console
1
Date Functions
15
Delegates
1
File
7
Keywords
2
LINQ
1
Loops
1
Math Snippets
5
Memory Management
1
Operators
3
Reflection
2
Regular Expressions
3
String Functions
18
String Snippets
8
Threading
1
Type Casting
5
Close the sidebar
Log in
Sign Up
Appium
C
C#
C++
Docker
Go
Informatica
Java
JavaScript
Kafka
Numpy
Oracle
Pandas
PHP
Py Spark
Python
R
React Native
Scipy
SFTP
Tableau
Teradata
TGMC
UNIX
{{.}}
{{}}
{{.}} {{^results}}
{{#query}}Sorry! We don't ship to your city 😰{{/query}}
{{/results}}
Forget_Code.Models.CategoryViewModel
Add a new snippet
Access Specifier
6
ADO .Net
3
Basics
16
Collections
1
Console
1
Date Functions
15
Delegates
1
File
7
Keywords
2
LINQ
1
Loops
1
Math Snippets
5
Memory Management
1
Operators
3
Reflection
2
Regular Expressions
3
String Functions
18
String Snippets
8
Threading
1
Type Casting
5
Choose Category
Attach file to Email in C#
Forget Code
C#
Attach file to Email
var filePath = HttpContext.Current.Server.MapPath(fileToSend);
if (File.Exists(filePath))
{
message.Attachments.Add(new Attachment(filePath));
}
Tags for Attach file to Email in C#
attachment
Contribute to Forget Code, help others.
Add snippet