Welcome Guest ( Log In | Register )



 
Reply to this topicStart new 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: 763
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



QUOTE(Habble @ Aug 20 2007, 02:20 AM) *
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 topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How To Set Up Form Mail(4)
  2. Mini Apache Server W/ Php(5)
  3. Server-friendly Php Scripts(5)
  4. Mail() Not Working(4)
  5. Form Mail Php - Use Php To Send Form Through Email(8)
  6. Do You Want A Mail Form In Your Site(2)
  7. Include Directives And Efficancey(4)
  8. Simple E-mail Validation(2)
  9. Saving A Php Generated Image To The Server(5)
  10. Sending Mail To A Mailing List(12)
  11. Using The Php Mail() Function For Images Or Attachments(3)
  12. How To Reset The Server Variable Php_auth_user(9)
  13. User Authentication Session Handling Problems(14)
  14. E-mail List Error(4)
  15. Php Send Mail Through Smtp(8)
  1. PHP: Need Help Sending Mail Using SMTP(5)


 



- Lo-Fi Version Time is now: 14th October 2008 - 04:43 AM