HOW TO Create a script to create email addresses

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rmail2006
    New Member
    • Aug 2009
    • 4

    HOW TO Create a script to create email addresses

    I have registered a list of domains and was wondering if it is possible to set up a php script that will allow users to create an email at each of them e.g. at englandtillidie .com there would be a form which would let them pick a username and then the script checks if it is free, if it is it will allow them to register it and send emails from tommy@englandti llidie.com etc.

    Thanks
  • unauthorized
    New Member
    • May 2009
    • 81

    #2
    Originally posted by rmail2006
    I have registered a list of domains and was wondering if it is possible to set up a php script that will allow users to create an email at each of them e.g. at englandtillidie .com there would be a form which would let them pick a username and then the script checks if it is free, if it is it will allow them to register it and send emails from tommy@englandti llidie.com etc.

    Thanks
    You need some kind of database to store taken addresses. I don't see what's the problem.

    Comment

    • rmail2006
      New Member
      • Aug 2009
      • 4

      #3
      Re:

      I was wondering what code i would need to create or register the email addresses?

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        Originally posted by rmail2006
        I was wondering what code i would need to create or register the email addresses?
        like unauthorized said, you need some means to store the data, this can be a database (like MySQL, which requires the MySQL functions/classes), SQLite (a file (not server) based DB), even a simple file (though this is insecure).

        decide what you want and then look for an appropriate tutorial.

        Comment

        • gopan
          New Member
          • Apr 2009
          • 41

          #5
          try zimbra software...

          Zimbra: A Cloud-Hosted Collaboration Software and Email Platform That Integrates With Proprietary Business Solutions

          Comment

          • rmail2006
            New Member
            • Aug 2009
            • 4

            #6
            Re:

            Ok, I'm using php and mysql

            I have tried looking for tutorials to allow users to register emails at my domain such as tom@englandtill idie.com.

            Has anyone got any examples that will show me how to set up the users email account and let them access it?


            Thanks very much

            Comment

            • Niheel
              Recognized Expert Moderator Top Contributor
              • Jul 2005
              • 2433

              #7
              You'll first need to create a shell script that will create a mail account in your email program (sendmail, qmail, whatever else you might be using). The shell script will also to create a user in the system and set a password.

              Take the form data from you php script pass the username and password to the schell script. Enter the username and password into a db for future reference and test for already existing email addresses.

              That's probably the quickest way i can think of. Though this seems like a problem that there might already be a whole open source application for.
              niheel @ bytes

              Comment

              • rmail2006
                New Member
                • Aug 2009
                • 4

                #8
                Re:

                Iv looked all over and cannot seem to find a sell script that allows you to do that :(
                Have you got any examples that i could look through?

                Thanks :)

                Comment

                • unauthorized
                  New Member
                  • May 2009
                  • 81

                  #9
                  Originally posted by rmail2006
                  Iv looked all over and cannot seem to find a sell script that allows you to do that :(
                  Have you got any examples that i could look through?

                  Thanks :)
                  ... somebody shoot me.

                  'nyway, you only need to explore the documentation of your mail server and see what parameters need to be passed to achieve whatever you want. Assuming you use 'nix, all you need to do is type "man <name-of-your-mail-client>". On Windows, you need to figgure out which command line switch is used for usage info (typically /?, -h, help or --help) or dig up the documentation of your mail client.

                  On the off chance you don't know what shell script is, you may want to start with a Google queue "<insert-operating-system-here> shell scripting".

                  Comment

                  Working...