Skip to content

Instantly share code, notes, and snippets.

View claudiohilario's full-sized avatar
🎯
Focusing

Cláudio Hilário claudiohilario

🎯
Focusing
  • Guarda, Portugal
View GitHub Profile
@claudiohilario
claudiohilario / EnviarEmail.cs
Created January 16, 2016 02:02
Função EnviarEmail C# (ASP.NET)
public bool EnviarEmail(string destinatario, string assunto, string mensagem)
{
try
{
var email = "[email protected]";
var smtp = new System.Net.Mail.SmtpClient();
{
smtp.Host = "xxxxx.xxxxx.xxx"; //Servidor SMTP
smtp.Port = 25;
smtp.EnableSsl = true;