e-mail provider : Email POP3 « Network « Ruby

e-mail provider

require 'net/smtp'

message = <<MESSAGE_END
From: Private Person <me@privacy.net>
To: Author of Beginning Ruby <test@rubyinside.com>
Subject: SMTP e-mail test

This is a test e-mail message.

Net::SMTP.start('mail.your-domain.com') do |smtp|
  smtp.send_message message, 'me@your.net', 'test@r.com'


Related examples in the same category

1.connect to a POP3 server to see if there are any messages available for download
2.Downloading all the mails is as simple as using the pop method for each Net::POPMail object:
3.To delete a mail
4.deletes messages if their subject contains the word "medicines":
5.Sending Mail with SMTP
6.specify port number
7.Send the mail directly to that user