Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am interested in developing an online email service (e.g. Gmail, Hotmail, but on a much smaller scale) allowing people to sign up for free email addresses on my domain. The domain in question is already purchased, but I have no idea how to even start. I was hoping to code this using a Ruby framework such as Rails or Sinatra.

Firstly, are there any libraries/pre-made solutions to this problem that exist already that would be easy enough to just plug-in to my own site?

Secondly, if there are no real pre-made solutions, what are the general steps I need to take to accomplish this task?

share|improve this question
1  
Have you looked at SquirrelMail at all? Old-skool web mail. – Martijn Pieters Nov 23 '12 at 14:32

closed as not a real question by gnat, thorsten müller, Jan Hudec, Walter, maple_shaft Nov 23 '12 at 14:32

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

1 Answer

Firstly, are there any libraries/pre-made solutions to this problem that exist already that would be easy enough to just plug-in to my own site?

Yes, tons. But it depends on your target language, and if your target hosting service allows for the use of some specific features (like, well, sending emails).

Also, if you're not using some sort of half-baked online hosting and do this on your own machine (or use online hosting granting you enough privileges), you could offload most of the email processing work to a mailer agent and focus on implement the front-end.

Secondly, if there are no real pre-made solutions, what are the general steps I need to take to accomplish this task?

Read a lot of RFCs on:

  • the email address format (way more complex than you'd think),
  • the use of email headers (or your emails will end up in other people's spam/junk folders).

Then I don't know what else to recommend. You'll need to create a web-front end, but if I were you'd I'd focus first on getting a pretty basic e-mail sending form working correctly, then try to improve this to support this side of the workflow decently.

Receiving e-mails is going to be a whole other question. You'll need to implement an e-mail spooler yourself.

Might need more details on what you want to answer with more precision.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.