Send mail ruby (gmail with net/smtp)
I have this 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

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!
Send mail ruby (gmail with net/smtp)
===

I have this 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

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!