Jump to content

Php to show/send show mails Oo?


Recommended Posts

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

  • 4 weeks later...

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? :D

thx in advance :D

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...