title: Send mail ruby (gmail with net/smtp)
body: <p>I have this code:</p>
  
  <pre><code>   @msg = "Subject: Hi There!\nThis works."
      smtp = Net::SMTP.new 'smtp.gmail.com', 587
      smtp.enable_starttls
      smtp.start(YourDomain, YourAccountName, YourPassword, :login)
        smtp.send_message(@msg, FromAddress, ToAddress)
      end
  </code></pre>
  
  <p>But i wonder what the mean with YourDomain?! I want to send from gmail is that then "gmail.com" for my yourdomain?
  I am confused, i have send emails with C#, php and actionscript but i never had to enter a domain or i cannot remember it!</p>
  
  <p>OK it was a stupid question of me, it has to be "gmail.com"! It works, just a typo (shame on my!)</p>