Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Send Hotmail/Outlook Email C# (Win/ASP.NET)

SmtpClient SmtpServer = new SmtpClient("smtp.live.com");
var mail = new MailMessage();
mail.From = new MailAddress("youremail@hotmail.com");
mail.To.Add("to@gmail.com");
mail.Subject = "Test Mail - 1";
mail.IsBodyHtml = true;
string htmlBody;
htmlBody = "Write some HTML code here";
mail.Body = htmlBody;
SmtpServer.Port = 587;
SmtpServer.UseDefaultCredentials = false;
SmtpServer.Credentials = new System.Net.NetworkCredential("youremail@hotmail.com", "password");
SmtpServer.EnableSsl = true;
SmtpServer.Send(mail);
Comment

PREVIOUS NEXT
Code Example
Csharp :: save position unity 
Csharp :: persian datapicker 
Csharp :: how to find length of list c# 
Csharp :: spin with rigidbody 2d unity 
Csharp :: link form to a button in dashbord visual c# 
Csharp :: how to create a blazor client-side application in a command-line interface 
Csharp :: c# create a dummy class 
Csharp :: extension method in c# 
Csharp :: unity rollaball 
Csharp :: Show empty message in data table angular material, If no data found 
Csharp :: Advertisement code for unity 
Csharp :: dictionaries in unity 
Csharp :: unity get distance between line and point 
Csharp :: unity2d switch camera 
Csharp :: reference a class by string unity 
Csharp :: entityframework index 
Csharp :: Get logged in user in ASP.Net 
Csharp :: wpf listbox binding change style of selected item 
Csharp :: c# datagridview cell align center 
Csharp :: create list of strings from field of list of object c# 
Csharp :: select from list where not in other list c# 
Csharp :: how to get properties from json in c# 
Csharp :: c# mysql select into datatable 
Csharp :: set background from C# wpf 
Csharp :: dbset properties 
Csharp :: ado stands for 
Csharp :: static property in c# 
Csharp :: flyt wordpress fra localserver 
Csharp :: csharp attributes as generics constraints 
Csharp :: c# bool? to bool 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =