Email application in Ruby

I want to make an email application in ruby, and I made one, but it didn’t work. Do you guys know what I am doing wrong? Here is the source code:

require ‘net/smtp’

message = <<MESSAGE_END
From: Private Person
To: Enpro
Subject: SMTP e-mail test


Net::SMTP.start(‘’, 25, ‘localhost’, ‘’, ‘Censored’) do |smtp|
smtp.send_message message, ‘’,

Please, explain SMTP. Thanks.

smtp stands for simple mail transfer protocol. It is the standard of how emailing works. Here is a page on Wikipedia that explains it further:

You need to connect to the SMTP server, '' is not the server address, right? :slight_smile:

Documentation ->

Address of outlook SMTP server is