https://myaccount.google.com/lesssecureapps -> Allow apps that use less secure sign-in
var Sender = new GMailSender("yourmail@gmail.com", "password");
Sender.Failed += () => Console.WriteLine("Failed");
Sender.Sended += () => Console.WriteLine("Sended");
Sender.SendAsync("Title", "Message", "recipient@anymail.com", Attachment.FromFile(@"Photo.jpg"));
Console.ReadKey();
AOL, Mail(mail.com), Outlook, Yahoo, Yandex, Zoho
public sealed class YellowMailSender : Sender
{
#region Constructors
public YellowMailSender(string Login, string Password)
: base(587, "smtp.yellow-mail.com", Login, Password)
{ }
#endregion
}
Account Security -> Allow apps that use less secure sign-in
https://myaccount.google.com/lesssecureapps -> Allow apps that use less secure sign-in
you do not have to do anything
account must be registered / validated
Account Security -> Allow apps that use less secure sign-in
you do not have to do anything
you do not have to do anything