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 :)

Recommended Answers

All 3 Replies

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.