# Guideline for email setup scenario

**URL:** <https://www.ruby-forum.com/t/guideline-for-email-setup-scenario/175767>\
**Category:** Rails\
**Created:** [September 19, 2009, 7:04am UTC](https://www.ruby-forum.com/t/guideline-for-email-setup-scenario/175767 "2009-09-19T07:04:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![codecarpenter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Post date:** [September 19, 2009, 7:04am UTC](https://www.ruby-forum.com/t/guideline-for-email-setup-scenario/175767/1 "2009-09-19T07:04:14Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![codecarpenter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Post date:** [September 19, 2009, 9:43pm UTC](https://www.ruby-forum.com/t/guideline-for-email-setup-scenario/175767/2 "2009-09-19T21:43:06Z")

</div>

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  
removed\_email\_address@domain.invalid tries to send an email to his buddy removed\_email\_address@domain.invalid, here are  
some issues:

- if [bar.com](http://bar.com) defines an SPF record, your mail looks fake
- if [bar.com](http://bar.com) DKIM signs its mail, your mail looks REALLY fake
- filters on [frob.com](http://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 J.

On Sep 19, 1:04 am, kevin lee [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
