require ‘net/smtp’
message = <<MESSAGE_END
From: Private P. [email protected]
To: A Test User [email protected]
Subject: SMTP e-mail test
This is a test e-mail message.
MESSAGE_END
Net::SMTP.start(‘localhost’) do |smtp|
smtp.send_message message, ‘[email protected]’,
‘[email protected]’
end
It will pop up the error message : email.rb:11:in `':
uninitialized constant Net (NameError)
How can I fix it?