Hi There,
Anyone know of a nice basic way to send an email in ruby on rails?
I’m thinking of allowing my site members to reccomend/invite friends
by entering their email address and hitting send.
At a guess, to begin with I think i’d need:
def message(mail)
subject mail[:message].subject
from ‘someone’
recipients mail[:recipient].email
body mail
end
then a message page, which is displayed to the user in the email
invitation they receive: similar to:
<%= @user.name %> at site ABC123 thinks you should check out this
site:
site name and url here…
Is there a way to implement this in a nice easy way, ensuring that a
user can log in, enter a friend’s email address, send it and their
friend recieve the invite?
cheers