I want to build an app where users can send emails within the site, as well to a client like gmail. Sort of how myspace.com sends emails within its self, As well as gmail. Is there a book that explains how to do both? Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Jeffrey L. Taylor
2010-Nov-03 16:00 UTC
Re: How do I make an email system that works for my site?
Quoting Mr Mody <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>:> I want to build an app where users can send emails within the site, as > well to a client like gmail. Sort of how myspace.com sends emails > within its self, As well as gmail. Is there a book that explains how to > do both? >The answer depends enormously on what the operating system is. Jeffrey -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
David Kahn
2010-Nov-03 16:15 UTC
Re: How do I make an email system that works for my site?
On Wed, Nov 3, 2010 at 10:00 AM, Jeffrey L. Taylor <ror-f/t7CGFWhwGcvWdFBKKxig@public.gmane.org>wrote:> Quoting Mr Mody <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>: > > I want to build an app where users can send emails within the site, as > > well to a client like gmail. Sort of how myspace.com sends emails > > within its self, As well as gmail. Is there a book that explains how to > > do both? > > > The answer depends enormously on what the operating system is. >Also, I think if you write something which just sends messages within a site, that is much easier. Adding outgoing smtp should not be too big of a deal on any os, but you also have to account for the outgoing address and whether every user will have a different one (and whether users will assign their yahoo, gmail, etc. account to be the sender). The most complex would be to receive response emails and routing them, and that would be OS specific. None of it is impossible.... if you are just starting out I would start with easiest and ease into the more complex.> > Jeffrey > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
thank you for feedback. I think action mailer is good, but I really need to build a site with its own email or notice system. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter Bell
2010-Nov-03 17:25 UTC
Re: Re: How do I make an email system that works for my site?
So you''d want to model that. Sounds like a user can have many messages. You need to think about how you model the details with messaging. Most common approach is to have a message domain object, but bear in mind that if you go that way, if recipient deletes message, the message should still exist as the sender may not have deleted it from their outbox. Generally a User sends-a message which has a sender-mailbox and a recipient-mailbox as well as a recipient. You''re going to want to think about business rules (how long messages can be kept), scaling issues and things like database indexes if you''re looking to have a messaging based system for a large number of users. Did one recently for a site with a couple of million of members and it''s non-trivial. We''re actually looking to port the messaging piece from a clustered SQL db to a NoSQL key-value store with a Clojure or Scala RESTful service wrapping it (it was a JVM project). Best Wishes, Peter On Nov 3, 2010, at 1:14 PM, Mr Mody wrote:> thank you for feedback. I think action mailer is good, but I really need > to build a site with its own email or notice system. > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.