Quick Ruby Email

Published 04 Nov 2007 | Under

Here's a tiny slice of ruby-on-rails code to send emails...

Net::SMTP.start('localhost') do |smtp|
smtp.send_message 'hello...', 'yourdomain.com', @user.email
end

Remember to setup your email server Postfix, which this guide will help you out.