views:

64

answers:

2

Hello,

how would I develop an Email client in Ruby-on-rails taking Gmail as an example? I would be especially interested in the send email functions

Thanks for any pointers

+1  A: 

To send emails you just need to interface with a SMTP (wiki) server. Ruby provides this facility inside the net/smtp module, check it out here.

You can actually use GMail server to do your tests.

Jack
+1  A: 

Sending email with rails is crazy easy check out http://guides.rails.info/action_mailer_basics.html and use GMail to send the emails. I use the fetcher gem to download emails http://github.com/look/fetcher.

I have an open source application that provides an extremely simplistic web-mail interface as one of its features, you can get the source at http://github.com/thinkbohemian/WhySpam. You can see it in action at http://whyspam.me (make an email address, send something to it, then log in...you can see the interface). Good luck let me know if you have more specific questions

ThinkBohemian