Welcome Guest ( Log In | Register )




                Web Hosting

 
Reply to this topicNew Topic
Using Php With A Mail Server
Habble
post Aug 20 2007, 07:20 AM
Post #1


Premium Member
Group Icon

Group: [HOSTED]
Posts: 286
Joined: 17-June 07
From: Tasmania
Member No.: 22,699


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
Go to the top of the page
 
+Quote Post
Sten
post Aug 20 2007, 10:39 AM
Post #2


Oh come on Mrs. B!
Group Icon

Group: Members
Posts: 648
Joined: 6-June 07
From: Tasmania, Australia
Member No.: 22,422


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!
Go to the top of the page
 
+Quote Post
TavoxPeru
post Aug 20 2007, 07:36 PM
Post #3


Super Member
Group Icon

Group: [HOSTED]
Posts: 818
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579
myCENTs:3.57


QUOTE(Habble @ Aug 20 2007, 02:20 AM) [snapback]109541[/snapback]
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,

Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   5 turbopowerdmaxsteel 764 1st January 2009 - 05:55 AM
Last post by: Guest
No New Posts   6 Mitch666Holland 731 29th December 2008 - 05:07 AM
Last post by: iG-sujan
No New Posts   11 sendto 6,941 26th December 2008 - 12:59 PM
Last post by: iG-nwaynge
No New Posts   1 veerumits 566 21st December 2008 - 06:26 AM
Last post by: TavoxPeru
No New Posts   10 Kardus 1,678 20th December 2008 - 02:31 PM
Last post by: wutske
No New Posts   9 TavoxPeru 1,044 11th December 2008 - 04:11 PM
Last post by: magiccode9
No New Posts   1 ljj 354 6th December 2008 - 06:28 AM
Last post by: iG-mani
No new   30 FoRsAkEn 5,894 4th December 2008 - 05:09 AM
Last post by: iG-sandvirus/avisek
No New Posts   6 Jimmy89 1,307 26th November 2008 - 11:03 PM
Last post by: magiccode9
No New Posts   16 flippys 3,032 26th November 2008 - 02:53 PM
Last post by: ergoxsx
No New Posts   6 Houdini 1,852 21st November 2008 - 10:37 AM
Last post by: magiccode9
No New Posts   18 x2crazy4shadyx 2,478 16th November 2008 - 11:18 PM
Last post by: Guest
No New Posts   7 szupie 1,363 12th November 2008 - 05:47 PM
Last post by: Guest
No New Posts   4 lisha 304 10th November 2008 - 05:31 PM
Last post by: yordan
No New Posts 1 Atomic0 282 1st November 2008 - 10:16 AM
Last post by: BuffaloHELP