Jump to content
xisto Community
iGuest

Using Php With A Mail Server

Recommended Posts

We all know you can use PHP with a web server, but can you use it with a mail server?

 

I've made a personal messenger system, and I was thinking about adding additional functionality in the future, such as the ability to send mail from it. Then I started thinking, would it be possible to recieve mail with it? Say, have a PHP script that checked when a message arrived at the server, and when it does, check for something in the message (e.g. "pmsystem-to: admin") that would tell it to send it to a certain user, and then have it do the scripts to send a PM.

 

So, is it possible to do this with a mail server? Because it really would be something cool that you don't see in many PM systems

Share this post


Link to post
Share on other sites

im not sure if this is wot u want, and im not sure how to do it...but, this forum sends an email when u get a PM. if uve ever gotten a pm then u get an email telling you.jay i gather u no that so yeah.so if thats wot u wanted (although it more than likely isnt) then its possible!

Share this post


Link to post
Share on other sites

We all know you can use PHP with a web server, but can you use it with a mail server?

 

I've made a personal messenger system, and I was thinking about adding additional functionality in the future, such as the ability to send mail from it. Then I started thinking, would it be possible to recieve mail with it? Say, have a PHP script that checked when a message arrived at the server, and when it does, check for something in the message (e.g. "pmsystem-to: admin") that would tell it to send it to a certain user, and then have it do the scripts to send a PM.

 

So, is it possible to do this with a mail server? Because it really would be something cool that you don't see in many PM systems

Well, yes, it is possible to do what you want to do, for sending emails you use the mail() php function, for receiving sorry but i don't know how you can do it, also, i know that there are a lot of scripts out there that are capable to check POP3 and SMTP servers.

 

Take a look at the PHP Classes website, you can find there what you need.

 

Best regards,

Share this post


Link to post
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...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.