I've made the simpliest e-mail program in C#.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net.Mail;
namespace Sending_Email
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
try
{
SmtpClient client = new SmtpClient(sendServer.Text);
MailMessage message = new MailMessage(from.Text, to.Text);
client.Port = System.Convert.ToInt32(port.Text);
message.Subject = subj.Text;
message.Body = contentBox.Text;
client.Send(message);
}
catch (Exception ex)
{
MessageBox.Show("ERROR: " + ex.Message);
}
}
}
}
How it looks in practice:

Why it tells something about authentication? I was sure SMTP doesn't have it and the mail spoofing problem attest to this fact.
The error is the same with all SMTP servers, smtp.google.com was only an example.
Does it mean that now it's impossible to send fake emails, or I'am wrong?