Jump to content

Recommended Posts

I'm not sure if this is possible, but could anybody point me in the right direction?

 

What I'm looking for is like a "Virtual" email system.

 

When someone signs up for our site, they are given a "virtual" email from our domain.

I need this virtual email to be put into the database with the users name and so forth.

 

I need them to be able to send emails from the website, but also read emails that come to that "virtual" email.

 

I already am able to send messages with this "virtual' email, but if someone replies to the email, how can I get it so that any messages to that particular email will be able

to be read by the user from the website?

 

Does that make sense?

 

Any help would be greatly appreciated.

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/119496-email-system/
Share on other sites

I understand that.

 

I have a email already set up as the default email address for the domain. So, any email that comes in to whatever@domain.co, will go to this email.

 

But what I need is a script that will check this account, see what email address it is to, then put it in the database with the appropriate email address.

Then, when the user clicks on "Inbox", the script searches the database for the "virtual" email address that is assigned to them, and then displays the message.

 

I'm seeing that this can be done with sendmail piping, but I do not understand how to do this with sendmail piping.

Link to comment
https://forums.phpfreaks.com/topic/119496-email-system/#findComment-615606
Share on other sites

From what your saying i'm guessing that you have a catchall mailbox for a domain name on your mail server and using mail forwarding to send messages from other domains (virtual as you call it) into it.

 

Is this the case?

Are you basically storing multiple users messages from your system in 1 email inbox and require a program to fish out just the email for a particluar user. If so this is one hell of job and a funny way of implementing such a system.

 

To get php to login to a mailbox and read email is quite easy. You basically open a socket to the mail server and issue telnet commands. But to check if an email is for a particluar users email address requires opening each email and extracting the to address field. You could end up trawling through thousands of emails just to find 1 for a particular address.

 

Why wouldnt these users have individual mailboxes to read their own email. You could do this easily with a WHM cPanel server. The API allows you to setup user accounts in the background. You would just give the user access to their webmail screen.

 

Link to comment
https://forums.phpfreaks.com/topic/119496-email-system/#findComment-615661
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.