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.
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.