rootKID Posted June 25, 2020 Share Posted June 25, 2020 Hi, this is a quick one. Is it somehow possible to "show" the mails i GET on my mails on my server/domain? I know some ppl do this... but never seen any code for this out there Oo? Asking bcoz i would like to try and insert this into my project portfolio somehow :D thanks in advanse! :D Link to comment Share on other sites More sharing options...
Ingolme Posted June 25, 2020 Share Posted June 25, 2020 Not in an easy way. I'd start by looking for APIs offered by your mail server. Some APIs are through HTTP, but some are through the IMAP protocol. 1 Link to comment Share on other sites More sharing options...
rootKID Posted July 21, 2020 Author Share Posted July 21, 2020 Hi sry for late reply as always. Actually the API part sounds like a good idea, but in case i cant find any with theese services, where should i look as to how to implement IMAP services? Done this through CPanel b4 but never by php code? Is this not done to server only? Or is it possible to actually use IMAP to do this stuff on something like front-end on a server and to interact like the way i intended? thx in advance Link to comment Share on other sites More sharing options...
Ingolme Posted July 22, 2020 Share Posted July 22, 2020 I have not worked directly with it, but PHP has the IMAP extension to interact with mail servers. https://www.php.net/imap This page indicates how to open a connection: https://www.php.net/manual/en/function.imap-open.php This function returns message IDs for items in the inbox: https://www.php.net/manual/en/function.imap-search.php fetchbody() and other fetch functions will give you data about an email give its ID: https://www.php.net/manual/en/function.imap-fetchbody.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now