Jump to content

typec

Members
  • Posts

    1
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by typec

  1. USE SMTP this is made with c# using System; using System.Collections.Generic; using System.Text; using System.Net.Mail; using System.Net; class Program { static void Main(string[] args) { Console.WriteLine("Mail To"); MailAddress to = new MailAddress(Console.ReadLine()); Console.WriteLine("Mail From"); MailAddress from = new MailAddress(Console.ReadLine()); MailMessage mail = new MailMessage(from, to); Console.WriteLine("Subject"); mail.Subject = Console.ReadLine(); Console.WriteLine("Your Message"); mail.Body = Console.ReadLine(); SmtpClient smtp = new SmtpClient(); smtp.Host = "smtp.gmail.com"; smtp.Port = 587; smtp.Credentials = new NetworkCredential( "username@domain.com", "password"); smtp.EnableSsl = true; Console.WriteLine("Sending email..."); smtp.Send(mail); } }
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..