Jump to content

Is it possible?


PaXo

Recommended Posts

I am currently doing the same thing, I am able to send/receive emails. I can send emails with attachments, but I haven't yet got the coding for receiving emails with attachments.

 

Some hosts allow for what is called piping emails, which uses a file called a ".forward" or ".forward.postfix" which can take emails and automatically send them to a PHP file to process them, and if you wanted, save the email to a database.

 

If that method doesn't work, you could create a crontab that will run every minute, to check for new emails, and basically do the same thing, only you will have to use some of PHP's functions to log into your email and check for new emails.

 

And if that way doesn't work, then you could always check for new emails as the user logs in, and after every page reload after that. But I would recommend piping the emails, because it is almost instant, crontab is quick, but it only checks emails at an interval amount, not as they come.

Link to comment
https://forums.phpfreaks.com/topic/122387-is-it-possible/#findComment-631948
Share on other sites

Some hosts allow you to create email accounts easily, others require workarounds such as using the cPanel API. Sending can be done easy enough, and recieving can be done with IMAP functions, as long as your host allows IMAP. To create an email service/program is easy enough, its adding worthwhile features that is the hard part.

Link to comment
https://forums.phpfreaks.com/topic/122387-is-it-possible/#findComment-631966
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.