Hey, I'm trying to implement an email system.. I'm just wondering whether it's possible that when the user registers it creates an email address like:

username @ mydomain.com

If you understand? Thanks for any help :)

8 Years
Discussion Span
Last Post by cwarn23

Yes, php can read open delete change and close email boxes just like gmail or hotmail can. The library that does this is the imap library. Also if you are planning on creating 50+ email's via php then I would suggest getting a managed vps as you might get into a few complications with your web host about recourse usage and spam. As for creating inboxes you can use the imap_createmailbox() function.


Hey thanks but I mean something like Yahoo has, when a user registers they're given like:

example @ yahoo.com

I want it so when users register to my service, they are given like:

phillip @ example.com

Thanks :)


So I assume it is @yoursite.com. This would mean you will need to use the imap library to create their mailboxes and you can provide them with essential information via the echo function. Let me know if you have any troubles using the imap library.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.