Guideline for email setup scenario

0 views
Skip to first unread message

kevin lee

unread,
Sep 19, 2009, 1:04:14 AM9/19/09
to rubyonra...@googlegroups.com
I am searching for a tutorial/example/guide if there is one on sending
an email from a visitor (no user registration is needed currently) to my
site to someone else. The visitor has to enter their email address and
the recipient(s)' email address(es) in a form and submitted it to
generate the email. The tutorials I have seen so far demonstrate email
sent from the site admin to registered users. Is it as simple as
substituting email addresses in one case for another or there are more
setup requirements for my scenario (I would think so). Please point me
the way. Thanks!
--
Posted via http://www.ruby-forum.com/.

Matt Jones

unread,
Sep 19, 2009, 3:40:47 PM9/19/09
to Ruby on Rails: Talk
You should be able to set this up by following the examples in
ActionMailer.

But even if you figure it out - don't do it. Even with good CAPTCHAs,
you'll end up being a spammer magnet. You'll also likely end up
sending mails that aren't likely to reach their recipients; if
f...@bar.com tries to send an email to his buddy b...@frob.com, here are
some issues:

- if bar.com defines an SPF record, your mail looks fake
- if bar.com DKIM signs its mail, your mail looks REALLY fake
- filters on frob.com that inspect the headers are going to be
confused

You may want to look into setting the envelope address to a real
address attached to your site, but it's still ultimately going to be
messy.

--Matt Jones

On Sep 19, 1:04 am, kevin lee <rails-mailing-l...@andreas-s.net>
wrote:
Reply all
Reply to author
Forward
0 new messages