Habble
Aug 20 2007, 07: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 |
Comment/Reply (w/o sign-up)
Sten
Aug 20 2007, 10:39 AM
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!
Comment/Reply (w/o sign-up)
TavoxPeru
Aug 20 2007, 07:36 PM
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,
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : php, mail, server
- View Php In Another Server
(5)
PHP: Need Help Sending Mail Using SMTP
(5) While the mail() function of php is all bout simplicity, it lacks the otherwise necessary
flexibility. How do I send an E-Mail using php through SMTP?....
Php Send Mail Through Smtp
(10) Can anyone here tell me how to send mail through SMTP server with php /mellow.gif"
style="vertical-align:middle" emoid=":mellow:" border="0" alt="mellow.gif" /> I have search in many
source code on web and cant find anything /sad.gif" style="vertical-align:middle" emoid=":("
border="0" alt="sad.gif" />....
E-mail List Error
(4) I just coded this e-mail list, it works well for entering data into database, but if user leaves
the field blank or adds an already exist e-mail it gives him the error message and stops loading the
rest of the page. CODE // Connects to your Database mysql_connect("localhost", "my_username",
"mypassword") or die(mysql_error()); mysql_select_db("Database name") or die(mysql_error()); //This
code runs if the form has been submitted if (isset($_POST )) { //This makes sure they did not leave
any fields blank if (!$_POST ) {die(' No e-mail added '); } ....
User Authentication Session Handling Problems
Authorization server variables not staying across pages (14) This is quite a bit of problem I am facing, and I cannot point exactly where I am going wrong. I
have been lurking around here at the Asta Host forums with regard to login and user authentication
scripts and I have got as far as this: - Starting a session - Registering a session variable -
Using the variable to check if the user is authenticated or not. - Authenticating the user through
MySQL database - Logging of the user, by setting the session variable to un-authenticated I have
been able to achive the following things too that I think is not related to this proble....
How To Reset The Server Variable Php_auth_user
(9) Hi, i'm developing a web application which obviously requires a log in/log out script that i
just implementing but i dont know why the log out script dont work fine. The problem is related
with the server variable $_SERVER which remains set even when in the log out script i unset it with
the unset() function. Does someone knows how can i reset or clear the server variable $_SERVER ???
Best regards, ....
Using The Php Mail() Function For Images Or Attachments
Can't find a decent tutorial! (6) I read the one mail() tutorial that was posted in the tutorial section and to my horror found that
he had quoted almost verbatim from the PHP Manual off php.net, and made a comment about it, and also
found that if you were new to PHP or the Manual that it was informative but not indepth enough for
my tastes. This is not a tutorial although with the code that will be posted it might look like
one, that is not its intent or purpose. I have searched and found many so called tutorials about
MIME mail and boundries and all that but basically it either told me to use PHPMai....
Sending Mail To A Mailing List
Possibility of sending a newsletter (12) Task : To send an email to a list of email addresses stored in a database Premise : Page is
written in PHP, with the database as MySQL. The email addresses need to be taken from a column of a
table in the database which is queried with some "WHERE" clause. The email sent to these addresses
is static. Objective : To send a newsletter to the members who have subscribed for the same on a
website. Well, there. I have put it as objectively and as clearly as possible. I have searched
for the keywords "mail" and "PHP" on this section of the forum, and from what I have....
Saving A Php Generated Image To The Server
Help Needed Please (5) I'm trying to create a script that will generate an image and send it back to the browser while
saving the same image to the server. I'm doing this because the image should be dynamically
generated but because of the load that would place on a server if the image happened to be requested
frequently, I've decided to build in a means to serve the static version of the image most of
the time. What isn't included here is the function that will check the age of the file in cache
directory and serve the static image if it is less than an hour old. This isn....
Simple E-mail Validation
check for correct address and syntax (2) Hey , this tutorial will tell you a very simple way to check if email addresses entered are with the
correct syntax. Hope this will help you eliminate jokers. So this script will... (check the
characters, and check if there is a " someone somewhere.extension ". Ok, so firstly we create a
function with all the invalid stuff in it:- CODE function CheckMail($email) { if (eregi("^ ( ?
)*@ ( ? )*\. {2,4}$", $email)) { return true; } else { return false; } } Now, to check an
email you just run the variable with the email in it through the function as follow....
Include Directives And Efficancey
Server preformance, response time (4) Hello there. Most of my programming experiance has been with compiled languages. However, I am now
working in PHP. In a compiled languages (or even a client-side scripting language), include
directive only effect the preformance at compile-time. It has always been my style to make all
global variables, functions, and data structures available to all source files by including a header
file that would then in turn include all the project's headers in the correct sequence. Now, as
I have said, I am working in PHP. The design of my page is that of a program, with the ....
Do You Want A Mail Form In Your Site
(2)
Notice from m^e:
Repeat post. Credits reduced by 5 days. Learn to USE
THE SEARCH BUTTON before you make such posts.
did you want to have in your web site mail form
that allow the user to send mails to anther mail from his mail e.g. the compose in yahoo CODE
from to cc bcc subject
function param($Name) { global
$HTTP_POST_VARS; if(isset($HTTP_POST_VARS )) return($H....
Form Mail Php - Use Php To Send Form Through Email
(8) Just sends all form data to a specified email. Does anyone know a free script that does this?....
Mail() Not Working
(4) I'm trying to use the mail() function in a script. But it doesnt work. It keeps returning false.
It's a premade script The code is: CODE function SendPassword($userName) { global
$db,$db_tables;//config.php // set password for username to a random value // return the new
password or false on failure $new_password = mt_rand(); $qry = "UPDATE $db_tables SET
password=password('$new_password') WHERE user_name='$userName'";
$db->db_query($qry); // send notification email $from = "From: $from_email\r\n";
$msg = "....
Server-friendly Php Scripts
(5) Hi I'm relativly new to php... I'm interested in writing server-friendly php scripts and i
was wandering in what cases php scripts are harmfull to server i runs on... i was thinking about
issues like: * Which php functions are expensive from the point of view of server's
performance and resources? * What is considered to be a long array in php context if ,say, each
record is 100 bytes long? (100+ element ? a few thousands?) * Are there some assumptions that php
programmer should avoid? (comes to mind this example: http://il.php.net/register_globals )....
Mini Apache Server W/ Php
Grab it right now ... (5) Hi, Those who don't want to go into all the hassle of configuring Apache with PHP -
here's a quick alternative. Grab MiniApache_PHP from http://213.106.116.50/james/ . It's
a much downscaled version of the real Apache server but includes the PHP modules too - very little
headache over installation and you can start hosting your own sites rightaway. Good alternative for
testing your custom php codes too... This is what the site says about the software: QUOTE
MiniApache_PHP is a cut-down version of the open-source Apache web server software for W....
How To Set Up Form Mail
(4) I am programming on a web site's contact form page, How can I mail the filled in information of
the client to particular E-mail address? I tried form action="mailto:blah@blah", but it is running
all right on my machine rather that other computer in our LAN. The error message I got is a
connection failure error occurred. I noticed there are some form mail info on line, but I have no
idea to figure out how is that works. Anybody have some experience on that? Thanks!....
[PHP]fsockopen(): Timed_out
fsockopen() on a Irc Server (7) I have create a script that open a connection on a irc server like a BnC; when i test it on my local
machine it's all ok, but here i receive every time Timed_out, and i don't know why, Someone
can me explaine why? /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />....
All in 1 server
PHP4,PHP5,ASP.Net (13) Hello, I'm hosting my own site web on my computer. I'm using IIS6 with ASP.NET and PHP4
running on it and I would like to install also PHP5 to try it. Do you think it's possible ?....
Looking for php, mail, server
|
See Also,
*SIMILAR VIDEOS*
Searching Video's for php, mail, server
|
advertisement
|
|