title: How to configure action mailer (should I register domain)?
body: <p>I am creating a simple non-profit application with Ruby on Rails. I have to set up the following settings in order to be able to send emails with Gmail:</p>
  
  <pre><code>Depot::Application.configure do
  
  config.action_mailer.delivery_method = :smtp
  
  config.action_mailer.smtp_settings = {
      address:"smtp.gmail.com",
      port:587,
      domain:"domain.of.sender.net",
      authentication: "plain",
      user_name:"dave",
      password:"secret",
      enable_starttls_auto: true
  }
  
  end
  </code></pre>
  
  <p>I am completely new with this stuff and have no idea what exactly I should do.</p>
  
  <ol>
  <li>How to populate the settings above if I have gmail account? Do I
  need to buy a domain and can be it bought from google in order to
  use the settings above?</li>
  <li>Is it better to set up mail server on my PC? I looked though
  <a href="http://www.pixelinx.com/2010/10/creating-a-mail-server-on-ubuntu-using-postfix-courier-ssltls-spamassassin-clamav-and-amavis/" rel="noreferrer">this</a> tutorial but as far as I understand I still need to buy a
  domain.</li>
  </ol>
  
  <p>Also, as it is said <a href="https://help.ubuntu.com/community/MailServer" rel="noreferrer">here</a>:</p>
  
  <blockquote>
    <p>Setting up an email server is a difficult process involving a number
    of different programs, each of which needs to be properly configured.</p>
  </blockquote>
  
  <p>because of this and my poor skills I am looking for the simplest solution.</p>
  
  <p>I have read the rails action mailer <a href="http://guides.rubyonrails.org/action_mailer_basics.html" rel="noreferrer">tutorial</a> and have an idea about what these parameters are used for, but the things around the Gmail and the mail server are not clear at all.</p>