SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Sep 2008
    Posts
    341
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Small social network = create username@domain.com for each user/profile on the site

    Not sure where to start, and it may not be entirely PHP.

    I am helping a friend with a small social network (5,000 users). They want to add a feature where each user gets given their own email account in the format username@domain.com with domain.com being the domain of the social network.

    Is this too much? I've never thought of anything like this before.

    How would we create the email accounts? Can PHP do it? Would it be an API through the web host / email space provider?

  2. #2
    SitePoint Addict
    Join Date
    Apr 2009
    Posts
    358
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You create email accounts on your email server. Depending on your mail host you may or may not be able to automate the process of creating mail users.
    Doug G
    =====
    "If you ain't the lead dog, the view is always the same - Anon

  3. #3
    SitePoint Wizard
    Join Date
    Dec 2003
    Location
    USA
    Posts
    2,582
    Mentioned
    29 Post(s)
    Tagged
    0 Thread(s)
    Yeah, this isn't really something you handle with PHP. PHP is generally run through a web server. Email is run through a mail server. Two different bits of hardware.

    If you are running on a VPS or some other dedicated server, you can configure this yourself. It'd also be possible to have PHP to call some commands on the server which can generate the emails automatically.

    However, if you are on a shared host, it's unlikely you'll be able to do automatic generation (and likely you won't even be able to get that many email accounts).

    Also keep in mind that each email account will need space. If you only give them 10 MB (a crazy small amount), you are still talking about 50GB of space.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •